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

Expand Operand variants #3

Open
rukai opened this issue Mar 22, 2022 · 1 comment
Open

Expand Operand variants #3

rukai opened this issue Mar 22, 2022 · 1 comment

Comments

@rukai
Copy link
Member

rukai commented Mar 22, 2022

it looks like Operand the equivalent of sqlparser::ast::value::Value doesnt yet parse the cassandra native types https://cassandra.apache.org/doc/latest/cassandra/cql/types.html

image

It wont be able to differentiate between types like int and tinyint but those can be combined into a single int type

@Claude-at-Instaclustr
Copy link
Contributor

The native types are not in the operands as they represent the information available in the Update, Insert, and Select commands. No data type is, only string representations. The only place DataType is present in the query is in the alter table, alter type, create aggregate, alter column, create function, create table and create type statements.

For queries the data type is not available until there is a result from the server and then the types are embedded in the metadata for the rows.

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

2 participants