Github user jinfengni commented on a diff in the pull request:
https://github.com/apache/drill/pull/253#discussion_r44845244
--- Diff:
contrib/storage-hive/core/src/test/java/org/apache/drill/exec/hive/TestHiveStorage.java
---
@@ -36,6 +36,19 @@ public static void setupOptions() throws Exception {
test(String.format("alter session set `%s` = true",
PlannerSettings.ENABLE_DECIMAL_DATA_TYPE_KEY));
}
+
+ @Test // DRILL-4083
+ public void testNativeScanWhenNoColumnIsRead() throws Exception {
+ try {
+ test(String.format("alter session set `%s` = true",
ExecConstants.HIVE_OPTIMIZE_SCAN_WITH_NATIVE_READERS));
+
+ String query = "SELECT count(*) FROM hive.readtest_parquet";
+ testPhysicalPlan(query, "hive-drill-native-parquet-scan");
+ } finally {
+ test(String.format("alter session set `%s` = false",
ExecConstants.HIVE_OPTIMIZE_SCAN_WITH_NATIVE_READERS));
--- End diff --
Will it make sense to change it back to default value in the finally block
(in case we change the default value for this option in future release)?
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---