Github user yijieshen commented on the pull request:
https://github.com/apache/spark/pull/6874#issuecomment-113370068
I find it hard to make a column names version of API:
```scala
def namedStruct(fieldName: String, col: String, fieldAndCols: String*):
Column = ???
```
It would limit creation of Literal field using the API above, and when we
change the API to the below one:
```scala
def namedStruct(fieldName: String, col: Any, fieldAndCols: Any*): Column
= ???
```
When we have String in even positions, it's impossible to tell if the user
want to create a String Literal or refer to a col
---
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]