You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Bo Meng (JIRA)" <ji...@apache.org> on 2016/04/06 15:59:25 UTC
[jira] [Created] (SPARK-14429) Revisit LIKE pattern in "SHOW TABLES
/ FUNCTIONS LIKE "
Bo Meng created SPARK-14429:
-------------------------------
Summary: Revisit LIKE pattern in "SHOW TABLES / FUNCTIONS LIKE <pattern>"
Key: SPARK-14429
URL: https://issues.apache.org/jira/browse/SPARK-14429
Project: Spark
Issue Type: Bug
Components: SQL
Reporter: Bo Meng
Priority: Minor
LIKE <pattern> is commonly used in SHOW TABLES / FUNCTIONS etc DDL. In the pattern, user can use `|` or `\*` as wildcards.
I'd like to address a few issues in this JIRA.
1. Currently, we used `replaceAll()` to replace `\*` with `.\*`, but the replacement was scattered in several places; it is good to have one place to do the same thing;
2. Consistency with Hive: the pattern is case insensitive in Hive and white spaces will be trimmed, but current pattern matching does not do that. For example, suppose we have tables (t1, t2, t3), `SHOW TABLES LIKE ' T* ' ` will list all the t-tables. Please use Hive to verify it.
I will post a PR shortly.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org