Skip to content

[common] Fix substring transform query failure for non int type - #9326

Open
ArnavBalyan wants to merge 1 commit into
apache:masterfrom
ArnavBalyan:arnavb/fix-sub-bug
Open

[common] Fix substring transform query failure for non int type#9326
ArnavBalyan wants to merge 1 commit into
apache:masterfrom
ArnavBalyan:arnavb/fix-sub-bug

Conversation

@ArnavBalyan

Copy link
Copy Markdown
Member

Purpose

  • Substring function accepts multiple numeric types for position indexes in argument.
  • However, positions are always read as INT, causing a ClassCastException for types such as bigint, long etc.
  • Ensure we read the position fields with the getter corresponding to their declared type.

Tests

  • UT

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