drill
DRILL-8136: Overhaul implict type casting logic
#2638
Merged
Go
Login via GitHub
Home
Pricing
FAQ
Install
Login
via GitHub
Overview
Commits
26
Changes
View On
GitHub
DRILL-8136: Overhaul implict type casting logic
#2638
jnturton
merged 26 commits into
apache:master
from
jnturton:implicit-cast-graph
jnturton
added
enhancement
jnturton
added
udf
jnturton
marked this pull request as draft
2 years ago
cgivre
assigned
jnturton
2 years ago
cgivre
changed the title
DRILL-8136: Overhaul implict type casting logic
DRILL-8136: Overhaul Implict Type Casting Logic
2 years ago
jnturton
force pushed
from
df009e69
to
0ed7ad32
2 years ago
jnturton
marked this pull request as ready for review
2 years ago
jnturton
changed the title
DRILL-8136: Overhaul Implict Type Casting Logic
DRILL-8136: Overhaul implict type casting logic
2 years ago
cgivre
added
doc-impacting
jnturton
force pushed
from
47f5a99f
to
a719d634
2 years ago
jnturton
removed
udf
jnturton
force pushed
from
eb9a9847
to
b53abde7
2 years ago
jnturton
force pushed
from
1a51a42d
to
b03b9c0c
2 years ago
jnturton
force pushed
from
28a1ca70
to
ae6c6b80
2 years ago
jnturton
requested a review
from
vvysotskyi
2 years ago
vvysotskyi
commented on 2022-09-14
jnturton
requested a review
from
vvysotskyi
2 years ago
Fix the comment on the MONEY minor type protobuf definition.
6b88762a
Use a weighted graph to calculate implicit casting costs.
ee87bb15
Remove old precedence map cruft.
7d3b061d
Add a comment on casting costs.
9566aa8b
WIP
2cb93953
Adjust casting rules.
2059d3e2
Remove PRECISION_LOSS_CAST edge weight.
5a094c9e
Adjust casting graph weights and add some SQL tests.
9ff08cd3
Add BIT to VARCHAR's conversions.
ade00d8e
Add and test VARCHAR - BIT casting.
c525a1c5
Remove UNSUPPORTED_TYPES from ResolverTypePrecedence, adjust edge wei…
62a65c88
Make INT the nearest type to VARCHAR.
5ebbcb90
Remove BASE_COST constant.
19915056
Prefer to cast INT to VARDECIMAL than vice versa.
ee15fd5f
Adjust edge weights.
99a46e69
Prefer to cast INTs to VARDECIMALs over VARDECIMALs to FLOATs.
07663842
Remove edge from FLOAT to VARDECIMAL.
0e971888
Complete numeric parameter type support in isnumeric, link FLOAT to V…
2de2533f
Add edge from VARBINARY TO VARCHAR.
f5ad5624
Base return type logic in TypeInferenceUtils on cheapest cast.
44711e4d
Fix casting cost test and checkstyle.
cec32ef6
Raise an error when function matching is ambiguous.
b215fcc1
Add LATE type to ResolverTypePrecedence and a cost disambiguate varar…
ceb86094
Make FLOAT8 cheaper than FLOAT4 for VARCHAR and VARDECIMAL.
14993693
Always prefer to cast NULL to non-NULL.
726366b6
jnturton
force pushed
from
de0cf1ca
to
726366b6
2 years ago
Fix VARCHAR to TIMESTAMP cost and add casting preference test.
5bb37afa
vvysotskyi
approved these changes on 2022-09-19
jnturton
merged
ab7f9e99
into master
2 years ago
Login to write a write a comment.
Login via GitHub
Reviewers
vvysotskyi
Assignees
jnturton
Labels
enhancement
doc-impacting
Milestone
No milestone
Login to write a write a comment.
Login via GitHub