zabetak commented on a change in pull request #2267:
URL: https://github.com/apache/calcite/pull/2267#discussion_r525938001



##########
File path: 
core/src/main/java/org/apache/calcite/config/CalciteSystemProperty.java
##########
@@ -131,6 +131,15 @@
   public static final CalciteSystemProperty<Boolean> TOPDOWN_OPT =
       booleanProperty("calcite.planner.topdown.opt", false);
 
+  /**
+   * Whether to enable index-based access for struct fields.
+   *
+   * <p>Note: the feature is experimental as it relies on field order which is 
JVM-dependent
+   * (see CALCITE-2489).</p>
+   */
+  public static final CalciteSystemProperty<Boolean> ALLOW_FIELD_INDEX_ACCESS =
+      booleanProperty("calcite.experimental.allow.field.index.access", false);

Review comment:
       To make things more uniform with the properties above, I would rename it 
to: `calcite.enable.enumerable.fieldIndexAccess`. I added enumerable since it 
is strictly a property affecting the runtime not for parser, validator, etc.




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to