Skip to content

Conversation

@felixcheung
Copy link
Member

What changes were proposed in this pull request?

Add column functions: to_json, from_json, and tests covering error cases.

How was this patch tested?

unit tests, manual

schema <- structType(structField("age", "integer"),
structField("height", "double"))
s <- collect(select(df, alias(from_json(df$json, schema), "structcol")))
#order
Copy link
Member Author

@felixcheung felixcheung Mar 2, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I haven't figured out how to sort/filter by the field of the struct in a data.frame in R yet, to make this results predictable..

@SparkQA
Copy link

SparkQA commented Mar 2, 2017

Test build #73751 has finished for PR 17134 at commit b67b9e4.

  • This patch fails SparkR unit tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@SparkQA
Copy link

SparkQA commented Mar 2, 2017

Test build #73782 has finished for PR 17134 at commit f3258c7.

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

@SparkQA
Copy link

SparkQA commented Mar 5, 2017

Test build #73918 has finished for PR 17134 at commit 3748d9b.

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

@felixcheung
Copy link
Member Author

merged to master

@asfgit asfgit closed this in 80d5338 Mar 5, 2017
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.

2 participants