Skip to content
New issue

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

RTP 180 Support For MOD Function on Date Field #2971

Open
wants to merge 1,143 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
1143 commits
Select commit Hold shift + click to select a range
637ad6d
Merge branch 'master' of https://github.com/datametica/calcite into R…
Shubham-Isalkar Jun 9, 2022
19aa62d
Revert "RNBS-133-Added-support-for-DATETIME_TRUNC"
InderjeetVishnoi Jun 9, 2022
015f72b
Revert "RNBS-133::Added testcases for NZ-BQ DATE_TRUNC/TIME_TRUNC"
InderjeetVishnoi Jun 9, 2022
debb070
Revert "RNBS-133::Added support for NZ-BQ DATE_TRUNC/TIME_TRUNC"
InderjeetVishnoi Jun 9, 2022
25b6a32
Merge pull request #264 from datametica/calcite/RNBS-133/revert-DATE_…
soma-mondal Jun 9, 2022
82757a9
Merge branch 'master' of https://github.com/datametica/calcite into R…
Shubham-Isalkar Jun 10, 2022
dfef490
RNBS-133-Adds-support-for-DATETIME_TRUNC_and_TIME_TRUNC
InderjeetVishnoi Jun 10, 2022
c757b74
Merge pull request #265 from datametica/calcite/RNBS-133/adds_DATE_TR…
soma-mondal Jun 13, 2022
e7af9f1
Merge branch 'master' of https://github.com/datametica/calcite into R…
Shubham-Isalkar Jun 13, 2022
d05c819
RAV-9189:IBC_Add Support for Qualify in big query : Generic Approach …
Shubham-Isalkar Jun 13, 2022
ce7bd94
Resolved: IndexOutOfBoundsException Fix For FilterExtractInnerJoinRule.
Jun 16, 2022
95dde78
Merge branch 'master' of https://github.com/datametica/calcite into R…
Jun 16, 2022
bdada7b
Merge pull request #267 from datametica/RAVTDBQ-43_IndexOutOfBoundsEx…
deepakkadam-dm Jun 16, 2022
de1a3b8
Ads support related to DATE_TIME Parse
Jun 16, 2022
62c97b7
Switch case Order changed
Jun 16, 2022
595ca56
PARSE_TIME Parameter is changed
Jun 17, 2022
e1ca3ef
PARSE_TIME Parameter is changed
Jun 17, 2022
d38febe
Merge remote-tracking branch 'origin/RNBS-236_PARSE_DATE_TIME' into R…
Jun 17, 2022
eebbd8d
PARSE_TIME Parameter is changed
Jun 17, 2022
cefa11c
Removed Unnecessary changes
Jun 17, 2022
f258ee4
Updated parsing of date time with for Cast function
Jun 20, 2022
dbf4d70
Added test case
Jun 20, 2022
e172047
Updated test case
Jun 20, 2022
61e2044
Unnecessary changes removed and added on mig side MR
Jun 21, 2022
06a663a
Reverted PARSE_TIME Change as it was already present on BigQueryStdSq…
Jun 22, 2022
1d738ed
Shifted Unparse code from mig to calcite
Jun 22, 2022
eb017a4
Removed Default Case
Jun 23, 2022
d725375
Removed Unnecessary Switch Case
Jun 27, 2022
4972038
Added Test Case
Jun 27, 2022
048549d
Removed TIMESTAMP AND DATETIME from test case as it was already there
Jun 27, 2022
efdba7f
Removed Duplicate Projection
Jun 27, 2022
7c3b9da
Removed Duplicate Projection
Jun 27, 2022
b4e353f
Removed Duplicate Projection
Jun 28, 2022
4783384
Removed Unnecessary Extra lines of code
Jul 1, 2022
c042a58
Added Required lines of code
Jul 4, 2022
a06369b
Merge pull request #269 from datametica/RNBS-236_PARSE_DATE_TIME
anand-dm Jul 4, 2022
7558053
Support for TRIM, POSITION, CONCAT pipe operator in spark.
Katakam-Phani-Mahidhar Jul 18, 2022
fc913d6
Support for RAISE_ERROR
Katakam-Phani-Mahidhar Jul 19, 2022
f7ac0bd
ERROR function test case
Katakam-Phani-Mahidhar Jul 19, 2022
b2f2bd1
Merge pull request #270 from datametica/spark_operator_supp
soma-mondal Jul 20, 2022
e71548b
TRUE and FALSE Added.
vinayujeedm Jul 21, 2022
2df5886
Reformat.
vinayujeedm Jul 21, 2022
0c37232
jenkins autoStyle build error fix
Katakam-Phani-Mahidhar Jul 21, 2022
f34397b
build issue fixes
Katakam-Phani-Mahidhar Jul 21, 2022
990311d
remove null direction emulation in spark
Katakam-Phani-Mahidhar Jul 21, 2022
e865b1b
Merge pull request #271 from datametica/spark_operator_supp
soma-mondal Jul 21, 2022
62c3952
Merge branch 'master' of https://github.com/datametica/calcite into s…
Katakam-Phani-Mahidhar Jul 24, 2022
22c5143
binary operator for date_add and date_sub
Katakam-Phani-Mahidhar Jul 25, 2022
4bf9a71
make getIntervalLiteral public
Katakam-Phani-Mahidhar Jul 25, 2022
878f44b
Merge branch 'master' of https://github.com/datametica/calcite into R…
Shubham-Isalkar Jul 25, 2022
720df6a
remove comments in test case
Katakam-Phani-Mahidhar Jul 26, 2022
502c384
remove comments in test case
Katakam-Phani-Mahidhar Jul 26, 2022
d75b512
Merge branch 'master' of https://github.com/datametica/calcite into T…
vinayujeedm Jul 27, 2022
57b07b2
Merge branch 'master' into TRUE_FALSE_OPERATOR
Jul 27, 2022
ab35cc2
removing date add and date sub changes
Katakam-Phani-Mahidhar Jul 27, 2022
4d67c66
Merge pull request #272 from datametica/spark_null_direction
soma-mondal Jul 27, 2022
eb4ca7f
Merge branch 'master' of https://github.com/datametica/calcite into R…
Shubham-Isalkar Jul 27, 2022
16b20ef
Merge branch 'master' of https://github.com/datametica/calcite into T…
vinayujeedm Jul 28, 2022
5cb3f09
Merge pull request #273 from datametica/TRUE_FALSE_OPERATOR
soma-mondal Aug 1, 2022
cfcc6e0
RNBS-140: Format violation fixed by running " ./gradlew autostyleApply"
vinayujeedm Aug 1, 2022
8300766
Merge branch 'master' of https://github.com/datametica/calcite into T…
vinayujeedm Aug 1, 2022
386abfa
Merge branch 'master' of https://github.com/datametica/calcite into R…
Shubham-Isalkar Aug 1, 2022
adbd8e4
Merge pull request #275 from datametica/TRUE_FALSE_OPERATOR
soma-mondal Aug 1, 2022
e59f884
Merge branch 'master' of https://github.com/datametica/calcite into R…
Shubham-Isalkar Aug 1, 2022
b7edc37
RAVTDBQ_60 | TableName and ColumnName Same | making it qualified
akash-pawar1 Aug 2, 2022
23af5eb
RAVTDBQ_60 | TableName and ColumnName Same | added method document
akash-pawar1 Aug 3, 2022
15174b8
RAVTDBQ_60 | TableName and ColumnName Same | added method document
akash-pawar1 Aug 3, 2022
151d567
Fixed formatting issue
pranav-joshi-dm Aug 3, 2022
df2657d
RAVTDBQ_60 | TableName and ColumnName Same | added method document
akash-pawar1 Aug 3, 2022
32d67ee
RAVTDBQ_60 | TableName and ColumnName Same | added method document
akash-pawar1 Aug 3, 2022
93f1c10
RAVTDBQ_60 | TableName and ColumnName Same | added method document
akash-pawar1 Aug 3, 2022
d17a530
RAVTDBQ_60 | TableName and ColumnName Same | added method document
akash-pawar1 Aug 3, 2022
8616edf
RAVTDBQ_60 | TableName and ColumnName Same | added method document
akash-pawar1 Aug 4, 2022
fff2e3f
Merge pull request #276 from datametica/ravtdbq60_tableNameColumnName…
deepakkadam-dm Aug 4, 2022
ca82b62
Merge branch 'master' into TRUE_FALSE_OPERATOR
Aug 5, 2022
833c429
Merge branch 'master' of https://github.com/datametica/calcite into R…
Shubham-Isalkar Aug 5, 2022
d66242f
Adds support for AssertionError coming due to IS_NOT_TRUE rexnode tra…
Aug 5, 2022
ea15846
Support for Teradata -> Spark Datetime extract functions
Katakam-Phani-Mahidhar Aug 9, 2022
530fde0
changed name of the variable
Aug 12, 2022
d2ff563
Resolved Assertion Error for CASE & UPPER Clause
Aug 15, 2022
b32fcb1
Resolved Assertion Error for INITCAP function
Aug 16, 2022
cda48dc
Resolved Assertion Error for INITCAP function
Aug 16, 2022
4e9c477
support for date add adn date sub with binary operators in spark
Katakam-Phani-Mahidhar Jul 27, 2022
181b7ed
date add and date sub name change
Katakam-Phani-Mahidhar Aug 17, 2022
264333b
date add and date sub name change
Katakam-Phani-Mahidhar Aug 17, 2022
6e9954b
date add and date sub name change
Katakam-Phani-Mahidhar Aug 17, 2022
a7d0d82
checkstyleMain issues fix
Katakam-Phani-Mahidhar Aug 17, 2022
2078a8a
RAV-9189:IBC_Add Support for Qualify in big query : Generic Approach …
Shubham-Isalkar Aug 22, 2022
7104804
RAV-9189:IBC_Add Support for Qualify in big query : Generic Approach …
Shubham-Isalkar Aug 23, 2022
fbaee98
RNBS-264-adds-subquery-support-for-In-Clause-having-functioncall-in-g…
InderjeetVishnoi Aug 24, 2022
225cf03
RAV-9189:IBC_Add Support for Qualify in big query : Generic Approach …
Shubham-Isalkar Aug 24, 2022
6cdbf47
spark to_date support
Katakam-Phani-Mahidhar Aug 24, 2022
c4a7156
Merge pull request #257 from datametica/RAV-9189_IBC_Add_Support_for_…
deepakkadam-dm Aug 24, 2022
3583b71
RNBS-129: Resolved comments
Aug 25, 2022
1bbd283
Merge branch 'master' of https://github.com/datametica/calcite into i…
InderjeetVishnoi Aug 25, 2022
5b73742
RNBS-264-mimics-actual-canonical-construct-for-scenario-in-testcase
InderjeetVishnoi Aug 25, 2022
f228416
RNBS-264-autostyle-fix-for-testcase
InderjeetVishnoi Aug 25, 2022
da58a4b
RNBS-264-autostyle-fix-for-testcase
InderjeetVishnoi Aug 25, 2022
1bda231
RNBS-264-made-changes-to-strip-only-aggregate-from-projection
InderjeetVishnoi Aug 25, 2022
60b0a5c
Added a new SqlNode i.e. SqlFieldAccess
shirin-hasan Aug 25, 2022
d55a509
RNBS-264-fixes-test-case
InderjeetVishnoi Aug 26, 2022
ca6f9cb
Merge branch 'master' of https://github.com/datametica/calcite into R…
shirin-hasan Aug 26, 2022
c29c5ee
RNBS-129: Resolved comments
Aug 26, 2022
57e860a
Merge pull request #277 from datametica/RNBS-284-tenet-java.lang.asse…
soma-mondal Aug 26, 2022
5a4e768
RNBS-261: Adds support for unix_seconds(datetime) and unix_seconds(in…
nosheenSheikh02 Aug 26, 2022
f4b3185
RNBS-264-adds-test-case-for-use-case-to-strip-aggregate-from-subquery
InderjeetVishnoi Aug 29, 2022
aa4383e
Merge branch 'master' of https://github.com/datametica/calcite into i…
InderjeetVishnoi Aug 29, 2022
920c93e
Adds Extract Epoch scenarios
nosheenSheikh02 Aug 29, 2022
fa0724a
Merge pull request #281 from datametica/inderjeetvishnoi/RNBS-264/add…
anand-dm Aug 29, 2022
d1f770e
RNBS-261: Adds Extract Epoch With MinusOperand and resolves review co…
nosheenSheikh02 Aug 30, 2022
7f77cb0
Merge branch 'master' of https://github.com/datametica/calcite into n…
nosheenSheikh02 Aug 30, 2022
6a54591
RNS-261: Resolves review comments
nosheenSheikh02 Aug 30, 2022
27c5e25
Merge branch 'master' of https://github.com/datametica/calcite into s…
Katakam-Phani-Mahidhar Aug 30, 2022
bdcb654
RNS-261: Resolves review comments
nosheenSheikh02 Aug 30, 2022
329ecb1
RNS-261: Resolves review comments
nosheenSheikh02 Aug 30, 2022
191331c
changing unparseIntervalOperandsBasedFunctions for date add and date sub
Katakam-Phani-Mahidhar Aug 30, 2022
672750b
changing unparseIntervalOperandsBasedFunctions for date add and date sub
Katakam-Phani-Mahidhar Aug 30, 2022
82a33a8
making modifySqlNode private
Katakam-Phani-Mahidhar Aug 30, 2022
fc4c4c1
moving constants to DateTimestampFormatUtil
Katakam-Phani-Mahidhar Aug 30, 2022
5e6ec29
Merge branch 'master' of https://github.com/datametica/calcite into s…
Katakam-Phani-Mahidhar Aug 30, 2022
49d92e5
RAV-9189:IBC_Add Support for Qualify in big query : Code Changes for …
Shubham-Isalkar Sep 1, 2022
1df4a95
Merge pull request #287 from datametica/RAV_9189_Add_Qualify_Support_…
deepakkadam-dm Sep 2, 2022
e237928
Merge branch 'master' of https://github.com/datametica/calcite into s…
Katakam-Phani-Mahidhar Sep 5, 2022
9035f35
Merge pull request #278 from datametica/spark_td_datetime_extract_fns
anand-dm Sep 5, 2022
f0a34a2
adding case statement in unparseIntervalOperandsBasedFunctions
Katakam-Phani-Mahidhar Sep 5, 2022
f178c52
Merge branch 'master' of https://github.com/datametica/calcite into s…
Katakam-Phani-Mahidhar Sep 5, 2022
6041751
autostyle issues fix
Katakam-Phani-Mahidhar Sep 5, 2022
e041f31
Merge pull request #274 from datametica/spark_date_op
soma-mondal Sep 6, 2022
110a675
Merge branch 'master' of https://github.com/datametica/calcite into R…
shirin-hasan Sep 6, 2022
04993eb
Merge branch 'master' of https://github.com/datametica/calcite into m…
Katakam-Phani-Mahidhar Sep 6, 2022
2554f41
merge conflicts resolution
Katakam-Phani-Mahidhar Sep 6, 2022
987db21
Added a new SqlNode i.e. SqlFieldAccess
shirin-hasan Sep 7, 2022
a278ebc
Spark Time to Timestamp cast (#283)
Katakam-Phani-Mahidhar Sep 7, 2022
f662b73
BITWISE operators, PI function
Katakam-Phani-Mahidhar Sep 9, 2022
59c662d
Merge branch 'master' of https://github.com/datametica/calcite into m…
Katakam-Phani-Mahidhar Sep 9, 2022
b09e07c
Merge pull request #282 from datametica/mahidhar/spark_to_date_fn
soma-mondal Sep 9, 2022
39cf4c6
RNS-261: Casts every node of unix_seconds to timestamp
nosheenSheikh02 Sep 12, 2022
3e13565
RAVTDBQ-117 Added support for HASHROW with multiple arguments
Mahesh-Raut Sep 12, 2022
624d561
Merge branch 'master' of https://github.com/datametica/calcite into R…
Mahesh-Raut Sep 12, 2022
8dad5b2
Merge branch 'master' of https://github.com/datametica/calcite into R…
shirin-hasan Sep 12, 2022
efbe80f
Changes to unparse of SqlFieldAccess
shirin-hasan Sep 12, 2022
649acc2
RAVTDBQ-117 Code Refactoring
Mahesh-Raut Sep 13, 2022
27383a2
Added ReltoSqlConverterArraysTest class
shirin-hasan Sep 13, 2022
3c04bd4
RNS-261: Adds test cases and fixes existing
nosheenSheikh02 Sep 13, 2022
2c78cb3
RAVTDBQ-117 Added test case for Hashrow with multiple arguments
Mahesh-Raut Sep 13, 2022
e509226
RAVTDBQ-117 Minor change
Mahesh-Raut Sep 13, 2022
2696ab8
Merge remote-tracking branch 'origin/master' into nosheensheikh/calci…
nosheenSheikh02 Sep 13, 2022
ec450c8
Merge pull request #286 from datametica/nosheensheikh/calcite_unix_se…
soma-mondal Sep 13, 2022
dca2222
Changes to SqlFieldAccess
shirin-hasan Sep 13, 2022
899fb29
Merge branch 'master' of https://github.com/datametica/calcite into R…
shirin-hasan Sep 13, 2022
ed71c44
Merge branch 'master' of https://github.com/datametica/calcite into R…
Mahesh-Raut Sep 14, 2022
fe979d4
RAVTDBQ-117 Code Refactoring
Mahesh-Raut Sep 14, 2022
1ea2f99
Changes as per review
shirin-hasan Sep 14, 2022
077e3e0
support for TO_CHAR with DATE as operand
Katakam-Phani-Mahidhar Sep 14, 2022
6157dcd
Merge branch 'master' of https://github.com/datametica/calcite into m…
Rajeshwari4 Sep 15, 2022
6bf52c4
Support for Bitwise Operations, PI() Function, Timeofday() and MOD fu…
Rajeshwari4 Sep 15, 2022
cc78647
Merge pull request #288 from datametica/RAVTDBQ_117_Support_for_Hashr…
deepakkadam-dm Sep 15, 2022
8f1edb1
date format operators support
Katakam-Phani-Mahidhar Sep 15, 2022
eac8bf6
RAVTDBQ-117 Code Refactoring
Mahesh-Raut Sep 15, 2022
9e18226
Merge branch 'master' of https://github.com/datametica/calcite into R…
Mahesh-Raut Sep 15, 2022
7e6d7e2
Merge pull request #289 from datametica/RAVTDBQ_117_Support_for_Hashr…
deepakkadam-dm Sep 15, 2022
77d8aa3
Merge branch 'master' of https://github.com/datametica/calcite into R…
shirin-hasan Sep 16, 2022
2e816a7
Merge pull request #285 from datametica/RAVHIBQ-83_feature_branch_for…
deepakkadam-dm Sep 16, 2022
268decc
Features - Bitwise operations, pi() function, timeofday(), session us…
Rajeshwari4 Sep 16, 2022
498c5b5
support for TITLE in column definition.
Katakam-Phani-Mahidhar Sep 20, 2022
a885c76
Merge pull request #291 from datametica/mahidhar/RTP-138_titleDefinit…
Technay Sep 21, 2022
dc16b0a
Resolved Conflicts - RelToSqlConverterTest
Rajeshwari4 Sep 27, 2022
2728a86
Merge pull request #290 from datametica/mahidhar/spark_bitwise
soma-mondal Sep 27, 2022
b6b7fe0
Merge branch 'master' of https://github.com/datametica/calcite into m…
Katakam-Phani-Mahidhar Oct 5, 2022
5b30df1
udf changes
Katakam-Phani-Mahidhar Oct 5, 2022
9e216b5
User Defined Functions
Rajeshwari4 Oct 6, 2022
43ad486
Removed to_char
Rajeshwari4 Oct 6, 2022
681320a
Removed Violations
Rajeshwari4 Oct 6, 2022
b9cb337
Resolved: Added support for TRUNC(TIMESTAMP).
Oct 11, 2022
c1156f0
Resolved: Added Test case.
Oct 11, 2022
8a7512c
Resolved: Added Support for TRUNC with two arguments.
Oct 11, 2022
a4179d0
Merge pull request #293 from datametica/saransh.manglani/RTP-181_Supp…
deepakkadam-dm Oct 11, 2022
4b5abb3
RNS-800: Adds unparsing for Casting of 'string float value' (eg: '45.…
nosheenSheikh02 Oct 12, 2022
0b0f631
td_unpivot
Oct 12, 2022
61bfc7e
Merge branch 'master' of https://github.com/datametica/calcite into S…
Oct 12, 2022
20ac58c
RNS-800: Refactors code and adds test case in RelToSqlConverterTest
nosheenSheikh02 Oct 12, 2022
8eb60f9
Merge branch 'master' of https://github.com/datametica/calcite into n…
nosheenSheikh02 Oct 13, 2022
f2e03b6
RNS-800: Reverts one change
nosheenSheikh02 Oct 13, 2022
e23b295
Resolved Comments For UDFs
Rajeshwari4 Oct 13, 2022
a8fedea
Resolved: Added Fix for TRUNC with TIMESTAMP wrapped in function.
Oct 13, 2022
7a6a0ec
Merge branch 'master' of https://github.com/datametica/calcite into s…
Oct 13, 2022
76ca19c
Resolved: Minor Fixes.
Oct 14, 2022
7f93d88
Merge pull request #295 from datametica/saransh.manglani/RTP-181_Supp…
deepakkadam-dm Oct 14, 2022
507112d
resolve comments
Katakam-Phani-Mahidhar Oct 14, 2022
60c611c
Merge pull request #294 from datametica/nosheen_sheikh/calcite-RNBS-8…
soma-mondal Oct 17, 2022
bb1b7a0
unpivot
Oct 17, 2022
0b7d062
Merge branch 'master' of https://github.com/datametica/calcite into S…
Oct 17, 2022
6922581
Merge branch 'master' of https://github.com/datametica/calcite into m…
Katakam-Phani-Mahidhar Oct 18, 2022
b527758
TRUNC to TRUNCATE
Katakam-Phani-Mahidhar Oct 18, 2022
6a62759
getKind to string
Katakam-Phani-Mahidhar Oct 18, 2022
7e7435e
unpivot
Oct 19, 2022
d0a483a
Ordinal Fix
Rajeshwari4 Oct 19, 2022
5e7920d
Resolved review comments
Rajeshwari4 Oct 20, 2022
ae30343
Merge pull request #292 from datametica/mahidhar/to_char_for_date
deepakkadam-dm Oct 20, 2022
afe28dd
unpivot
Oct 20, 2022
c4012e8
Merge branch 'master' of https://github.com/datametica/calcite into S…
Oct 20, 2022
e371ea3
spark round with single operator fix
Katakam-Phani-Mahidhar Oct 27, 2022
dd8fc1a
spark round with single operator fix
Katakam-Phani-Mahidhar Oct 27, 2022
5173c4d
Addressed Review Comments
Rajeshwari4 Oct 28, 2022
a0167ba
Resolved review comments
Rajeshwari4 Oct 28, 2022
a54d321
Added multiple scenarios for round function.
Rajeshwari4 Oct 28, 2022
fbc23b8
Merge pull request #298 from datametica/spark_round_fix
deepakkadam-dm Oct 28, 2022
accbeeb
Merge branch 'master' of https://github.com/datametica/calcite into r…
Rajeshwari4 Oct 31, 2022
42ce659
RNBS-262: handles illegal escape sequence issue
naveenantonie Nov 1, 2022
d1e758b
RNBS-262: handles newline char and refactors code
naveenantonie Nov 2, 2022
36bbf68
Included TCs for SortBy scenario.
Rajeshwari4 Nov 2, 2022
db6c8fd
SortBy Ordinal TC included.
Rajeshwari4 Nov 2, 2022
28b2fad
Merge pull request #297 from datametica/rajeshwari/ordinal_fix
deepakkadam-dm Nov 3, 2022
898b28e
Merge branch 'master' of https://github.com/datametica/calcite into n…
naveenantonie Nov 7, 2022
8e8d0b6
RNBS-262: adds testcases
naveenantonie Nov 8, 2022
774f74d
RNBS-262: resolves PR comments
naveenantonie Nov 9, 2022
72c1f9b
Pull changes manually from https://github.com/apache/calcite/pull/289…
vijayjogi-dm Nov 14, 2022
a424692
RTP_180_Support_For_MOD_Function_on_Date_Field
Pritam-Gote Nov 14, 2022
0c22241
RNBS-262: moves changes from generic classes to BQSqlDialect class
naveenantonie Nov 15, 2022
c281253
Merge pull request #303 from datametica/vijayjogi/RAVCOM-40_WF_Vulner…
anand-dm Nov 15, 2022
bf2d8de
RNBS-262: removes unnecessary additions
naveenantonie Nov 15, 2022
ac52b79
Merge pull request #300 from datametica/naveenantony/RNBS-262/Unclose…
soma-mondal Nov 15, 2022
fb7caae
Support for unpivot with single & multiple measure columns
Nov 16, 2022
9982b95
Support for unpivot with single & multiple measure columns
Nov 16, 2022
8da12a6
pull from master
Nov 16, 2022
69eeedd
Merge branch 'master' of https://github.com/datametica/calcite into R…
Pritam-Gote Nov 16, 2022
63225d9
RTP_180_Resolved_Review_Comments
Pritam-Gote Nov 16, 2022
6c25a12
support for unpivot
Nov 16, 2022
a710c01
support for unpivot
Nov 16, 2022
e4cda90
Support for To_Date
Nov 22, 2022
07ed80d
Support for To_Date
Nov 23, 2022
e5ca660
Support for Unpivot
Nov 28, 2022
077fa1a
Support for Unpivot
Nov 29, 2022
629feba
Support for To_Date
Nov 29, 2022
9ff2a13
Support for To_Date
Nov 29, 2022
60bae1e
Support for Td_Unpivot
Nov 30, 2022
3706d24
Support for To_Date
Nov 30, 2022
2ec7096
Merge pull request #306 from datametica/To_date_with_format
deepakkadam-dm Nov 30, 2022
bc45da9
Support for Td_Unpivot
Nov 30, 2022
1779103
Merge branch 'master' of https://github.com/datametica/calcite into R…
Pritam-Gote Nov 30, 2022
652e6f0
RTP_180_Changes_Updated
Pritam-Gote Nov 30, 2022
71e195b
Moved sqlnode creation logic of Unpivot from RelToSqlConverter to Unp…
Dec 1, 2022
3f462df
Merge branch 'master' of https://github.com/datametica/calcite into S…
Dec 1, 2022
b8f69a2
support for unpivot
Dec 1, 2022
d7d2a7f
Support for Unpivot
Dec 2, 2022
d8662b7
Merge pull request #296 from datametica/Support_for_Unpivot
deepakkadam-dm Dec 2, 2022
e2e74bb
Merge branch 'master' of https://github.com/datametica/calcite into R…
Pritam-Gote Dec 2, 2022
8a90529
Support for Unpivot
Dec 2, 2022
8676bed
Merge pull request #312 from datametica/Support_for_Unpivot
deepakkadam-dm Dec 5, 2022
f2ca29a
Merge branch 'master' of https://github.com/datametica/calcite into R…
Pritam-Gote Dec 5, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
RNS-261: Resolves review comments
  • Loading branch information
nosheenSheikh02 committed Aug 30, 2022
commit bdcb65488a52783c28a0cce0c26fd4563cfc0eb6
Original file line number Diff line number Diff line change
Expand Up @@ -1495,13 +1495,9 @@ private void unparseExtractFunction(SqlWriter writer, SqlCall call, int leftPrec
&& ((SqlBasicCall) firstOperand).getOperator().kind == SqlKind.MINUS) {
SqlNode leftOperand = ((SqlBasicCall) firstOperand).getOperands()[0];
SqlNode rightOperand = ((SqlBasicCall) firstOperand).getOperands()[1];
final SqlWriter.Frame epochFrame = writer.startFunCall("UNIX_SECONDS");
unparseOperandAsTimestamp(writer, leftOperand, leftPrec, rightPrec);
writer.endFunCall(epochFrame);
unparseExtractEpochOperands(writer, leftOperand, leftPrec, rightPrec);
writer.print(" - ");
writer.startFunCall("UNIX_SECONDS");
unparseOperandAsTimestamp(writer, rightOperand, leftPrec, rightPrec);
writer.endFunCall(epochFrame);
unparseExtractEpochOperands(writer, rightOperand, leftPrec, rightPrec);
} else {
final SqlWriter.Frame epochFrame = writer.startFunCall("UNIX_SECONDS");
unparseOperandAsTimestamp(writer, firstOperand, leftPrec, rightPrec);
Expand All @@ -1515,6 +1511,13 @@ private void unparseExtractFunction(SqlWriter writer, SqlCall call, int leftPrec
}
}

private void unparseExtractEpochOperands(SqlWriter writer, SqlNode operand,
int leftPrec, int rightPrec) {
final SqlWriter.Frame epochFrame = writer.startFunCall("UNIX_SECONDS");
unparseOperandAsTimestamp(writer, operand, leftPrec, rightPrec);
writer.endFunCall(epochFrame);
}

private boolean isDateTimeCast(SqlNode operand) {
boolean isCastCall = ((SqlBasicCall) operand).getOperator() == CAST;
boolean isDateTimeCast = isCastCall
Expand Down