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

Jacques Nadeau commented on DRILL-3876:
---------------------------------------

As Jason mentions, the multi-flatten case makes planning a pain since we have 
to actually break these into sub-operators. If you're only looking to solve the 
single flatten case, that should be easier. You would simply need to have 
flatten's config also include a "pass-through fields" attribute.

I recommend implementing this as a task after implementing UDTFs. Multiflatten 
could then become a special UDTF and the logic would become much simpler to 
write. This would also vastly simplify the flatten rule. I'll put together a 
proposal on UDTFs.

> flatten() should not require a subsequent project to strip columns that 
> aren't required
> ---------------------------------------------------------------------------------------
>
>                 Key: DRILL-3876
>                 URL: https://issues.apache.org/jira/browse/DRILL-3876
>             Project: Apache Drill
>          Issue Type: Bug
>          Components: Execution - Flow
>    Affects Versions: 1.2.0
>            Reporter: Chris Westin
>            Assignee: Chris Westin
>




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to