We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When upgrading DataFusion in InfluxData IOx, we found a regression that fc34dac brought in, which comes from the PR below:
For example, querying substring("region", 1, 2) errors with the following message:
substring("region", 1, 2)
Unsupported ast node in sqltorel: Substring { expr: Identifier(Ident { value: "region", quote_style: None }), substring_from: Some(Value(Number("1", false))), substring_for: Some(Value(Number("2", false))), special: true }
I verified that the previous commit (eb72deb) doesn't have this bug
apache/datafusion
git co fc34dacdb9842cde4d056d5a659796ede4ae5e74
cd datafusion-cli cargo build
./target/debug/datafusion-cli
datafusion-cli
DataFusion CLI v37.1.0 # create a table with one column CREATE TABLE fruits (name VARCHAR(100)); INSERT INTO fruits (name) VALUES ('banana'); INSERT INTO fruits (name) VALUES ('apple'); 0 row(s) fetched. Elapsed 0.004 seconds. +-------+ | count | +-------+ | 1 | +-------+ 1 row(s) fetched. Elapsed 0.004 seconds. +-------+ | count | +-------+ | 1 | +-------+ 1 row(s) fetched. Elapsed 0.004 seconds. > select * from fruits; +--------+ | name | +--------+ | banana | | apple | +--------+ 2 row(s) fetched. Elapsed 0.011 seconds. > select substring("name", 1, 2) from fruits; This feature is not implemented: Unsupported ast node in sqltorel: Substring { expr: Identifier(Ident { value: "name", quote_style: Some('"') }), substring_from: Some(Value(Number("1", false))), substring_for: Some(Value(Number("2", false))), special: true }
> select substring("name", 1, 2) from fruits; +---------------------------------------+ | substr(fruits.name,Int64(1),Int64(2)) | +---------------------------------------+ | ba | | ap | +---------------------------------------+ 2 row(s) fetched. Elapsed 0.015 seconds.
I verified that substring() works fine when I built and ran the previous commit (eb72deb) locally
substring()
No response
The text was updated successfully, but these errors were encountered:
Should be resolved by #10242
Sorry, something went wrong.
@Jefffrey I forgot to check the latest commits🤦♀️ Thank you!
No branches or pull requests
Describe the bug
When upgrading DataFusion in InfluxData IOx, we found a regression that fc34dac brought in, which comes from the PR below:
For example, querying
substring("region", 1, 2)
errors with the following message:Unsupported ast node in sqltorel: Substring { expr: Identifier(Ident { value: "region", quote_style: None }), substring_from: Some(Value(Number("1", false))), substring_for: Some(Value(Number("2", false))), special: true }
I verified that the previous commit (eb72deb) doesn't have this bug
To Reproduce
apache/datafusion
main branchdatafusion-cli
Expected behavior
I verified that
substring()
works fine when I built and ran the previous commit (eb72deb) locallyAdditional context
No response
The text was updated successfully, but these errors were encountered: