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
{{ message }}
Repository navigation
Improve filter predicates with Utf8View literals #10998
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]
Activity
doki23 commentedon Jun 27, 2024
I wonder why #11043 isn't able to close this issue.
alamb commentedon Jun 27, 2024
I agree -- #11043 should have closed it -- thank you @doki23