Skip to content

Conversation

@sujithjay
Copy link

What changes were proposed in this pull request?

I fixed a typo in the Scaladoc for the method def struct(cols: Column*): Column. 'retained' was misspelt as 'remained'.

How was this patch tested?

Before:

Creates a new struct column.
If the input column is a column in a DataFrame, or a derived column expression
that is named (i.e. aliased), its name would be remained as the StructField's name,
otherwise, the newly generated StructField's name would be auto generated as
col with a suffix index + 1, i.e. col1, col2, col3, ...

After:

Creates a new struct column.
If the input column is a column in a DataFrame, or a derived column expression
that is named (i.e. aliased), its name would be retained as the StructField's name,
otherwise, the newly generated StructField's name would be auto generated as
col with a suffix index + 1, i.e. col1, col2, col3, ...

@srowen
Copy link
Member

srowen commented Jun 9, 2017

That's fine, though we usually ask people to look for typos more broadly, so we're not handling a bunch of one-offs. Have a look for similar typos or the rest of the file if you would

@sujithjay
Copy link
Author

Sure.

@SparkQA
Copy link

SparkQA commented Jun 11, 2017

Test build #3789 has finished for PR 18254 at commit b9e7352.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@srowen
Copy link
Member

srowen commented Jun 11, 2017

Merged to master

@asfgit asfgit closed this in 3a84004 Jun 11, 2017
dataknocker pushed a commit to dataknocker/spark that referenced this pull request Jun 16, 2017
## What changes were proposed in this pull request?

I fixed a typo in the Scaladoc for the method `def struct(cols: Column*): Column`. 'retained' was misspelt as 'remained'.

## How was this patch tested?
Before:

Creates a new struct column.
   If the input column is a column in a `DataFrame`, or a derived column expression
   that is named (i.e. aliased), its name would be **remained** as the StructField's name,
   otherwise, the newly generated StructField's name would be auto generated as
   `col` with a suffix `index + 1`, i.e. col1, col2, col3, ...

After:

   Creates a new struct column.
   If the input column is a column in a `DataFrame`, or a derived column expression
   that is named (i.e. aliased), its name would be **retained** as the StructField's name,
   otherwise, the newly generated StructField's name would be auto generated as
   `col` with a suffix `index + 1`, i.e. col1, col2, col3, ...

Author: sujithjay <[email protected]>

Closes apache#18254 from sujithjay/fix-typo.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants