GitHub user cloud-fan opened a pull request:

    https://github.com/apache/spark/pull/2405

    [SPARK-2096][SQL] support dot notation on arbitrarily nested array of struct

    The rule is simple: If you want `a.b` work, then `a` must be some level of 
nested array of struct(level 0 means just a StructType). And the result of 
`a.b` is same level of nested array of b-type.
    An optimization is: the resolve chain looks like `Attribute -> GetItem -> 
GetField -> GetField ...`, so we could transmit the nested array information 
between `GetItem` and `GetField` to avoid repeated computation of 
`innerDataType` and `containsNullList` of that nested array.
    @marmbrus Could you take a look?

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/cloud-fan/spark nested-array-dot

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/spark/pull/2405.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #2405
    
----
commit c42dcc79f5734191edbf4ae3be9609ff0a0b5930
Author: Wenchen Fan <[email protected]>
Date:   2014-09-16T04:26:45Z

    support dot notation on nested array

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to