You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@druid.apache.org by "cecemei (via GitHub)" <gi...@apache.org> on 2025/12/10 20:30:07 UTC

[PR] Revert java 17 compiler (druid)

cecemei opened a new pull request, #18831:
URL: https://github.com/apache/druid/pull/18831

    
   ### Description
   - revert back to java 11 compiler for hadoop compatibility
   - update to use v10 format for nested data
   
   
   <hr>
   
   <!-- Check the items by putting "x" in the brackets for the done things. Not all of these items apply to every PR. Remove the items which are not done or not relevant to the PR. None of the items from the checklist below are strictly necessary, but it would be very helpful if you at least self-review the PR. -->
   
   This PR has:
   
   - [ ] been self-reviewed.
      - [ ] using the [concurrency checklist](https://github.com/apache/druid/blob/master/dev/code-review/concurrency.md) (Remove this item if the PR doesn't have any relation to concurrency.)
   - [ ] added documentation for new or modified features or behaviors.
   - [ ] a release note entry in the PR description.
   - [ ] added Javadocs for most classes and all non-trivial methods. Linked related entities via Javadoc links.
   - [ ] added or updated version, license, or notice information in [licenses.yaml](https://github.com/apache/druid/blob/master/dev/license.md)
   - [ ] added comments explaining the "why" and the intent of the code wherever would not be obvious for an unfamiliar reader.
   - [ ] added unit tests or modified existing tests to cover new code paths, ensuring the threshold for [code coverage](https://github.com/apache/druid/blob/master/dev/code-review/code-coverage.md) is met.
   - [ ] added integration tests.
   - [ ] been tested in a test Druid cluster.


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org


Re: [PR] Revert java 17 compiler (druid)

Posted by "cecemei (via GitHub)" <gi...@apache.org>.
cecemei merged PR #18831:
URL: https://github.com/apache/druid/pull/18831


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org


Re: [PR] Revert java 17 compiler (druid)

Posted by "clintropolis (via GitHub)" <gi...@apache.org>.
clintropolis commented on code in PR #18831:
URL: https://github.com/apache/druid/pull/18831#discussion_r2608498614


##########
embedded-tests/pom.xml:
##########
@@ -29,6 +29,7 @@
 
   <properties>
     <surefire.rerunFailingTestsCount>0</surefire.rerunFailingTestsCount>
+    <maven.compiler.release>17</maven.compiler.release>

Review Comment:
   why is this needed? seems worth a comment



-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org


Re: [PR] Revert java 17 compiler (druid)

Posted by "cecemei (via GitHub)" <gi...@apache.org>.
cecemei commented on code in PR #18831:
URL: https://github.com/apache/druid/pull/18831#discussion_r2608889941


##########
embedded-tests/pom.xml:
##########
@@ -29,6 +29,7 @@
 
   <properties>
     <surefire.rerunFailingTestsCount>0</surefire.rerunFailingTestsCount>
+    <maven.compiler.release>17</maven.compiler.release>

Review Comment:
   Thanks all, I added some explanation. 



-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org


Re: [PR] Revert java 17 compiler (druid)

Posted by "kfaraz (via GitHub)" <gi...@apache.org>.
kfaraz commented on code in PR #18831:
URL: https://github.com/apache/druid/pull/18831#discussion_r2610576609


##########
embedded-tests/pom.xml:
##########
@@ -29,6 +29,7 @@
 
   <properties>
     <surefire.rerunFailingTestsCount>0</surefire.rerunFailingTestsCount>
+    <maven.compiler.release>17</maven.compiler.release>

Review Comment:
   I think we may fix it up in this patch itself. The only requirement for 17 (AFAIK) is the doc-style strings added in a recent test `NestedDataFormatsTest`. For the time being, we can just stick to regular strings.



-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org


Re: [PR] Revert java 17 compiler (druid)

Posted by "jtuglu1 (via GitHub)" <gi...@apache.org>.
jtuglu1 commented on code in PR #18831:
URL: https://github.com/apache/druid/pull/18831#discussion_r2608823369


##########
embedded-tests/pom.xml:
##########
@@ -29,6 +29,7 @@
 
   <properties>
     <surefire.rerunFailingTestsCount>0</surefire.rerunFailingTestsCount>
+    <maven.compiler.release>17</maven.compiler.release>

Review Comment:
   Maybe:
   
   ```
   Using JDK 11 language level restriction until Druid 37 which (as of 2025-12-10) is the current target for removing Hadoop support from the dev list threads. Hadoop relies upon JDK 8/11 language level which breaks when upgraded to anything higher.
   ```
   
   from: https://github.com/apache/druid/pull/18759#issuecomment-3554561707



-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org


Re: [PR] Revert java 17 compiler (druid)

Posted by "jtuglu1 (via GitHub)" <gi...@apache.org>.
jtuglu1 commented on PR #18831:
URL: https://github.com/apache/druid/pull/18831#issuecomment-3648186485

   @cecemei good to merge?


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org


Re: [PR] Revert java 17 compiler (druid)

Posted by "clintropolis (via GitHub)" <gi...@apache.org>.
clintropolis commented on code in PR #18831:
URL: https://github.com/apache/druid/pull/18831#discussion_r2608965762


##########
embedded-tests/pom.xml:
##########
@@ -29,6 +29,7 @@
 
   <properties>
     <surefire.rerunFailingTestsCount>0</surefire.rerunFailingTestsCount>
+    <maven.compiler.release>17</maven.compiler.release>

Review Comment:
   we will also need to remember to remove the changes here and in static-checks.yml in the future, not sure how to best manage that debt, i guess we could put a note in the root pom.xml...
   
   imo we should try to avoid diverging like this in any other modules and try to stay consistent with the root pom unless there is a seriously good reason so that we don't have to keep track of stuff like this.



-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org


Re: [PR] Revert java 17 compiler (druid)

Posted by "cecemei (via GitHub)" <gi...@apache.org>.
cecemei commented on code in PR #18831:
URL: https://github.com/apache/druid/pull/18831#discussion_r2611978914


##########
embedded-tests/pom.xml:
##########
@@ -29,6 +29,7 @@
 
   <properties>
     <surefire.rerunFailingTestsCount>0</surefire.rerunFailingTestsCount>
+    <maven.compiler.release>17</maven.compiler.release>

Review Comment:
   update the root pom to include things to check for upgrade to 17.
   
   imo using 17 in embedded-test is safe and multi-line string syntax helps with readability a lot, so hopefully we dont let this java 11 thing drag up back.



-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org