-
Notifications
You must be signed in to change notification settings - Fork 275
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
Added SQL string function documentation and examples #4773
Conversation
sanderson
commented
Mar 2, 2023
- Rebased/mergeable
@alamb I noticed some behavior with some of the string functions that may be a bug. If I need to modify a tag value, I have to explicitly cast the tag column to a string. I know that tags and fields use different arrow types (tags seem to be a SELECT DISTINCT
upper(room::STRING)
FROM home I feel like I should just be able to do the following: SELECT DISTINCT
upper(room)
FROM home Is this something worth filing an issue about? I think this is fairly unique to our implementation of SQL, so if I do create an issue, where should I create it? |
Hi @sanderson -- I can reproduce the error you are describing here:
But this fails:
I think this is a bug/limitation in DataFusion that should be fixed upstream. I will file a bug. |
@@ -0,0 +1,1114 @@ | |||
--- |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks like great content. Would you be amenable to figuring out how we could move the content into the DataFusion repo (and maybe have a script to sync it over here or something)? That way we could get more reviewers in the community to help review
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My plan is to port all of this content over to the DataFusion docs once it's complete. That will likely be sometime next week. Pulling content from upstream will be a bit of a challenge since not all functionality upstream is applicable downstream in InfluxDB, but we may be able to figure something out.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Filed https://github.com/influxdata/idpe/issues/17251 to track helping this effort
|