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

[Bug] Parsing of double result fails when using JDBC #51233

Open
zenoyang opened this issue Sep 20, 2024 · 0 comments
Open

[Bug] Parsing of double result fails when using JDBC #51233

zenoyang opened this issue Sep 20, 2024 · 0 comments
Labels
type/bug Something isn't working

Comments

@zenoyang
Copy link
Contributor

Steps to reproduce the behavior (Required)

In the lake warehouse query scenario, StarRocks is used to read data in hive/iceberg/.... When the double type of the external table stores nan or infinity (note that it is not NaN and Infinity), when querying the results through JDBC connection, the final result is parsed through the getDouble method of ResultSet. However, getDouble throws an exception when encountering lowercase nan or infinity, causing the query to fail.

JDBC getDouble call path:

ResultSet#getDouble -> ResultSetImpl#getDouble -> getDoubleInternal -> Double.parseDouble -> readJavaFormatString

image image

Expected behavior (Required)

Real behavior (Required)

StarRocks version (Required)

  • 3.2.8
@zenoyang zenoyang added the type/bug Something isn't working label Sep 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant