You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@drill.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2020/02/08 07:21:00 UTC

[jira] [Commented] (DRILL-7574) Generalize projection parser

    [ https://issues.apache.org/jira/browse/DRILL-7574?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17032839#comment-17032839 ] 

ASF GitHub Bot commented on DRILL-7574:
---------------------------------------

paul-rogers commented on pull request #1974: DRILL-7574: Generalize the projection parser
URL: https://github.com/apache/drill/pull/1974
 
 
   Adds support for multi-dimensional arrays, and columns
   projected as both an array and a map.
   
   ## Description
   
   EVF contains a bit of code called the"projection parser": it takes a projection list and converts it into a form useful for scan projection. The prior version handled single-level arrays, such as needed for the `columns` column in the text reader. For JSON, we must handle arbitrary column structures such as:
   
   ```
   a, a.b, a[1], a[1][2], a.[1][2].b
   ```
   
   The revised version is more forgiving; it just describes what appears in the projection list without trying to enforce semantic rules like the previous version did.
   
   Modified consumers of the projection parser to reflect the changes.
   
   ## Documentation
   
   This feature is not user-visible.
   
   ## Testing
   
   Added new unit tests, revised existing unit tests. Reran all unit tests.
   
 
----------------------------------------------------------------
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


> Generalize projection parser
> ----------------------------
>
>                 Key: DRILL-7574
>                 URL: https://issues.apache.org/jira/browse/DRILL-7574
>             Project: Apache Drill
>          Issue Type: Improvement
>    Affects Versions: 1.17.0
>            Reporter: Paul Rogers
>            Assignee: Paul Rogers
>            Priority: Major
>             Fix For: 1.18.0
>
>
> EVF contains a bit of code called the"projection parser": it takes a projection list and converts it into a form useful for scan projection. The prior version handled single-level arrays, such as needed for the {{`columns`}} column in the text reader. For JSON, we must handle arbitrary column structures such as:
> {noformat}
> a, a.b, a[1], a[1][2], a.[1][2].b
> {noformat}
> Adding the DICT type means that we must be a bit more general in the parser. This ticket fixes these issues.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)