Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NEW FEATURE: Convert json to structured value like struct or array #420

Open
alex-lx opened this issue Aug 21, 2018 · 1 comment
Open

NEW FEATURE: Convert json to structured value like struct or array #420

alex-lx opened this issue Aug 21, 2018 · 1 comment

Comments

@alex-lx
Copy link
Contributor

alex-lx commented Aug 21, 2018

Just like spark.read.json, we can get json schema inferred by analysis sample data or, or explicitly given by the user (e.g. the comment).

Is it necessary?

@birdstorm
Copy link
Contributor

Hi @alex-lx . In short, yes, but that also means most functions concerning JSON values should be implemented including, e.g., explode(), and that might be a pretty complex work, so it won't be our prior task.

As a matter of fact, in order to convert JSON into some user-defined type(UDT), which Spark still has not left public its API yet in 2.3, there might be some issues concerning determining DataFrame schema.

However, we are happy to discuss about these difficulties here in this thread and welcome contribution on implementing fundamental JSON structure. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants