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

SQL: Implement CONVERT function and double-check CAST function #34513

Closed
astefan opened this issue Oct 16, 2018 · 1 comment
Closed

SQL: Implement CONVERT function and double-check CAST function #34513

astefan opened this issue Oct 16, 2018 · 1 comment

Comments

@astefan
Copy link
Contributor

astefan commented Oct 16, 2018

CONVERT function is similar to CAST function and they should in general have the same behavior. This issue addresses the implementation for CONVERT (which should re-use the code for CAST) and, also, double checks the CAST solution so far.
This is part of #30007.

@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-search-aggs

@matriv matriv assigned matriv and unassigned astefan Oct 19, 2018
matriv added a commit to matriv/elasticsearch that referenced this issue Oct 19, 2018
`CONVERT` works exactly like cast with slightly different syntax:
`CONVERT(<value>, <data_type)` as opposed to `CAST(<value> AS <data_type>)`

Moreover it support format of the MS-SQL data types `SQL_<type>`,
e.g.: `SQL_INTEGER`

Closes: elastic#34513
matriv pushed a commit that referenced this issue Oct 23, 2018
`CONVERT` works exactly like cast with slightly different syntax:
`CONVERT(<value>, <data_type)` as opposed to `CAST(<value> AS <data_type>)`

Moreover it support format of the MS-SQL data types `SQL_<type>`,
e.g.: `SQL_INTEGER`

Closes: #34513
matriv pushed a commit that referenced this issue Oct 23, 2018
`CONVERT` works exactly like cast with slightly different syntax:
`CONVERT(<value>, <data_type)` as opposed to `CAST(<value> AS <data_type>)`

Moreover it support format of the MS-SQL data types `SQL_<type>`,
e.g.: `SQL_INTEGER`

Closes: #34513
kcm pushed a commit that referenced this issue Oct 30, 2018
`CONVERT` works exactly like cast with slightly different syntax:
`CONVERT(<value>, <data_type)` as opposed to `CAST(<value> AS <data_type>)`

Moreover it support format of the MS-SQL data types `SQL_<type>`,
e.g.: `SQL_INTEGER`

Closes: #34513
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants