Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
Description
Running ./gradlew build locally fails since CachingRelMetadataProvider was deprecated in b51a2e14343df089ee0b6c3e8a20c00c51186421 but is still used in PlannerImpl.
$ ./gradlew build > Configure project : Building Apache Calcite 1.28.0-SNAPSHOT > Task :core:compileJava Ignoring profile 'okta' on line 26 because it did not start with 'profile ' and it was not 'default'. /Projects/Apache/calcite/core/src/main/java/org/apache/calcite/prepare/PlannerImpl.java:39: warning: [deprecation] CachingRelMetadataProvider in org.apache.calcite.rel.metadata has been deprecated import org.apache.calcite.rel.metadata.CachingRelMetadataProvider; ^ error: warnings found and -Werror specified Note: Some input files use unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. 1 error 1 warning > Task :core:compileJava FAILED FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':core:compileJava'. > Compilation failed; see the compiler error output for details. * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights. * Get more help at https://help.gradle.org Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0. Use '--warning-mode all' to show the individual deprecation warnings. See https://docs.gradle.org/6.8.3/userguide/command_line_interface.html#sec:command_line_warnings BUILD FAILED in 4s 193 actionable tasks: 4 executed, 189 up-to-date S3 cache 423ms wasted on misses, reads: 1, elapsed: 423ms
Although locally the build fails it seems that in CI we are not using the -Werror flag so the error is hidden.
Attachments
Issue Links
- is caused by
-
CALCITE-4544 Deprecate Metadata API backed by Java Reflection
- Closed
- links to