drill
DRILL-8136: Overhaul implict type casting logic
#2638
Merged

Commits
  • Fix the comment on the MONEY minor type protobuf definition.
    jnturton committed 2 years ago
  • Use a weighted graph to calculate implicit casting costs.
    jnturton committed 2 years ago
  • Remove old precedence map cruft.
    jnturton committed 2 years ago
  • Add a comment on casting costs.
    jnturton committed 2 years ago
  • WIP
    jnturton committed 2 years ago
  • Adjust casting rules.
    jnturton committed 2 years ago
  • Remove PRECISION_LOSS_CAST edge weight.
    jnturton committed 2 years ago
  • Adjust casting graph weights and add some SQL tests.
    jnturton committed 2 years ago
  • Add BIT to VARCHAR's conversions.
    jnturton committed 2 years ago
  • Add and test VARCHAR - BIT casting.
    jnturton committed 2 years ago
  • Remove UNSUPPORTED_TYPES from ResolverTypePrecedence, adjust edge weights.
    jnturton committed 2 years ago
  • Make INT the nearest type to VARCHAR.
    jnturton committed 2 years ago
  • Remove BASE_COST constant.
    jnturton committed 2 years ago
  • Prefer to cast INT to VARDECIMAL than vice versa.
    jnturton committed 2 years ago
  • Adjust edge weights.
    jnturton committed 2 years ago
  • Prefer to cast INTs to VARDECIMALs over VARDECIMALs to FLOATs.
    jnturton committed 2 years ago
  • Remove edge from FLOAT to VARDECIMAL.
    jnturton committed 2 years ago
  • Complete numeric parameter type support in isnumeric, link FLOAT to VARCHAR.
    jnturton committed 2 years ago
  • Add edge from VARBINARY TO VARCHAR.
    jnturton committed 2 years ago
  • Base return type logic in TypeInferenceUtils on cheapest cast.
    jnturton committed 2 years ago
  • Fix casting cost test and checkstyle.
    jnturton committed 2 years ago
  • Raise an error when function matching is ambiguous.
    jnturton committed 2 years ago
  • Add LATE type to ResolverTypePrecedence and a cost disambiguate varargs matches.
    jnturton committed 2 years ago
  • Make FLOAT8 cheaper than FLOAT4 for VARCHAR and VARDECIMAL.
    jnturton committed 2 years ago
  • Always prefer to cast NULL to non-NULL.
    jnturton committed 2 years ago
  • Fix VARCHAR to TIMESTAMP cost and add casting preference test.
    jnturton committed 2 years ago
Loading