Commit 45cacb6
committed
fix(BigqueryQuery): Prevent double-wrapping of TIMESTAMP() in SQL generation
Updated the SQL generation logic to ensure that TIMESTAMP() is not wrapped in DATETIME() for BigQuery queries. Added regression tests to verify the correct behavior in both standard and SQL pushdown contexts.1 parent f1621e4 commit 45cacb6
File tree
3 files changed
+121
-2
lines changed- packages/cubejs-schema-compiler
- src/adapter
- test/unit
- rust/cubesql/cubesql/src/compile
3 files changed
+121
-2
lines changedLines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| |||
263 | 263 | | |
264 | 264 | | |
265 | 265 | | |
266 | | - | |
| 266 | + | |
267 | 267 | | |
268 | 268 | | |
269 | 269 | | |
| |||
Lines changed: 67 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1012 | 1012 | | |
1013 | 1013 | | |
1014 | 1014 | | |
| 1015 | + | |
| 1016 | + | |
| 1017 | + | |
| 1018 | + | |
| 1019 | + | |
| 1020 | + | |
| 1021 | + | |
| 1022 | + | |
| 1023 | + | |
| 1024 | + | |
| 1025 | + | |
| 1026 | + | |
| 1027 | + | |
| 1028 | + | |
| 1029 | + | |
| 1030 | + | |
| 1031 | + | |
| 1032 | + | |
| 1033 | + | |
| 1034 | + | |
| 1035 | + | |
| 1036 | + | |
| 1037 | + | |
| 1038 | + | |
| 1039 | + | |
| 1040 | + | |
| 1041 | + | |
| 1042 | + | |
| 1043 | + | |
| 1044 | + | |
| 1045 | + | |
| 1046 | + | |
| 1047 | + | |
| 1048 | + | |
| 1049 | + | |
| 1050 | + | |
| 1051 | + | |
| 1052 | + | |
| 1053 | + | |
| 1054 | + | |
| 1055 | + | |
| 1056 | + | |
| 1057 | + | |
| 1058 | + | |
| 1059 | + | |
| 1060 | + | |
| 1061 | + | |
| 1062 | + | |
| 1063 | + | |
| 1064 | + | |
| 1065 | + | |
| 1066 | + | |
| 1067 | + | |
| 1068 | + | |
| 1069 | + | |
| 1070 | + | |
| 1071 | + | |
| 1072 | + | |
| 1073 | + | |
| 1074 | + | |
| 1075 | + | |
| 1076 | + | |
| 1077 | + | |
| 1078 | + | |
| 1079 | + | |
| 1080 | + | |
| 1081 | + | |
1015 | 1082 | | |
1016 | 1083 | | |
1017 | 1084 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16970 | 16970 | | |
16971 | 16971 | | |
16972 | 16972 | | |
| 16973 | + | |
| 16974 | + | |
| 16975 | + | |
| 16976 | + | |
| 16977 | + | |
| 16978 | + | |
| 16979 | + | |
| 16980 | + | |
| 16981 | + | |
| 16982 | + | |
| 16983 | + | |
| 16984 | + | |
| 16985 | + | |
| 16986 | + | |
| 16987 | + | |
| 16988 | + | |
| 16989 | + | |
| 16990 | + | |
| 16991 | + | |
| 16992 | + | |
| 16993 | + | |
| 16994 | + | |
| 16995 | + | |
| 16996 | + | |
| 16997 | + | |
| 16998 | + | |
| 16999 | + | |
| 17000 | + | |
| 17001 | + | |
| 17002 | + | |
| 17003 | + | |
| 17004 | + | |
| 17005 | + | |
| 17006 | + | |
| 17007 | + | |
| 17008 | + | |
| 17009 | + | |
| 17010 | + | |
| 17011 | + | |
| 17012 | + | |
| 17013 | + | |
| 17014 | + | |
| 17015 | + | |
| 17016 | + | |
| 17017 | + | |
| 17018 | + | |
| 17019 | + | |
| 17020 | + | |
| 17021 | + | |
| 17022 | + | |
| 17023 | + | |
| 17024 | + | |
16973 | 17025 | | |
0 commit comments