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

Calcite guava #342

Open
wants to merge 2,450 commits into
base: kycalcite-newten-1.13.0.x
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
2450 commits
Select commit Hold shift + click to select a range
9330b30
[CALCITE-4853] Gradle could not determine the dependencies of task ':…
zabetak Oct 15, 2021
81d3eab
Site: Pronouns, talks
julianhyde Oct 14, 2021
2326cf8
Bump Guava maximum version up to 31.0.1-jre
julianhyde Oct 14, 2021
dec167a
[CALCITE-4835] Release Calcite 1.28.0
julianhyde Oct 14, 2021
c6a9599
Add news item for release 1.28.0
julianhyde Oct 19, 2021
0390069
[CALCITE-4639] Broken links on download page
NobiGo Oct 14, 2021
bf962b8
[CALCITE-4856] Gradle prepareVote fails with 'not authorized'
julianhyde Oct 19, 2021
bebe473
[CALCITE-4839] Remove ImmutableBeans implementation and usage
jacques-n Oct 19, 2021
77bb696
[CALCITE-4795] In class SqlBasicCall, make the "operands" field priva…
julianhyde Sep 23, 2021
87f60d2
Site: Add Xiong Duan as committer
NobiGo Oct 25, 2021
2280879
[CALCITE-4858] Use Log4j2 instead of unsupported Log4j (1.x) in tests
zabetak Oct 15, 2021
3af1d78
[CALCITE-4818] AggregateExpandDistinctAggregatesRule must infer corre…
Oct 4, 2021
5bec337
Fix typo in reference.md
snuyanzin Oct 18, 2021
f61541d
[CALCITE-4822] Add functions ARRAY_CONCAT, ARRAY_REVERSE, ARRAY_LENGT…
snuyanzin May 11, 2021
2c17f7a
[CALCITE-4551] Reusing Immutable metadata cache keys
jamesstarr Mar 23, 2021
cbe6a7b
[CALCITE-4768] Upgrade DataStax Driver for Apache Cassandra® version …
asolimando Oct 5, 2021
f1db79f
[CALCITE-4131] remove the XmlFunctions exception handled by System.out
NobiGo Sep 25, 2021
7e87833
Bump com.github.vlsi.vlsi-release-plugins to 1.76
vlsi Nov 8, 2021
6d51d27
Update Gradle to 7.3
vlsi Oct 13, 2021
a03586c
[CALCITE-4875] Preserve Operand Nullability in NVL rewrite
Nov 4, 2021
8438754
[CALCITE-4877] Ignore test for invalid foreign schema class
vlsi Nov 11, 2021
bcaa978
[CALCITE-4844] IN-list that references columns is wrongly converted t…
NobiGo Oct 10, 2021
07e420b
[CALCITE-4877] Enable schema.iq test, with variants depending on Avat…
julianhyde Nov 13, 2021
0899e6c
[CALCITE-4846] IN-list that includes NULL converted to Values throws …
NobiGo Oct 12, 2021
faee09f
[CALCITE-4884] Provide a new constructor for RelJsonWriter to allow c…
chunweilei Nov 15, 2021
065e323
[CALCITE-4841] Support decimal column type in CSV file format
xwkuang5 Nov 1, 2021
7c423ef
[CALCITE-4876] Converting RelNode to SQL with CalciteSqlDialect gets …
ILuffZhe Nov 14, 2021
f3e2f04
Exclude kotlin-stdlib from :core runtime dependencies
vlsi Nov 30, 2021
8a266e6
Clarify why squash commits option in GitHub PR merge is disabled
vlsi Dec 2, 2021
d9f946b
[CALCITE-4883] The traitset of Exchange operator losses the distribut…
chunweilei Nov 10, 2021
2317f4e
[CALCITE-4783] RelFieldTrimmer incorrectly drops filter condition
Nov 10, 2021
fd3c1d0
[CALCITE-4851] Build gives lots of 'Execution optimizations have been…
NobiGo Dec 7, 2021
8373d4c
Use GitHub Action concurrency feature to cancel stale CI executions
vlsi Dec 8, 2021
3456136
Keep backslash when autoformatting <<...\n" +>>
vlsi Dec 8, 2021
86dce8a
Log plan after physical tweaks in new line
NobiGo Dec 9, 2021
264636e
[CALCITE-4927] Remove deprecated RelBuilder#groupKey(ImmutableBitSet,…
zabetak Dec 8, 2021
9b0268a
[CALCITE-4930] Update log4j2 version to 2.15.0
a49a Dec 10, 2021
ecbafbf
[CALCITE-4925] AggregateReduceFunctionsRule should accept arbitrary p…
wnob Dec 1, 2021
f3c0936
[CALCITE-4928] Decouple JaninoRelMetadataProvider from RelMetadataQuery
jacques-n Dec 9, 2021
422599c
[CALCITE-4932] Deprecate JdbcCalc and remove JdbcCalcRule
francesco-gini88 Dec 11, 2021
8b62f88
[CALCITE-4894] MV rewriting fails for conjunctive top expressions in …
asolimando Nov 18, 2021
4ff5fa8
[CALCITE-4929] Implement default getDef() methods in MetadataHandler …
jacques-n Dec 9, 2021
c986156
[CALCITE-4937] Upgrade Calcite to Avatica 1.20
julianhyde Dec 13, 2021
2ee53f2
[CALCITE-4938] Upgrade SQLLine to 1.12.0
julianhyde Dec 13, 2021
f5a6526
[CALCITE-4939] Upgrade log4j2 version to 2.16.0
zabetak Dec 14, 2021
96f4a73
Improve debug message in IterativeRuleDriver
zabetak Dec 13, 2021
c1fab9d
Remove duplicate entries from RelOptRules.CALC_RULES
zabetak Dec 13, 2021
250dfb7
[CALCITE-4906] Wrong result for scalar subquery from empty input
alex-plekhanov Nov 28, 2021
7d342b3
[CALCITE-4941] SemiJoinRule loses hints
rubenada Dec 14, 2021
a6293a3
[CALCITE-4895] MAP type in UDF cannot be externalized from json corre…
chunweilei Nov 19, 2021
d6a36fc
[CALCITE-4898] Upgrading Elasticsearch version from 7.0.1 to 7.15.2
ILuffZhe Nov 25, 2021
ce25311
[CALCITE-4737] Add RelOptPlanner visualizer for debugging (Zuozhi Wan…
thomasrebele Dec 17, 2021
e4cdcee
[CALCITE-4948] Revert Elasticsearch to 7.10.2
jacques-n Dec 17, 2021
607c45b
[CALCITE-4946] Add method RelBuilder.size()
julianhyde Jul 22, 2021
6208196
Finishing up [CALCITE-4937], remove workarounds for [CALCITE-4877]
julianhyde Dec 17, 2021
538016e
[CALCITE-4700] AggregateUnionTransposeRule produces wrong group sets …
devozerov Jul 26, 2021
e42b85a
[CALCITE-4704] Log plan on rule application using explain formatting
zabetak Jul 27, 2021
0d17965
[CALCITE-4950] Upgrade log4j2 version to 2.17.0
zabetak Dec 18, 2021
f6d51ff
Set timeout for running Druid tests in GitHub CI
zabetak Dec 18, 2021
7a7b37f
[CALCITE-4917] Add test for 'a IS NOT NULL AND a = b' simplification
asolimando Dec 2, 2021
cbfe060
[CALCITE-4955] Release Calcite 1.29.0.
amaliujia Dec 21, 2021
8a40603
Add 1.29.0 release announcement
amaliujia Dec 27, 2021
fb2e28a
Prepare for next development iteration
amaliujia Dec 26, 2021
3303e4b
Revise release notes
julianhyde Dec 27, 2021
f79624a
[CALCITE-4547] Support Java 16 and 17
ILuffZhe Dec 22, 2021
cee9f67
Site: Improve HTML tables display & update CSV tutorial
guiyanakuang Dec 5, 2021
da4fc3b
Site: Add syntax highlighting to SQL statements
guiyanakuang Dec 10, 2021
d29aa09
Site: For tables that display results, center the content horizontally
guiyanakuang Jan 5, 2022
dd34953
Site: Change the javadoc title to Apache Calcite API
NobiGo Dec 31, 2021
664c4d3
Site: Fix typo in howto.md
mans2singh Jan 6, 2022
d088cde
Site: Add Alessandro Solimando as committer
asolimando Jan 10, 2022
48f4bf8
Site: Add "calcite-clj - Use Calcite with Clojure" in talks section
ieugen Jan 28, 2022
fabef05
Site: Add external resources section in the community page
beyond1920 Jan 27, 2022
d132471
Site: update PMC Chair
rubenada Jan 29, 2022
4c7de7e
Site: Use openjdk-17 to generate javadoc with docker
zabetak Dec 28, 2021
ffdb109
[CALCITE-4952] Introduce a simplistic RelMetadataQuery option
jacques-n Dec 19, 2021
82be1ec
[CALCITE-4968] Use TOP N for MsSQL instead of FETCH without OFFSET
vvysotskyi Dec 31, 2021
8916c41
[CALCITE-4963] Make it easier to implement interface SqlDialectFactory
marcobjorge Dec 23, 2021
d3d4821
Remove unused package-private RelNullShuttle class
zabetak Dec 19, 2021
1ce4f05
[CALCITE-4960] Enable unit tests in Elasticsearch Adapter
ILuffZhe Dec 24, 2021
770561e
[CALCITE-4973] Upgrade log4j2 version to 2.17.1
zabetak Jan 4, 2022
6d05e10
[CALCITE-3627] Incorrect null semantic for ROW function
Dec 30, 2021
628d7ac
Update javacc official website
guiyanakuang Jan 5, 2022
3579eec
[CALCITE-4953] Deprecate TableAccessMap class
zabetak Dec 19, 2021
66835ab
[CALCITE-4901] JDBC adapter incorrectly adds ORDER BY columns to the …
Dec 30, 2021
8cd2414
[CALCITE-4977] Support Snapshot in RelMdColumnOrigins
lmagic233 Jan 9, 2022
4bc5cf1
[CALCITE-4965] IS NOT NULL failed in Elasticsearch Adapter
ILuffZhe Jan 17, 2022
9d02d45
[CALCITE-4967] Support SQL hints for temporal table join
beyond1920 Dec 29, 2021
83c2911
Corrected json stream property name
mans2singh Jan 10, 2022
48aa946
[CALCITE-4986] Make HepProgram thread-safe
julianhyde Jan 14, 2022
21b8852
[CALCITE-4991] Improve RuleEventLogger to also print input rels in FU…
asolimando Jan 21, 2022
909e134
[CALCITE-4885] Fluent test fixtures so that dependent projects can wr…
julianhyde Nov 13, 2021
28f4195
[CALCITE-4980] Babel parser support MySQL NULL-safe equal operator '<…
wojustme Jan 25, 2022
bb89b92
[CALCITE-4994] SQL-to-RelNode conversion is slow if table contains hu…
Jan 25, 2022
466fb42
[CALCITE-4702] Error when executing query with GROUP BY constant via …
soumyakanti3578 Aug 11, 2021
67ba007
[CALCITE-4872] Add UNKNOWN value to enum SqlTypeName, distinct from t…
wnob Oct 29, 2021
b4a5768
[CALCITE-4996] In RelJson, add a readExpression method that can conve…
mkou Feb 2, 2022
9cecf84
[CALCITE-4997] Keep APPROX_COUNT_DISTINCT in some SqlDialects
JiajunBernoulli Jan 11, 2022
dc3e7d3
[CALCITE-5006] Gradle tasks for launching JDBC integration tests are …
zabetak Feb 9, 2022
07edf27
[CALCITE-5007] Upgrade H2 database version to 2.1.210
zabetak Feb 9, 2022
4c73e85
[CALCITE-4988] ((A IS NOT NULL OR B) AND A IS NOT NULL) can't be simp…
NobiGo Jan 21, 2022
4663f33
[CALCITE-4995] AssertionError caused by RelFieldTrimmer on SEMI/ANTI …
rubenada Jan 31, 2022
43ed633
Fix typo in filterable-model.yaml
TeslaCN Jan 31, 2022
c310f7c
[CALCITE-4323] If a view definition has an ORDER BY clause, retain th…
JiajunBernoulli Jan 8, 2022
1f660d5
[CALCITE-4683] IN-list converted to JOIN throws type mismatch exception
Jan 26, 2022
2376a3a
[CALCITE-4912] Confusing javadoc of RexSimplify.simplify
NobiGo Feb 16, 2022
4fb1a42
[CALCITE-5011] CassandraAdapterDataTypesTest fails with initializatio…
asolimando Feb 15, 2022
296fc3e
[CALCITE-3673] ListTransientTable should not leave tables in the schema
rubenada Jan 13, 2022
316e575
[CALCITE-5008] Ignore synthetic and static methods in MetadataDef
rpuch Feb 10, 2022
c9ea3e6
[CALCITE-5025] Upgrade commons-io version from 2.4 to 2.11.0
sdreynolds Feb 27, 2022
8b62479
[CALCITE-1794] Expressions with numeric comparisons are not simplifie…
NobiGo Feb 21, 2022
7a117c7
Site: Reorganise website update process in README & howto
zabetak Feb 1, 2022
2621486
[CALCITE-5030] Upgrade jsonpath version from 2.4.0 to 2.7.0
zabetak Mar 3, 2022
b125ab9
Following [CALCITE-1794], update DruidDateTimeUtils and plans in Drui…
NobiGo Mar 3, 2022
c3dbf52
[CALCITE-5019] Avoid multiple scans when table is ProjectableFilterab…
IceMimosa Feb 23, 2022
f14cf4c
[CALCITE-5031] Release Calcite 1.30.0
liyafan82 Mar 7, 2022
d41f385
CALCITE-1924 Support operator "+" as string concat operator
rogercloud Aug 23, 2017
78f4bd5
CALCITE-1924 pass UT
rogercloud Aug 24, 2017
7afbfa2
CALCITE-1924 pass UT
rogercloud Oct 28, 2017
03ff5be
reduce CORR key words
vaful Jan 15, 2018
ad1b511
Update README.md
Jan 18, 2018
7dc3f2a
Update README.md
Jan 18, 2018
1700dce
Update README.md
Jan 18, 2018
a1c2898
minor, refactor sqlwith write style for sql writer (for sdk)
Mar 29, 2018
c304af7
fix issue: generate class only contains default constructor
rogercloud Apr 20, 2018
4c0f834
collect all types in code generation, including parameter
rogercloud Apr 23, 2018
ee3480e
merge atopcalcite to kycalcaite
fishcus Jun 8, 2018
33b0752
Kyligence/KAP#5170 allow {fn RIGHT ...} offset to use bigint type
eventd Jun 27, 2018
5fe79e3
5673 fix timestamp diff func with date and timestamp args
Jul 11, 2018
13d05c5
minor, format code
vaful Aug 27, 2018
a972115
#4037 support implicit type convert in filters for '=' in particular
Oct 17, 2018
343b7d4
#7521 fix the removal of filter when filter has multi in
Oct 31, 2018
ec0e071
minor modifier h2 dialect
edouardzyc Nov 6, 2018
6b9022c
#8715 select * exclude CC column
vaful Jan 16, 2019
3e65994
#11944 fix query whose join condition has date column equals a consta…
jiezouSH May 28, 2019
8d8530b
KE12016 Planner cancel flag 1.16.0.x (#35)
lxian Jun 17, 2019
895ca75
KE #11468, keep Calcite's in clause for Spark.
Aaaaaaron Jul 11, 2019
b24a9a4
#48 NEWTEN-12975 Remove charset during sql unparse (#43)
lxian Jul 18, 2019
9d46dc1
#55 OlapJoinPushThroughJoinRule - fix join type (#54)
lxian Aug 5, 2019
93c6750
#58 change timestamp default precision
zheniantoushipashi Aug 20, 2019
a725490
Calcite ReduceExpressionsRule supports ignoring constant parameter fu…
zheniantoushipashi Sep 16, 2019
1d8380e
#72 convert in to or when encounter multiple columns
Oct 25, 2019
cd27466
ReduceExpressionsRule - correct trait copy (#78)
lxian Nov 6, 2019
8f1cdb3
mod func - return least restrictive type (#83)
lxian Nov 7, 2019
8a7be0f
#15710 fix unsupported percentile and udf when default database not set
whuGuo Nov 6, 2019
a22aca0
AggregateReduceRule - correct overflow on avg (#74)
lxian Nov 8, 2019
19cd35e
fix get function repeatedly
whuGuo Nov 13, 2019
99e75f8
#85 Logical Window - correct trait set (#86)
lxian Nov 21, 2019
5aa71e0
#13770 fix date cannot compare with string
whuGuo Nov 17, 2019
1495c0a
#16188 add IN syntax
whuGuo Dec 6, 2019
188d150
remove write between operator flag ASYMMETRIC
Dec 13, 2019
59d14d0
[calcite-3589] SqlValidatorException when conformation is set to LENIENT
whuGuo Dec 11, 2019
90e4793
customizable default scale (#107)
lxian Dec 23, 2019
4c88f67
KE17420 support coustomer sqlvalidator (#111)
vaful Jan 14, 2020
3846be5
KE-9515 extract func - allow string input (#115)
lxian Feb 20, 2020
5bbdfd1
KE-9016 convert higher precision value to lower precision
Xinbei Feb 26, 2020
f2b83d5
KE-9016 convert double to long
Xinbei Mar 13, 2020
e91ca99
#63 SqlValidatorImpl - correct sql select rowType deduction (#64)
lxian Mar 23, 2020
0d7d8b6
KE-12894 change timestampdiff datatype to bigint
Xinbei Mar 24, 2020
689ecf8
KE-12716 trim seek string support more than one character (#122)
weiwei121723 Apr 3, 2020
ec73416
KE-12991 remove hackSelectStar logic, keep it clean
vaful Apr 1, 2020
d48522e
KE-13135 fix timestampdiff constant query
Xinbei Apr 13, 2020
898e199
floor/ceil - return long for numeric types (#131)
lxian May 6, 2020
054492e
KE-14503 with alias match table names only
Xinbei May 25, 2020
f51e02d
KE-14714 make rexInputRef unique
Xinbei Jun 8, 2020
b9b876b
KE-13678 reduce expr rule - exclude NOT_IN (#147)
lxian Jul 6, 2020
5d83583
KE-14593 assume date and timestamp are comparable (#153)
yugan95 Jul 6, 2020
425f109
KE-14103 change sign & grouping return type
Xinbei Jul 3, 2020
132704c
int division - return type double (#155)
lxian Jul 15, 2020
d932391
KE-14922 enable default conformance identify != and upgrade calcite t…
Jul 15, 2020
9567597
KE-14922 support SQL_WVARCHAR, WVARCHAR by calcite-r44
pfzhan Jul 15, 2020
f2ea984
KE-14627 make constant folding in project configured and upgrade to r…
wangpanCN Jul 29, 2020
de29ad7
support +-/* between numeric and string pass alidation
huangfeng1993 Sep 23, 2020
4add76e
Revert "KE-14627 make constant folding in project configured and upgr…
huangfeng1993 Sep 24, 2020
527575f
KE-19732 make floor function not reducible
Xinbei Nov 16, 2020
1c29e09
KE-19050 substring correct monotonicity checking (#178)
lxian Nov 18, 2020
2a89521
KE-19795 Enable group by dynamic param
RupengWang Nov 18, 2020
f23a144
KE-20629 improve query performance that contains a lot of union and with
whuGuo Dec 2, 2020
23c3248
AL-717 support array(...) (#189)
lxian Jan 19, 2021
82c05c2
KE-25408 a < b => (a < b)
huangfeng1993 Mar 8, 2021
efe2d97
revert KE-25408 (#206)
huangfeng1993 Apr 9, 2021
790a631
KE-27654 # disable timestampdiff converter (#228)
JhusiJeremy Jun 18, 2021
ab5313b
KE-27654 # add timestampdiff implementation (#239)
JhusiJeremy Jun 21, 2021
48ca8e5
revert KE-27654 # remove timestampdiff converter (#241)
JhusiJeremy Jun 24, 2021
e2441b2
KE-cmb derive case when return type remove null literal
whuGuo Jul 24, 2021
3206847
KE-cmb
whuGuo Jul 26, 2021
262e504
Revert "KE-cmb"
whuGuo Aug 11, 2021
ac70619
Revert "KE-cmb derive case when return type remove null literal"
whuGuo Aug 11, 2021
1ec24ec
AL-3347 remove sub-query to build inner join when condition is =
whuGuo Aug 10, 2021
fcb3d99
KE-33345 fix space function in add operator
Feb 11, 2022
a4a4f6d
Revert "KE-33345 fix space function in add operator" (#275)
Feb 14, 2022
0844435
KE-34157 limit the count of cnf expressions
pfzhan Mar 14, 2022
f9cf241
Fix codestyle of 1.30.0-4.x to pass "./gradlew build -x test"
eventd Dec 13, 2022
ad3a317
more control over udf (#95)
lxian Dec 24, 2019
373fe86
#10964 put project under relroot to fix async query (#42)
jiezouSH Jul 16, 2019
5903cdf
Other fixed for KyCalcite-1.30.0.x and KE4 integration
eventd Jan 4, 2023
5818bd3
KE-11534 Upgrade Calcite to 1.30 and adapt it for Kylin
gleonSun Feb 7, 2023
cd20214
KE-11534 [Follow-up]Add issue information for the upgrade process
gleonSun Jun 15, 2023
33131e2
KE-11534 [Follow up]KE-42023 Revove DOUBLE_PRECISION in Calcite’s Sql…
gleonSun Jun 19, 2023
50d862e
KE-11534 [Follow up]KE-42040 Fallback logic for adding RexBuilder in …
gleonSun Jun 26, 2023
f299dc1
KE-11534 [Follow up]KE-42042 Undo the changes to the RexSimplify#simp…
gleonSun Jul 4, 2023
4b14513
KE-11534 [Follow up]KE-42046 Adjust AggregateCall#create to restore i…
gleonSun Jul 5, 2023
eac5e78
KE-11534 [Follow up]KE-42047 Remove the NPE adaptation logic added in…
gleonSun Jul 6, 2023
1b73ee3
KE-11534 [Follow up]KE-42049 Recovering Calcite DateString and Timest…
gleonSun Jul 13, 2023
2e5e66f
KE-11534 [Follow up]KE-42051 Update Operator's operands to ensure con…
gleonSun Jul 13, 2023
c3b8fae
KE-11534 [Follow up]KE-42069 Revert update of Position in Calcite Sql…
gleonSun Jul 14, 2023
bbcd860
KE-11534 [Follow up]KE-42058 Fixed with Decimal type conversion missi…
gleonSun Jul 20, 2023
83fd85c
KE-11534 [Follow up]KE-42022 Revert DelegatingScope checking for the …
gleonSun Jul 20, 2023
b985c5c
KE-11534 [Follow up]KE-42061 Revert use SqlUnresolvedFunction in SqlA…
gleonSun Jul 20, 2023
61a83f4
KE-11534 [Follow up]KE-42045 Restore the logic for inferring operand …
gleonSun Jul 28, 2023
a82eee9
KE-11534 [Follow up]KE-42050 Allows ExtendedTrim operations on any ty…
gleonSun Aug 2, 2023
4886b65
Revert "KE-11534 [Follow up]KE-42040 Fallback logic for adding RexBui…
gleonSun Aug 2, 2023
fcb329d
KE-11534 [Follow up]KE-42052 Revert the changes in SqlDialect#quoteSt…
gleonSun Aug 2, 2023
b4d1004
KE-11534 [Follow up]KE-42027 Revert the changes in RexLiteral’s toString
gleonSun Aug 2, 2023
bfaf4bf
KE-11534 [Follow up]KE-42039 Revert the changes in RelOptUtil#isDisti…
gleonSun Aug 3, 2023
0a728dd
KE-11534 [Follow up]KE-42039 Revert the changes in SqlToRelConverter#…
gleonSun Aug 3, 2023
6cf4b32
KE-11534 [Follow up]KE-42047 revert changes in RelBuilder
pfzhan Aug 4, 2023
797a81d
KE-11534 [Follow up]KE-42042 RexSimplify only forbidden SEARCH operator
pfzhan Aug 4, 2023
c24cdda
KE-11534 [Follow up]KE-42040 revert changes in JoinInfo
pfzhan Aug 4, 2023
8ab4d43
KE-11534 [Follow up]KE-42084 merge with new Calcite
gleonSun Aug 23, 2023
02cb750
KE-11534 [Follow up]KE-42243 merge with new Calcite
gleonSun Aug 25, 2023
ccfbd1f
[CALCITE-5045] Alias within GroupingSets throws type mis-match except…
Jun 24, 2022
29e3c9e
KE-41870 change TIMESTAMPDIFF/ADD functions' checker to support date …
lhuang09287750 Jun 15, 2023
e7148b8
KE-11534 [Follow up]AL-8759 merge with new Calcite
gleonSun Aug 25, 2023
44eb3fa
KE-11534 [Follow up]KE-24613 Support explode(array(...))
gleonSun Sep 8, 2023
547ead1
KE-11534 [Follow up]KE-42504 merge with new Calcite
gleonSun Sep 12, 2023
6dbe41a
KE-11534 [Follow up]KE-22172 Withdraw override point and enable RelFi…
gleonSun Sep 15, 2023
b225ff7
KE-11534 [Follow up]KE-24120 Restore behavior that throws the Illegal…
gleonSun Sep 19, 2023
b7c27ea
KE-11534 [Follow up]KE-42709 Disallow trimming of null conditions to …
gleonSun Sep 20, 2023
797b06f
KE-11534 [Follow up]KE-42719 Fix quoteStringLiteral in NlsString#asSq…
gleonSun Sep 21, 2023
5984c4b
KE-11534 [Follow up]AL-9025 Cherry-pick and merge with new Calcite
gleonSun Nov 21, 2023
11b9679
KE-11534 [Follow up]AL-8813 merge with new Calcite
gleonSun Nov 21, 2023
ac5f758
KE-11534 [follow up] remove some inappropriate changes
pfzhan Dec 5, 2023
d403573
KE-11534 [follow up] remove some inappropriate changes
pfzhan Dec 5, 2023
56874fc
[CALCITE-5483] ProjectAggregateMergeRule throws exception if literal …
libenchao Jan 20, 2023
276ad39
KE-11534 support kylin dialect
pfzhan Jan 12, 2024
8ad393e
[CALCITE-5843] Constant expression with nested casts causes a compile…
pfzhan Mar 7, 2024
d97cd3c
KE-11534 [Follow up]Nexus deploy for Calcite 1.30
gleonSun Mar 11, 2024
c1ee091
Merge pull request #320 from gleonSun/calcite-guava
gleonSun Mar 11, 2024
2cee4ba
[CALCITE-5263] Improve XmlFunctions by using an XML DocumentBuilder
rubenada Sep 3, 2022
fe103e6
KE-11534 keep if operator rather than convert to case when
pfzhan Mar 19, 2024
2d37796
KE-11534 [Follow up]Remove the if operator check
gleonSun Mar 20, 2024
31a6a2f
Merge pull request #341 from gleonSun/kycalcite-1.30.0.x-Debug
gleonSun Mar 20, 2024
89c82ea
KE-11534 keep ifnull operator rather than convert to case when
pfzhan Mar 26, 2024
34aaed8
KE-11534 [Follow up]IF and IFNULL do not fold as constants
gleonSun Mar 27, 2024
6714e73
Merge pull request #344 from gleonSun/if-and-ifnull
gleonSun Mar 27, 2024
16397a3
[CALCITE-5949] RexExecutable should return unchanged original express…
gleonSun Apr 17, 2024
cf9e794
KE-43703 Fix bug caused by cancelFlag during CBO process leading to o…
gleonSun Apr 23, 2024
be078e7
AL-9703 Fix query using both = and in operators for the same value (#…
gleonSun May 15, 2024
a3ab73d
fix
pfzhan Jul 18, 2024
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
[CALCITE-4875] Preserve Operand Nullability in NVL rewrite
  • Loading branch information
Jay authored and NobiGo committed Nov 11, 2021
commit a03586c26e1888daebabb271b603fd2871d6a359
Original file line number Diff line number Diff line change
Expand Up @@ -308,12 +308,20 @@ private static RexNode convertNvl(SqlRexContext cx, SqlCall call) {
cx.convertExpression(call.getOperandList().get(1));
final RelDataType type =
cx.getValidator().getValidatedNodeType(call);
// Preserve Operand Nullability
return rexBuilder.makeCall(type, SqlStdOperatorTable.CASE,
ImmutableList.of(
rexBuilder.makeCall(SqlStdOperatorTable.IS_NOT_NULL,
operand0),
rexBuilder.makeCast(type, operand0),
rexBuilder.makeCast(type, operand1)));
rexBuilder.makeCast(
cx.getTypeFactory()
.createTypeWithNullability(type, operand0.getType().isNullable()),
operand0),
rexBuilder.makeCast(
cx.getTypeFactory()
.createTypeWithNullability(type, operand1.getType().isNullable()),
operand1)
));
}

/** Converts a call to the DECODE function. */
Expand Down
22 changes: 22 additions & 0 deletions core/src/test/resources/sql/functions.iq
Original file line number Diff line number Diff line change
Expand Up @@ -187,4 +187,26 @@ SELECT XMLTRANSFORM(
Invalid input for XMLTRANSFORM xml: '<'
!error

# [CALCITE-4875] Preserve Operand Nullability in NVL rewrite
# Asserting that NVL does not change a Nullable operand to NOT Nullable

!use oraclefunc
select nvl("name", 'undefined') FROM "hr"."emps";

EnumerableCalc(expr#0..4=[{inputs}], expr#5=[IS NOT NULL($t2)], expr#6=[CAST($t2):VARCHAR], expr#7=['undefined':VARCHAR], expr#8=[CASE($t5, $t6, $t7)], EXPR$0=[$t8])
EnumerableTableScan(table=[[hr, emps]])
!plan

+-----------+
| EXPR$0 |
+-----------+
| Bill |
| Eric |
| Sebastian |
| Theodore |
+-----------+
(4 rows)

!ok

# End functions.iq
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,7 @@ public Connection connect(String name) throws Exception {
case "oraclefunc":
return CalciteAssert.that()
.with(CalciteConnectionProperty.FUN, "oracle")
.with(CalciteAssert.Config.REGULAR)
.connect();
case "catchall":
return CalciteAssert.that()
Expand Down