File tree Expand file tree Collapse file tree 2 files changed +5
-6
lines changed
exec/java-exec/src/test/java/org/apache/drill Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -261,8 +261,8 @@ public void testExtractSecond() throws Exception {
261261
262262 List <Pair <SchemaPath , TypeProtos .MajorType >> expectedSchema = Lists .newArrayList ();
263263 TypeProtos .MajorType majorType = TypeProtos .MajorType .newBuilder ()
264- // Calcite 1.35+: EXTRACT(second ...) now returns BIGINT instead of FLOAT8
265- .setMinorType (TypeProtos .MinorType .BIGINT )
264+ // EXTRACT(SECOND ...) returns FLOAT8 (DOUBLE) to support fractional seconds
265+ .setMinorType (TypeProtos .MinorType .FLOAT8 )
266266 .setMode (TypeProtos .DataMode .REQUIRED )
267267 .build ();
268268 expectedSchema .add (Pair .of (SchemaPath .getSimplePath ("col" ), majorType ));
Original file line number Diff line number Diff line change 1818package org .apache .drill .exec ;
1919
2020import org .junit .Test ;
21- import org .apache .drill .test . ClusterTest ;
21+ import org .apache .drill .PlanTestBase ;
2222
23- public class TestCountStar extends ClusterTest {
23+ public class TestCountStar extends PlanTestBase {
2424 @ Test
2525 public void testCountStar () throws Exception {
2626 String sql = "select count(*) from cp.`employee.json`" ;
27- long result = queryBuilder ().sql (sql ).singletonLong ();
28- System .out .println ("COUNT(*) result: " + result );
27+ test (sql );
2928 }
3029}
You can’t perform that action at this time.
0 commit comments