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

support for spark.sql.datetime.java8API.enabled #125

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

VVBondarenko
Copy link

Motivation: when using connector with thrift server, any queries on data containing date/time types are crashing. It's caused by thrift server enabling spark.sql.datetime.java8API.enabled flag for all of its sessions.

Supported JSR-310 types which are already supported by Spark SQL:

  • LocalDate
  • LocalDateTime
  • Instant Other types are causing Encoder to fail, so they won't work even if taken into account.

As spark.sql.datetime.java8API.enabled is disabled by default, it shouldn't cause compatibility issues.

Motivation: when using connector with thrift server, any queries on data containing date/time types are crashing. It's caused by thrift server enabling `spark.sql.datetime.java8API.enabled` flag for all of its sessions.

Supported JSR-310 types which are already supported by Spark SQL:
- LocalDate
- LocalDateTime
- Instant
Other types are causing Encoder to fail, so they won't work even if taken into account.

As `spark.sql.datetime.java8API.enabled` is disabled by default, it shouldn't cause compatibility issues.
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.

1 participant