Skip to content

use CastToObjectVectorProcessor for cast to string#17148

Merged
clintropolis merged 1 commit intoapache:masterfrom
clintropolis:fix-vector-string-cast
Sep 24, 2024
Merged

use CastToObjectVectorProcessor for cast to string#17148
clintropolis merged 1 commit intoapache:masterfrom
clintropolis:fix-vector-string-cast

Conversation

@clintropolis
Copy link
Copy Markdown
Member

Fixes an issue noticed after #17098, where the CastToStringVectorProcessor wasn't actually doing a cast, and instead just using Evals.asString. This was fine when only numbers and strings were supported in vectorized expressions, but insufficient when arrays and complex types are allowed.

The solution is just to remove CastToStringVectorProcessor in favor of always using CastToObjectVectorProcessor. Alternatively, we could have left CastToObjectVectorProcessor to use in cases where we were casting from a numeric type, but that seems a bit confusing so I just removed it.

@clintropolis clintropolis added this to the 31.0.0 milestone Sep 24, 2024
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.

2 participants