-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Normalize date_trunc and date_part tokens during initial AST rewrites
- Loading branch information
Showing
4 changed files
with
162 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
...esql/cubesql/src/compile/snapshots/cubesql__compile__tests__nonrewritable_date_trunc.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
source: cubesql/src/compile/mod.rs | ||
expression: context.execute_query(query).await.unwrap() | ||
--- | ||
+-------------------------+-----------------+ | ||
| quarter0 | min_month_count | | ||
+-------------------------+-----------------+ | ||
| 2024-01-01T00:00:00.000 | 1 | | ||
| 2024-04-01T00:00:00.000 | 10 | | ||
+-------------------------+-----------------+ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters