Skip to content

Conversation

@coderfender
Copy link
Contributor

@coderfender coderfender commented Jan 13, 2026

Which issue does this PR close?

  1. Add int (byte/short/int/long) → binary cast support for LEGACY mode only (per Spark)
  2. Add boolean → decimal cast support
  3. Update cast tests to use DSL instead of SQL for regular casts (except try mode since try_cast is only supported starting Spark 4x)
  4. Skip try_cast tests for casts not supported by Spark SQL

Closes #.

Rationale for this change

  1. Add new comet native cast functionality

What changes are included in this PR?

How are these changes tested?

  1. CastTestSuite tests and additional tests to cast Boolean to various Decimal Types

@coderfender coderfender changed the title feat : implement cast from int (whole numbers) to binary feat : implement cast from int (whole numbers) to binary format Jan 14, 2026
@coderfender coderfender changed the title feat : implement cast from int (whole numbers) to binary format feat: implement cast from int (whole numbers) to binary format Jan 14, 2026
@coderfender
Copy link
Contributor Author

@parthchandra , @andygrove these are the changes to support int to binary cast and bool to decimal cast operation . I have also had to change the base test to make sure that we use DSL (since Int -> Binary casts are only supported in the DSL side of Spark and would raise an encoding exception if we use Spark SQL) . Also, Int -> Binary casts do not support Try or ANSI eval modes in Spark and I have followed the same convention here as well

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant