Skip to content

[CALCITE-5217] Add support for INTERVAL qualifier for Firebolt#2860

Merged
jbalint merged 2 commits intoapache:mainfrom
aymeric-dispa:feature/add-support-for-interval-firebolt
Nov 29, 2022
Merged

[CALCITE-5217] Add support for INTERVAL qualifier for Firebolt#2860
jbalint merged 2 commits intoapache:mainfrom
aymeric-dispa:feature/add-support-for-interval-firebolt

Conversation

@aymeric-dispa
Copy link
Contributor

@aymeric-dispa aymeric-dispa commented Jul 23, 2022

Adds support for the INTERVAL qualifier for Firebolt.

Ticket: https://issues.apache.org/jira/browse/CALCITE-5217

@aymeric-dispa aymeric-dispa force-pushed the feature/add-support-for-interval-firebolt branch 2 times, most recently from 1a4c899 to 6b32974 Compare July 25, 2022 08:04
writer.print("-");
}
writer.literal(interval.getIntervalLiteral());
writer.print(interval.getIntervalQualifier().toString());
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

toString is AnsiSqlDialect.DEFAULT.

I prefer to use interval.getIntervalQualifier().unparse(writer, leftPrec, rightPrec);

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just realised that the implementation was a bit too simplistic and was not handling ranges (I just pushed a change)

@aymeric-dispa aymeric-dispa force-pushed the feature/add-support-for-interval-firebolt branch 3 times, most recently from 38763ca to 7a657c5 Compare August 1, 2022 17:18
@aymeric-dispa aymeric-dispa force-pushed the feature/add-support-for-interval-firebolt branch from 7a657c5 to 1e54206 Compare August 1, 2022 17:19
@aymeric-dispa aymeric-dispa force-pushed the feature/add-support-for-interval-firebolt branch from 1e54206 to 30dc09a Compare August 2, 2022 14:01
@aymeric-dispa aymeric-dispa force-pushed the feature/add-support-for-interval-firebolt branch from 30dc09a to 3f0a888 Compare August 3, 2022 08:13
@jbalint jbalint self-assigned this Nov 29, 2022
@jbalint jbalint merged commit 35c8790 into apache:main Nov 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants