Skip to content

Handle native arrays when coercing results back#14428

Closed
LakshSingla wants to merge 1 commit intoapache:masterfrom
LakshSingla:coerce-native-arrays
Closed

Handle native arrays when coercing results back#14428
LakshSingla wants to merge 1 commit intoapache:masterfrom
LakshSingla:coerce-native-arrays

Conversation

@LakshSingla
Copy link
Contributor

Fixes #14006

Description

SqlResults.coerce cannot coerce native Java arrays in the results. This PR updates the method to account for them as well. Attached the reported issue above which contains the repro for the bug, and added unit test for the same.


This PR has:

  • been self-reviewed.
  • added documentation for new or modified features or behaviors.
  • a release note entry in the PR description.
  • added Javadocs for most classes and all non-trivial methods. Linked related entities via Javadoc links.
  • added or updated version, license, or notice information in licenses.yaml
  • added comments explaining the "why" and the intent of the code wherever would not be obvious for an unfamiliar reader.
  • added unit tests or modified existing tests to cover new code paths, ensuring the threshold for code coverage is met.
  • added integration tests.
  • been tested in a test Druid cluster.

@clintropolis
Copy link
Member

is this similar to #14260?

@LakshSingla
Copy link
Contributor Author

Oops, yeah, closing since it's a duplicate!

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.

Error when using string_to_mv() from a subquery

2 participants