aboutsummaryrefslogtreecommitdiff
path: root/exec/java-exec/src/main/java/org/apache/drill/exec
diff options
context:
space:
mode:
authorVolodymyr Vysotskyi <vvovyk@gmail.com>2018-11-15 13:07:44 +0200
committerVolodymyr Vysotskyi <vvovyk@gmail.com>2018-11-26 11:23:23 +0200
commit13ba486f44315f2ed45b51c065284df62ad470be (patch)
tree677ad24f41d04459fc624d60becf7ff5677d04ba /exec/java-exec/src/main/java/org/apache/drill/exec
parentb67f77a18ac4b67044fa9b4b962d0536fdc54af5 (diff)
DRILL-6850: Allow configuring table names case sensitivity for JDBC storage plugin
closes #1542
Diffstat (limited to 'exec/java-exec/src/main/java/org/apache/drill/exec')
-rw-r--r--exec/java-exec/src/main/java/org/apache/drill/exec/planner/sql/handlers/FindHardDistributionScans.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/exec/java-exec/src/main/java/org/apache/drill/exec/planner/sql/handlers/FindHardDistributionScans.java b/exec/java-exec/src/main/java/org/apache/drill/exec/planner/sql/handlers/FindHardDistributionScans.java
index 90cc178fe..7d87aa2c8 100644
--- a/exec/java-exec/src/main/java/org/apache/drill/exec/planner/sql/handlers/FindHardDistributionScans.java
+++ b/exec/java-exec/src/main/java/org/apache/drill/exec/planner/sql/handlers/FindHardDistributionScans.java
@@ -53,6 +53,9 @@ class FindHardDistributionScans extends RelShuttleImpl {
unwrap = scan.getTable().unwrap(DrillTable.class);
if (unwrap == null) {
DrillTranslatableTable drillTranslatableTable = scan.getTable().unwrap(DrillTranslatableTable.class);
+ // For the case, when the underlying Table was obtained from Calcite,
+ // it extends neither DrillTable nor DrillTranslatableTable.
+ // Therefore DistributionAffinity type cannot be determined and single mode is rejected.
if (drillTranslatableTable == null) {
contains = true; // it rejects single mode.
return scan;