You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@druid.apache.org by "FrankChen021 (via GitHub)" <gi...@apache.org> on 2026/10/11 14:38:50 UTC

[PR] fix: correct JSON serialization of CloneQueryMode (druid)

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

   ### Description
   
   `CloneQueryMode` serializes as its constant name (`PREFERCLONES`), but its `@JsonCreator` only accepts `preferClones`, so a serialized value can't be read back. This annotates `toString()` with `@JsonValue` so both directions use `preferClones`.
   
   Query context reads are unaffected, since they parse the string case-insensitively.
   
   <hr>
   
   This PR has:
   
   - [x] been self-reviewed.
   - [x] added unit tests or modified existing tests to cover new code paths.
   


-- 
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] fix: correct JSON serialization of CloneQueryMode (druid)

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


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