Skip to content

Fix handling of columns with Decimal data type in delta input source#17376

Merged
abhishekrb19 merged 1 commit intoapache:masterfrom
abhishekrb19:fix_delta_decimal_type_support
Oct 18, 2024
Merged

Fix handling of columns with Decimal data type in delta input source#17376
abhishekrb19 merged 1 commit intoapache:masterfrom
abhishekrb19:fix_delta_decimal_type_support

Conversation

@abhishekrb19
Copy link
Copy Markdown
Contributor

The Delta Decimal type wasn't handled correctly in the Druid Delta connector, resulting in the error: Unsupported fieldType[Decimal(4, 2)] for fieldName[price].

There were no tests or existing tables with the Decimal type, so I've updated the existing table, complex-types-table to include this data type.

Note that the Decimal type can only be handled as a double at most in Druid. For a big decimal that cannot fit inside a double, it should be ingested as a string.

Release note

Fix handling of columns with Decimal data type in the delta input source.

  • been self-reviewed.
  • a release note entry in the PR description.
  • added unit tests or modified existing tests to cover new code paths, ensuring the threshold for code coverage is met.
  • been tested in a test Druid cluster.

The Delta decimal type support wasn't handled correctly.
@abhishekrb19 abhishekrb19 merged commit a44006c into apache:master Oct 18, 2024
@abhishekrb19 abhishekrb19 deleted the fix_delta_decimal_type_support branch October 18, 2024 15:09
@adarshsanjeev adarshsanjeev added this to the 32.0.0 milestone Jan 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants