We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
clickhouse Auto Inference detects the String column as Float I have a String column, Values start with E like
E
col1 E76565 E76428 E76525 . .
Clickhouse detects it as Nullable(Float) with all NULL values.
The text was updated successfully, but these errors were encountered:
if c1 column is detected as Float64 then why the value is NaN
CREATE TABLE test2 as format(CSV, 'E876,42.42,Hello World!') select * from test2
Sorry, something went wrong.
That's because e876 and similar is valid float in exponential notation:
e876
:) select * from format(CSV, '1E20') ┌────────────────────c1─┐ │ 100000000000000000000 │ └───────────────────────┘
But I think we should infer such values as Strings anyway. I will fix it
As a workaround you can set a prefferred type for this specific column using setting schema_inference_hints
schema_inference_hints
Avogar
Successfully merging a pull request may close this issue.
clickhouse Auto Inference detects the String column as Float
I have a String column, Values start with
E
likeClickhouse detects it as Nullable(Float) with all NULL values.
The text was updated successfully, but these errors were encountered: