wecharyu commented on code in PR #6240:
URL: https://github.com/apache/hive/pull/6240#discussion_r2650891112


##########
ql/src/test/results/clientpositive/llap/ppd_like_filter.q.out:
##########
@@ -256,3 +256,51 @@ POSTHOOK: type: QUERY
 POSTHOOK: Input: default@test_tbl
 POSTHOOK: Input: default@test_tbl@b=d_%5C%25ae
 #### A masked pattern was here ####
+PREHOOK: query: select * from test_tbl where b like 'a.*'

Review Comment:
   SQL engines usually not use `.*` as a filter, but HMS thrift APIs support it 
as a pattern, I think it's because HMS uses JDO `matches()` for like filter. 
   
   And Spark is using the `.*` pattern for partition filter like here:
   
https://github.com/apache/spark/blob/8cc2e4677d596bada67d05792f6fd896e5fc640f/sql/hive/src/main/scala/org/apache/spark/sql/hive/client/HiveShim.scala#L827-L834



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to