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

[function] typeof #36245

Closed
wangsimo0 opened this issue Dec 1, 2023 · 7 comments
Closed

[function] typeof #36245

wangsimo0 opened this issue Dec 1, 2023 · 7 comments
Assignees

Comments

@wangsimo0
Copy link
Contributor

sometimes we don't know the exact type of an output, in starrocks there is not a good way to confirm that. so we need this function.

typeof

Returns the name of the type of the provided expression

syntax

TYPEOF( <expr> )

input

any expr, it can be a funtion's result or an expression of column..

output

the name of the type of the provided expression, like int(11),varchar(65533) or datetime.

reference
https://trino.io/docs/current/functions/conversion.html?highlight=typeof#typeof
https://docs.snowflake.com/en/sql-reference/functions/typeof

@xuzifu666
Copy link
Contributor

@wangsimo0

@NeelakshSharma
Copy link

Hi @wangsimo0 , i would like to work on this issue. Can we please connect on how to get started?

@xuzifu666
Copy link
Contributor

Hi @wangsimo0 , i would like to work on this issue. Can we please connect on how to get started?

i would do the issue recently @NeelakshSharma

@NeelakshSharma
Copy link

Oh okay, can you please attach the PR for my reference? I would like to see the implementation.

@MicePilot
Copy link
Contributor

@xuzifu666 May I ask how the current progress is? We need this function.

@MicePilot
Copy link
Contributor

@xuzifu666 Hi,I have implemented the typeof function, can I submit a PR for this issue?

@xuzifu666
Copy link
Contributor

@xuzifu666 Hi,I have implemented the typeof function, can I submit a PR for this issue?

OK,you can submit it,Thanks @MicePilot

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