[jira] [Commented] (SPARK-30983) Support more than 5 typed column in typed Dataset.select API

2022-05-19 Thread Apache Spark (Jira)


[ 
https://issues.apache.org/jira/browse/SPARK-30983?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17539690#comment-17539690
 ] 

Apache Spark commented on SPARK-30983:
--

User 'nkronenfeld' has created a pull request for this issue:
https://github.com/apache/spark/pull/36613

> Support more than 5 typed column in typed Dataset.select API
> 
>
> Key: SPARK-30983
> URL: https://issues.apache.org/jira/browse/SPARK-30983
> Project: Spark
>  Issue Type: Improvement
>  Components: SQL
>Affects Versions: 3.1.0
>Reporter: L. C. Hsieh
>Priority: Major
>
> Because Dataset only provides overloading typed select API to at most 5 typed 
> columns, once more than 5 typed columns given, the select API call will go 
> for untyped one.
> Currently users cannot call typed select with more than 5 typed columns. 
> There are few options:
> 1. Expose Dataset.selectUntyped (could rename it) to accept any number (due 
> to the limit of ExpressionEncoder.tuple, at most 22 actually) of typed 
> columns. Pros: not need to add too much code in Dataset. Cons: The returned 
> type is generally Dataset[_], not a specified one like Dataset[(U1, U2)] for 
> the overloading method.
> 2. Add more overloading typed select APIs up to 22 typed column inputs. Pros: 
> Clear returned type. Cons: A lot of code to be added to Dataset for just 
> corner cases. It can be a breaking change to existing user code that calls 
> untyped select API. 



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

-
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org



[jira] [Commented] (SPARK-30983) Support more than 5 typed column in typed Dataset.select API

2020-03-09 Thread L. C. Hsieh (Jira)


[ 
https://issues.apache.org/jira/browse/SPARK-30983?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17054692#comment-17054692
 ] 

L. C. Hsieh commented on SPARK-30983:
-

For option 2, adding more overloading typed select APIs, one issue is that it 
can be a breaking change to existing user code that calls untyped select API. 

> Support more than 5 typed column in typed Dataset.select API
> 
>
> Key: SPARK-30983
> URL: https://issues.apache.org/jira/browse/SPARK-30983
> Project: Spark
>  Issue Type: Improvement
>  Components: SQL
>Affects Versions: 3.0.0
>Reporter: L. C. Hsieh
>Priority: Major
>
> Because Dataset only provides overloading typed select API to at most 5 typed 
> columns, once more than 5 typed columns given, the select API call will go 
> for untyped one.
> Currently users cannot call typed select with more than 5 typed columns. 
> There are few options:
> 1. Expose Dataset.selectUntyped (could rename it) to accept any number (due 
> to the limit of ExpressionEncoder.tuple, at most 22 actually) of typed 
> columns. Pros: not need to add too much code in Dataset. Cons: The returned 
> type is generally Dataset[_], not a specified one like Dataset[(U1, U2)] for 
> the overloading method.
> 2. Add more overloading typed select APIs up to 22 typed column inputs. Pros: 
> Clear returned type. Cons: A lot of code to be added to Dataset for just 
> corner cases.



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

-
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org



[jira] [Commented] (SPARK-30983) Support more than 5 typed column in typed Dataset.select API

2020-02-27 Thread L. C. Hsieh (Jira)


[ 
https://issues.apache.org/jira/browse/SPARK-30983?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17047278#comment-17047278
 ] 

L. C. Hsieh commented on SPARK-30983:
-

cc [~cloud_fan]

> Support more than 5 typed column in typed Dataset.select API
> 
>
> Key: SPARK-30983
> URL: https://issues.apache.org/jira/browse/SPARK-30983
> Project: Spark
>  Issue Type: Improvement
>  Components: SQL
>Affects Versions: 3.0.0
>Reporter: L. C. Hsieh
>Priority: Major
>
> Because Dataset only provides overloading typed select API to at most 5 typed 
> columns, once more than 5 typed columns given, the select API call will go 
> for untyped one.
> Currently users cannot call typed select with more than 5 typed columns. 
> There are few options:
> 1. Expose Dataset.selectUntyped (could rename it) to accept any number (due 
> to the limit of ExpressionEncoder.tuple, at most 22 actually) of typed 
> columns. Pros: not need to add too much code in Dataset. Cons: The returned 
> type is generally Dataset[_], not a specified one like Dataset[(U1, U2)] for 
> the overloading method.
> 2. Add more overloading typed select APIs up to 22 typed column inputs. Pros: 
> Clear returned type. Cons: A lot of code to be added to Dataset for just 
> corner cases.



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

-
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org