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

[Enhancement] Support cast string to int #52473

Open
wangsimo0 opened this issue Oct 30, 2024 · 0 comments
Open

[Enhancement] Support cast string to int #52473

wangsimo0 opened this issue Oct 30, 2024 · 0 comments
Labels
type/enhancement Make an enhancement to StarRocks

Comments

@wangsimo0
Copy link
Contributor

Enhancement

StarRocks> select cast ('123.4' as INT) ;
+-----------------------+
I CAST ('1324.2' AS INT) |
+-----------------------+
|                   NULL |
+-----------------------+

in this SQL, 123.4 will be treated as a string and cannot be cast into int directly. In snowflake, hive, spark and MySQL, this is castable. However, in PostgreSQL, Clickhouse and trino, this is not castable.
Still a nice to have enhancement though.

@wangsimo0 wangsimo0 added the type/enhancement Make an enhancement to StarRocks label Oct 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/enhancement Make an enhancement to StarRocks
Projects
None yet
Development

No branches or pull requests

1 participant