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

String to double gets null for numbers with long exponet #1960

Open
thirtiseven opened this issue Apr 12, 2024 · 0 comments
Open

String to double gets null for numbers with long exponet #1960

thirtiseven opened this issue Apr 12, 2024 · 0 comments

Comments

@thirtiseven
Copy link
Collaborator

Seq("9.299999257686047e-0005603333574677677", "1.0").toDF("s").repartition(1).selectExpr("CAST(s as double)").collect.foreach(println)

on CPU we get back 0.0 and 1.0
on the GPU we get back null and 1.0

Originally posted by @revans2 in #1923 (comment)

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