HIVE-29610: Add support for SQL wildcards (% and _) in SHOW COLUMNS aligning with other SHOW commands#6481
Conversation
…ligning with other SHOW commands
|
After HIVE-23359 the behaviour in Hive3 vs Hive4.0.1 for regex pattern was changed i.e. breaking change until HIVE-28292 was merged. The following overloaded method where In |
|
CC @wecharyu @deniskuzZ , requesting for review and feedback on the approach. |
|
UT failure is un-related. will re-run post review comments |
soumyakanti3578
left a comment
There was a problem hiding this comment.
Overall this looks quite good, but needs cleaning up in a few places and also needs more tests.
|
Thanks for the review @soumyakanti3578 , I've addressed the review comments. |
|
|
Have addressed the latest review comments as well @soumyakanti3578 |



What changes were proposed in this pull request?
Check HIVE-29610
Why are the changes needed?
ShowColumnsOperationdoesn't make use ofUDFLike#likePatternToRegExp()and only resolve*regex pattern and not the%which was introduced in HIVE-23359.Does this PR introduce any user-facing change?
Yes, show columns will start supporint query like
SHOW COLUMNS FROM tbl LIKE 'name_%';and will be backward compatible to support*.How was this patch tested?
Running the following UT and cluster testing
Before

After
