Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Following [CALCITE-4354], added 'calcite.experimental.allow.field.ind… #2267

Closed
wants to merge 2 commits into from

Conversation

asolimando
Copy link
Member

…ex.access' feature flag

Index-based field access for struct is experimental as it relies on field order which is JVM-dependent (see CALCITE-2489) and is disabled by default, it can be activated via 'calcite.experimental.allow.field.index.access=true'.

Copy link
Contributor

@zabetak zabetak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR @asolimando !

LGTM

One minor comment would be to see if we can enable the property by default during tests so that we have better coverage. I guess it should be doable to pass this to the gradle scripts somewhere. I can check it out when I will merge the PR.

@asolimando
Copy link
Member Author

asolimando commented Nov 18, 2020

One minor comment would be to see if we can enable the property by default during tests so that we have better coverage. I guess it should be doable to pass this to the gradle scripts somewhere. I can check it out when I will merge the PR.

Thanks, that's indeed a good idea. So far none of the CI-profiles were failing, so I guess we can activate the feature flag for all of them, and disable it in the feature we add a JVM with the problematic symptoms.

Not sure where the best place to activate the flag is, but systemProperty("calcite.enable.enumerable.fieldIndexAccess", true) looks like the way to do it in Calcite's gradle scripts.

@asolimando
Copy link
Member Author

There is a test failure for the last commit: https://ci.appveyor.com/project/ApacheSoftwareFoundation/calcite/builds/36376813/job/5k2lubas8qbehk8o

But it looks unrelated to me:

GeodeBookstoreTest STANDARD_ERROR
FATAL LoggingUncaughtExceptionHandler Uncaught exception in thread Thread[ServerLauncherStopper,5,main]
java.lang.NullPointerException
at org.apache.geode.distributed.ServerLauncher.doStopInProcess(ServerLauncher.java:1253)
at java.base/java.lang.Thread.run(Thread.java:830)
FAILURE 0.0sec, org.apache.calcite.adapter.geode.rel.GeodeBookstoreTest > initializationError
java.lang.IllegalStateException: Expected state not responding but got online
at com.google.common.base.Preconditions.checkState(Preconditions.java:824)
at org.apache.calcite.adapter.geode.rel.GeodeEmbeddedPolicy.requireStatus(GeodeEmbeddedPolicy.java:94)
at org.apache.calcite.adapter.geode.rel.GeodeEmbeddedPolicy.beforeAll(GeodeEmbeddedPolicy.java:52)
at org.apache.calcite.adapter.geode.rel.GeodeEmbeddedPolicy$RefCountPolicy.beforeAll(GeodeEmbeddedPolicy.java:138)
at org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor.lambda$invokeBeforeAllCallbacks$7(ClassBasedTestDescriptor.java:355)
at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
at org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor.invokeBeforeAllCallbacks(ClassBasedTestDescriptor.java:355)
at org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor.before(ClassBasedTestDescriptor.java:189)
at org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor.before(ClassBasedTestDescriptor.java:77)
at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$5(NodeTestTask.java:132)
at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$7(NodeTestTask.java:125)
at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:135)
at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:123)
at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:122)
at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:80)
FAILURE 1.4sec, 1 completed, 1 failed, 0 skipped, org.apache.calcite.adapter.geode.rel.GeodeBookstoreTest
WARNING 47.4sec, 14 completed, 0 failed, 3 skipped, org.apache.calcite.adapter.geode.rel.GeodeZipsTest
FAILURE 57.4sec, 27 completed, 1 failed, 3 skipped, Gradle Test Run :geode:test
27 tests completed, 1 failed, 3 skipped

I am pretty sure I saw a "relaunch test" button somewhere sparing the need for an empty commit to retrigger tests, but I can't find it anymore.

@zabetak zabetak closed this in 3f0353c Nov 19, 2020
@asolimando asolimando deleted the master-CALCITE-4354-fix branch December 6, 2020 17:08
MalteBellmann pushed a commit to caespes/calcite that referenced this pull request Feb 21, 2021
…eature flag (Alessandro Solimando)

The runtime implementation for index based access is experimental since it is
JVM-dependent (see CALCITE-2489), thus it is disabled by default.

Nevertheless, the property is enabled by default during tests for better
coverage.

Close apache#2267
XuQianJin-Stars pushed a commit to XuQianJin-Stars/calcite that referenced this pull request Jul 14, 2021
…eature flag (Alessandro Solimando)

The runtime implementation for index based access is experimental since it is
JVM-dependent (see CALCITE-2489), thus it is disabled by default.

Nevertheless, the property is enabled by default during tests for better
coverage.

Close apache#2267
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants