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

Read Geometry Type from Jdbc/beeline #1070

Open
MyqueWooMiddo opened this issue Nov 2, 2023 · 0 comments
Open

Read Geometry Type from Jdbc/beeline #1070

MyqueWooMiddo opened this issue Nov 2, 2023 · 0 comments

Comments

@MyqueWooMiddo
Copy link

MyqueWooMiddo commented Nov 2, 2023

Expected behavior

I can access Geometry colmn via JDBC / beeline consistent with Spark-shell , it prints it's WKT automatically.

Actual behavior

When I execute "select st_point(111,22) " via JDBC , It returns "java.lang.String cannot be cast to [B (state=,code=0)"

Hive-serde treats the Geometry as BINARY_TYPE , but it failed to be cast to byte[] .

Settings

Sedona version = 1.5.0

Apache Spark version = 3.2.2

API type = JDBC

Scala version = 2.12

JRE version = 1.8

Environment = Spark Thrift Server

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

No branches or pull requests

1 participant