Skip to content

fix: Refactor the parameters for timestamp expressions and fix bug for timeGranularity lowercase#7856

Open
yvonnep165 wants to merge 3 commits intomainfrom
yvonne/refactor-timestamp-parameters
Open

fix: Refactor the parameters for timestamp expressions and fix bug for timeGranularity lowercase#7856
yvonnep165 wants to merge 3 commits intomainfrom
yvonne/refactor-timestamp-parameters

Conversation

@yvonnep165
Copy link
Contributor

Changes on top of #7826:

  • Create new type TimeUnit and refactor the timestampAdd, timestampSubtract and timestampDiff expressions to use this value
  • Change the type TimeGranularity to include type TimeUnit directly and change the camelCase value to lowercase
  • Remove the toLowerCase() usage in timestampTruncate and timestampExtract

@yvonnep165 yvonnep165 requested review from dlarocque and milaGGL March 24, 2026 21:18
@yvonnep165 yvonnep165 requested a review from a team as a code owner March 24, 2026 21:18
isAbsent(): BooleanExpression;
isError(): BooleanExpression;
isType(type: Type): BooleanExpression;
isType(type: string): BooleanExpression;
Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks for fixing this- i forgot to generate the API report when i added this

Copy link
Contributor

@milaGGL milaGGL left a comment

Choose a reason for hiding this comment

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

LGTM

Base automatically changed from yvonne/timestamp-expressions to main March 26, 2026 20:16
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