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
> select interval '1 YEAR' Arrow error: Not yet implemented: Unsupported Interval Expression with value "1 YEAR seconds"
however use lowercase is ok.
> select interval '1 year' +--------------------------------------------------------+ | IntervalMonthDayNano("950737950171172051122527404032") | +--------------------------------------------------------+ | 0 years 12 mons 0 days 0 hours 0 mins 0.000000000 secs | +--------------------------------------------------------+
I try other databases such as duckdb and postgres, and uppercase style is ok.
use datafusion-cli and select interval '1 YEAR' DataFusion CLI v33.0.0
select interval '1 YEAR'
ouput the right result.
The reason may be because https://github.com/apache/arrow-datafusion/blob/main/datafusion/sql/src/expr/value.rs#L319 the has_units function just check the lowercase style, and I think add to_lowercase in it can solve this problem.
has_units
to_lowercase
The text was updated successfully, but these errors were encountered:
I can try to fix it
Sorry, something went wrong.
I agree this sounds like a good thing to solve
Interval
QuenKar
Successfully merging a pull request may close this issue.
Describe the bug
however use lowercase is ok.
I try other databases such as duckdb and postgres, and uppercase style is ok.
To Reproduce
use datafusion-cli and
select interval '1 YEAR'
DataFusion CLI v33.0.0
Expected behavior
ouput the right result.
Additional context
The reason may be because https://github.com/apache/arrow-datafusion/blob/main/datafusion/sql/src/expr/value.rs#L319
the
has_units
function just check the lowercase style, and I think addto_lowercase
in it can solve this problem.The text was updated successfully, but these errors were encountered: