[
https://issues.apache.org/jira/browse/SPARK-32511?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
fqaiser94 updated SPARK-32511:
------------------------------
Description:
Based on the discussions in the parent ticket (SPARK-22231), add a new
{{dropFields}} method to the {{Column}} class.
This method should allow users to drop a column nested inside a StructType
Column (with similar semantics to the existing {{drop}} method on {{Dataset}}).
It should also be able to handle deeply nested columns through the same API.
This is similar to the {{withField}} method that was recently added in
SPARK-31317 and likely we can re-use some of that "infrastructure."
The public-facing method signature should be something along the following
lines:
{noformat}
def dropFields(fieldNames: String*): Column
{noformat}
was:
Based on the discussions in the parent ticket (SPARK-22231), add a new
{{dropFields}} method to the {{Column}} class.
This method should allow users to drop a column {{nested inside another
StructType Column}} (with similar semantics to the {{drop}} method on
{{Dataset}}).
This is similar to the {{withField}} that was recently added in SPARK-31317 and
likely can re-use some of that infrastructure.
The public-facing method signature should be something along the following
lines:
{noformat}
def dropFields(fieldNames: String*): Column
{noformat}
> Add dropFields method to Column class
> -------------------------------------
>
> Key: SPARK-32511
> URL: https://issues.apache.org/jira/browse/SPARK-32511
> Project: Spark
> Issue Type: Sub-task
> Components: SQL
> Affects Versions: 3.0.0
> Reporter: fqaiser94
> Priority: Major
>
> Based on the discussions in the parent ticket (SPARK-22231), add a new
> {{dropFields}} method to the {{Column}} class.
> This method should allow users to drop a column nested inside a StructType
> Column (with similar semantics to the existing {{drop}} method on
> {{Dataset}}).
> It should also be able to handle deeply nested columns through the same API.
> This is similar to the {{withField}} method that was recently added in
> SPARK-31317 and likely we can re-use some of that "infrastructure."
> The public-facing method signature should be something along the following
> lines:
> {noformat}
> def dropFields(fieldNames: String*): Column
> {noformat}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]