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

[BugFix]fix the bug in issue SPARK-34759. #31852

Closed
wants to merge 1 commit into from

Conversation

zengruios
Copy link
Contributor

What changes were proposed in this pull request?

In JavaSparkSQLExample, exception is thrown in function runDatasetCreationExample, when execute ‘spark.read().json(path).as(personEncoder)’.
The exception is 'Exception in thread "main" org.apache.spark.sql.AnalysisException: Cannot up cast age from bigint to int.'
Change age's type to long.

Why are the changes needed?

run JavaSparkSQLExample successfully.

Does this PR introduce any user-facing change?

NO

How was this patch tested?

test in JavaSparkSQLExample.

@AmplabJenkins
Copy link

Can one of the admins verify this patch?

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