You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Apache Spark (JIRA)" <ji...@apache.org> on 2016/04/06 16:08:25 UTC

[jira] [Commented] (SPARK-14429) Revisit LIKE pattern in "SHOW TABLES / FUNCTIONS LIKE " DDL

    [ https://issues.apache.org/jira/browse/SPARK-14429?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15228299#comment-15228299 ] 

Apache Spark commented on SPARK-14429:
--------------------------------------

User 'bomeng' has created a pull request for this issue:
https://github.com/apache/spark/pull/12206

> Revisit LIKE pattern in "SHOW TABLES / FUNCTIONS LIKE <pattern>" DDL
> --------------------------------------------------------------------
>
>                 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.



--
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