druid/integration-tests-ex/cases
Gian Merlino 175636b28f
Frame writers: Coerce numeric and array types in certain cases. (#16994)
This patch adds "TypeCastSelectors", which is used when writing frames to
perform two coercions:

- When a numeric type is desired and the underlying type is non-numeric or
  unknown, the underlying selector is wrapped, "getObject" is called and the
  result is coerced using "ExprEval.ofType". This differs from the prior
  behavior where the primitive methods like "getLong", "getDouble", etc, would
  be called directly. This fixes an issue where a column would be read as
  all-zeroes when its SQL type is numeric and its physical type is string, which
  can happen when evolving a column's type from string to number.

-  When an array type is desired, the underlying selector is wrapped,
   "getObject" is called, and the result is coerced to Object[]. This coercion
   replaces some earlier logic from #15917.
2024-09-05 17:20:00 -07:00
..
assets Add the new integration test framework (#12368) 2022-08-24 17:03:23 +05:30
cluster Revised IT to detect backward incompatible change (#16779) 2024-08-07 11:13:35 +05:30
resources Add the new integration test framework (#12368) 2022-08-24 17:03:23 +05:30
src/test Frame writers: Coerce numeric and array types in certain cases. (#16994) 2024-09-05 17:20:00 -07:00
.gitignore Add the new integration test framework (#12368) 2022-08-24 17:03:23 +05:30
cluster.sh Remove index_realtime and index_realtime_appenderator tasks (#16602) 2024-06-24 20:13:33 -07:00
pom.xml Revised IT to detect backward incompatible change (#16779) 2024-08-07 11:13:35 +05:30