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
LIKE '%somevalue%' should work over varchar and char columns.
Current Behavior
Returns an error over char: Unexpected parameters (char(15), varchar, bigint) for function split. Expected: split(varchar(x), varchar(y), bigint) , split(varchar(x), varchar(y))
I prefer adding the missing SPLIT function overload for char type - varchar vs char is too subtle for users.
So I suggest for now, removing the CharType as suggsted on the original PR and open a separate issue to add SPLIT for CHAR type so we can make it more robust.
I prefer adding the missing SPLIT function overload for char type - varchar vs char is too subtle for users.
So I suggest for now, removing the CharType as suggsted on the original PR and open a separate issue to add SPLIT for CHAR type so we can make it more robust.
We are definitely not reverting the optimization.
Agreed on this path forward. Would you like to raise a PR?
Your Environment
Local Mac
Expected Behavior
LIKE '%somevalue%' should work over varchar and char columns.
Current Behavior
Returns an error over char:
Unexpected parameters (char(15), varchar, bigint) for function split. Expected: split(varchar(x), varchar(y), bigint) , split(varchar(x), varchar(y))
Possible Solution
See discussion in #20436.
Simplest solution, as advocated there, is to remove the optimization found in that PR over char columns, since it doesn't work.
Alternatively, we could try to create the function that's missing.
Finally, we could revert #20436.
Steps to Reproduce
MemoryQueryRunner
in IntelliJcreate table orders_char as select CAST(orderpriority AS CHAR(15)) AS orderpriority from orders;
select * from orders_char WHERE orderpriority LIKE '%1-URGENT%';
Screenshots (if appropriate)
Context
This has been present since 0.284, so we'll need to create patch fixes for 0.284 and 0.285. We'll also need to hold up 0.286 so this goes in.
The text was updated successfully, but these errors were encountered: