You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@drill.apache.org by GitBox <gi...@apache.org> on 2018/08/22 19:05:00 UTC

[GitHub] vvysotskyi commented on a change in pull request #1425: DRILL-6647: Update Calcite version to 1.17.0

vvysotskyi commented on a change in pull request #1425: DRILL-6647: Update Calcite version to 1.17.0
URL: https://github.com/apache/drill/pull/1425#discussion_r212071585
 
 

 ##########
 File path: exec/java-exec/src/main/java/org/apache/drill/exec/store/AbstractSchema.java
 ##########
 @@ -161,6 +164,30 @@ public boolean showInInformationSchema() {
     return Collections.emptyList();
   }
 
+  /**
+   * Returns a map of types in this schema by name.
+   *
+   * <p>The implementations of {@link #getTypeNames()}
+   * and {@link #getType(String)} depend on this map.
+   * The default implementation of this method returns the empty map.
+   * Override this method to change their behavior.</p>
+   *
+   * @return Map of types in this schema by name
+   */
+  protected Map<String, RelProtoDataType> getTypeMap() {
+    return ImmutableMap.of();
+  }
+
+  @Override
+  public Set<String> getTypeNames() {
 
 Review comment:
   In Drill code, they are not used but in Calcite in some places, but it only affects functionality that is not used by Drill yet (CALCITE-2045). Introducing them is required since these methods are added to the `Schema` interface.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services