You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
explain SELECT column1_utf8 from test where column1_utf8 = arrow_cast('Andrew', 'Utf8View');
logical_plan
01)Filter: CAST(test.column1_utf8AS Utf8View) = Utf8View("Andrew")
02)--TableScan: test projection=[column1_utf8]
This plan is non ideal as it casts the column rather than the constant
Describe the solution you'd like
Instead of
CAST(test.column1_utf8 AS Utf8View) = Utf8View("Andrew")
the filter should be
test.column1_utf8 = Utf8("Andrew")
So the expected plan should look like
explain SELECT column1_utf8 from test where column1_utf8 = arrow_cast('Andrew', 'Utf8View');
logical_plan
01)Filter: test.column1_utf8= Utf8("Andrew")
02)--TableScan: test projection=[column1_utf8]
Describe alternatives you've considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered:
Part of #10918
Is your feature request related to a problem or challenge?
DataFusion's predicate creation doesn't work as ideally for Utf8View constants
Specifically, I added a test i #10997
This plan is non ideal as it casts the column rather than the constant
Describe the solution you'd like
Instead of
the filter should be
So the expected plan should look like
Describe alternatives you've considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: