You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@druid.apache.org by "clintropolis (via GitHub)" <gi...@apache.org> on 2023/08/01 20:23:20 UTC

[PR] fix nested field virtual column array column element object selector (druid)

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

   ### Description
   Fixes a case I missed in #14688 when the return type is STRING but its coming from a top level array typed column instead of a nested array column while making a vector object selector. 
   
   Also while here I noticed that the internal `JSON_VALUE` functions for array types were named inconsistently with the non-array functions, so I renamed them. These are not documented so it should not be disruptive in any way, since they are only used internally for rewrites while planning to make the correctly virtual column.
    * `JSON_VALUE_RETURNING_ARRAY_VARCHAR` -> `JSON_VALUE_ARRAY_VARCHAR`
    * `JSON_VALUE_RETURNING_ARRAY_BIGINT` -> `JSON_VALUE_ARRAY_BIGINT`
    * `JSON_VALUE_RETURNING_ARRAY_DOUBLE` -> `JSON_VALUE_ARRAY_DOUBLE`
   
   The internal non-array functions are `JSON_VALUE_VARCHAR`, `JSON_VALUE_BIGINT`, and `JSON_VALUE_DOUBLE`.
   
   <hr>
   
   This PR has:
   
   - [x] been self-reviewed.
   - [x] added comments explaining the "why" and the intent of the code wherever would not be obvious for an unfamiliar reader.
   - [x] 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.
   - [x] 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] fix nested field virtual column array column element vector object selector (druid)

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

   I can't imagine how the failing query integration tests could be related to this PR since `JSON_VALUE` isn't used in all of the failing tests...
   https://github.com/apache/druid/actions/runs/5734205709/job/15541306968?pr=14729


-- 
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 nested field virtual column array column element vector object selector (druid)

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


-- 
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 nested field virtual column array column element vector object selector (druid)

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

   Merged since failures are unrelated. 


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