You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@calcite.apache.org by GitBox <gi...@apache.org> on 2019/12/04 12:28:10 UTC

[GitHub] [calcite] yanlin-Lynn opened a new pull request #1630: [CALCITE-3567] Unnest support Map wrapped with RecordType

yanlin-Lynn opened a new pull request #1630: [CALCITE-3567] Unnest support Map wrapped with RecordType
URL: https://github.com/apache/calcite/pull/1630
 
 
   JIRA: [CALCITE-3567](https://issues.apache.org/jira/browse/CALCITE-3567)
   
   Currently, UNNEST(RECORDTYPE(ARRAY)) and UNNEST(RECORDTYPE(MULTISET)) works well, but UNNEST(RECORDTYPE(MAP)) is not supported.
   Because `SqlUnnestOperator` use [SCALAR_OR_RECORD_COLLECTION_OR_MAP](https://github.com/apache/calcite/blob/master/core/src/main/java/org/apache/calcite/sql/type/OperandTypes.java#L581), and it just checks `MULTISET` and `ARRAY` in `RecordType`.
   
   This PR tries to add check for `MAP` in `RecordType` for `SqlUnnestOperator` too.

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services