Skip to content

Commit 97a6092

Browse files
committed
Fix errors
1 parent 78a0063 commit 97a6092

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

exec/java-exec/src/test/java/org/apache/drill/TestFunctionsWithTypeExpoQueries.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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));

exec/java-exec/src/test/java/org/apache/drill/exec/TestCountStar.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,12 @@
1818
package org.apache.drill.exec;
1919

2020
import 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
}

0 commit comments

Comments
 (0)