You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Ning Zhang (JIRA)" <ji...@apache.org> on 2011/05/09 22:24:03 UTC
[jira] [Created] (HIVE-2153) Stats JDBC LIKE queries should escape
'_' and '%'
Stats JDBC LIKE queries should escape '_' and '%'
-------------------------------------------------
Key: HIVE-2153
URL: https://issues.apache.org/jira/browse/HIVE-2153
Project: Hive
Issue Type: Bug
Reporter: Ning Zhang
Assignee: Ning Zhang
DELETE /* Hive stats aggregation: org.apache.hadoop.hive.ql.stats.jdbc.JDBCStatsAggregator */ FROM PARTITION_STAT_TBL WHERE ID LIKE 'hdfs://dfsnode:9000/tmp/hive-root/hive_2011-05-09_04-30-28_586_4184342157898880918/-ext-10000/ds=2011-05-08/table_name=dim_page_to_user_suggest_assoc/%'
It is a prefix query but the '_' in the ID column should be escaped. The same applies to '%' if they appear in ID.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (HIVE-2153) Stats JDBC LIKE queries should escape
'_' and '%'
Posted by "Ning Zhang (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HIVE-2153?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ning Zhang updated HIVE-2153:
-----------------------------
Status: Patch Available (was: Open)
review board https://reviews.apache.org/r/702/
> Stats JDBC LIKE queries should escape '_' and '%'
> -------------------------------------------------
>
> Key: HIVE-2153
> URL: https://issues.apache.org/jira/browse/HIVE-2153
> Project: Hive
> Issue Type: Bug
> Reporter: Ning Zhang
> Assignee: Ning Zhang
> Attachments: HIVE-2153.patch
>
>
> DELETE /* Hive stats aggregation: org.apache.hadoop.hive.ql.stats.jdbc.JDBCStatsAggregator */ FROM PARTITION_STAT_TBL WHERE ID LIKE 'hdfs://dfsnode:9000/tmp/hive-root/hive_2011-05-09_04-30-28_586_4184342157898880918/-ext-10000/ds=2011-05-08/table_name=dim_page_to_user_suggest_assoc/%'
> It is a prefix query but the '_' in the ID column should be escaped. The same applies to '%' if they appear in ID.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (HIVE-2153) Stats JDBC LIKE queries should escape
'_' and '%'
Posted by "Paul Yang (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HIVE-2153?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Paul Yang updated HIVE-2153:
----------------------------
Resolution: Fixed
Fix Version/s: 0.8.0
Status: Resolved (was: Patch Available)
Committed. Thanks Ning!
> Stats JDBC LIKE queries should escape '_' and '%'
> -------------------------------------------------
>
> Key: HIVE-2153
> URL: https://issues.apache.org/jira/browse/HIVE-2153
> Project: Hive
> Issue Type: Bug
> Reporter: Ning Zhang
> Assignee: Ning Zhang
> Fix For: 0.8.0
>
> Attachments: HIVE-2153.2.patch, HIVE-2153.patch
>
>
> DELETE /* Hive stats aggregation: org.apache.hadoop.hive.ql.stats.jdbc.JDBCStatsAggregator */ FROM PARTITION_STAT_TBL WHERE ID LIKE 'hdfs://dfsnode:9000/tmp/hive-root/hive_2011-05-09_04-30-28_586_4184342157898880918/-ext-10000/ds=2011-05-08/table_name=dim_page_to_user_suggest_assoc/%'
> It is a prefix query but the '_' in the ID column should be escaped. The same applies to '%' if they appear in ID.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (HIVE-2153) Stats JDBC LIKE queries should
escape '_' and '%'
Posted by "jiraposter@reviews.apache.org (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HIVE-2153?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13030954#comment-13030954 ]
jiraposter@reviews.apache.org commented on HIVE-2153:
-----------------------------------------------------
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/702/
-----------------------------------------------------------
(Updated 2011-05-09 23:25:51.497027)
Review request for hive.
Summary
-------
Escape '_' and '%' in the LIKE operands.
This addresses bug HIVE-2153.
https://issues.apache.org/jira/browse/HIVE-2153
Diffs (updated)
-----
trunk/ql/src/java/org/apache/hadoop/hive/ql/exec/Utilities.java 1101220
trunk/ql/src/java/org/apache/hadoop/hive/ql/stats/jdbc/JDBCStatsAggregator.java 1101220
Diff: https://reviews.apache.org/r/702/diff
Testing
-------
passed the stats test suite, also tested it manually on mysql in addition to derby.
Thanks,
Ning
> Stats JDBC LIKE queries should escape '_' and '%'
> -------------------------------------------------
>
> Key: HIVE-2153
> URL: https://issues.apache.org/jira/browse/HIVE-2153
> Project: Hive
> Issue Type: Bug
> Reporter: Ning Zhang
> Assignee: Ning Zhang
> Attachments: HIVE-2153.2.patch, HIVE-2153.patch
>
>
> DELETE /* Hive stats aggregation: org.apache.hadoop.hive.ql.stats.jdbc.JDBCStatsAggregator */ FROM PARTITION_STAT_TBL WHERE ID LIKE 'hdfs://dfsnode:9000/tmp/hive-root/hive_2011-05-09_04-30-28_586_4184342157898880918/-ext-10000/ds=2011-05-08/table_name=dim_page_to_user_suggest_assoc/%'
> It is a prefix query but the '_' in the ID column should be escaped. The same applies to '%' if they appear in ID.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (HIVE-2153) Stats JDBC LIKE queries should escape
'_' and '%'
Posted by "Ning Zhang (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HIVE-2153?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ning Zhang updated HIVE-2153:
-----------------------------
Attachment: HIVE-2153.2.patch
escape the escaping char itself.
> Stats JDBC LIKE queries should escape '_' and '%'
> -------------------------------------------------
>
> Key: HIVE-2153
> URL: https://issues.apache.org/jira/browse/HIVE-2153
> Project: Hive
> Issue Type: Bug
> Reporter: Ning Zhang
> Assignee: Ning Zhang
> Attachments: HIVE-2153.2.patch, HIVE-2153.patch
>
>
> DELETE /* Hive stats aggregation: org.apache.hadoop.hive.ql.stats.jdbc.JDBCStatsAggregator */ FROM PARTITION_STAT_TBL WHERE ID LIKE 'hdfs://dfsnode:9000/tmp/hive-root/hive_2011-05-09_04-30-28_586_4184342157898880918/-ext-10000/ds=2011-05-08/table_name=dim_page_to_user_suggest_assoc/%'
> It is a prefix query but the '_' in the ID column should be escaped. The same applies to '%' if they appear in ID.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (HIVE-2153) Stats JDBC LIKE queries should
escape '_' and '%'
Posted by "Paul Yang (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HIVE-2153?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13030981#comment-13030981 ]
Paul Yang commented on HIVE-2153:
---------------------------------
+1 Will test and commit
> Stats JDBC LIKE queries should escape '_' and '%'
> -------------------------------------------------
>
> Key: HIVE-2153
> URL: https://issues.apache.org/jira/browse/HIVE-2153
> Project: Hive
> Issue Type: Bug
> Reporter: Ning Zhang
> Assignee: Ning Zhang
> Attachments: HIVE-2153.2.patch, HIVE-2153.patch
>
>
> DELETE /* Hive stats aggregation: org.apache.hadoop.hive.ql.stats.jdbc.JDBCStatsAggregator */ FROM PARTITION_STAT_TBL WHERE ID LIKE 'hdfs://dfsnode:9000/tmp/hive-root/hive_2011-05-09_04-30-28_586_4184342157898880918/-ext-10000/ds=2011-05-08/table_name=dim_page_to_user_suggest_assoc/%'
> It is a prefix query but the '_' in the ID column should be escaped. The same applies to '%' if they appear in ID.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (HIVE-2153) Stats JDBC LIKE queries should
escape '_' and '%'
Posted by "jiraposter@reviews.apache.org (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HIVE-2153?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13030943#comment-13030943 ]
jiraposter@reviews.apache.org commented on HIVE-2153:
-----------------------------------------------------
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/702/
-----------------------------------------------------------
Review request for hive.
Summary
-------
Escape '_' and '%' in the LIKE operands.
This addresses bug HIVE-2153.
https://issues.apache.org/jira/browse/HIVE-2153
Diffs
-----
trunk/ql/src/java/org/apache/hadoop/hive/ql/exec/Utilities.java 1101220
trunk/ql/src/java/org/apache/hadoop/hive/ql/stats/jdbc/JDBCStatsAggregator.java 1101220
Diff: https://reviews.apache.org/r/702/diff
Testing
-------
passed the stats test suite, also tested it manually on mysql in addition to derby.
Thanks,
Ning
> Stats JDBC LIKE queries should escape '_' and '%'
> -------------------------------------------------
>
> Key: HIVE-2153
> URL: https://issues.apache.org/jira/browse/HIVE-2153
> Project: Hive
> Issue Type: Bug
> Reporter: Ning Zhang
> Assignee: Ning Zhang
> Attachments: HIVE-2153.patch
>
>
> DELETE /* Hive stats aggregation: org.apache.hadoop.hive.ql.stats.jdbc.JDBCStatsAggregator */ FROM PARTITION_STAT_TBL WHERE ID LIKE 'hdfs://dfsnode:9000/tmp/hive-root/hive_2011-05-09_04-30-28_586_4184342157898880918/-ext-10000/ds=2011-05-08/table_name=dim_page_to_user_suggest_assoc/%'
> It is a prefix query but the '_' in the ID column should be escaped. The same applies to '%' if they appear in ID.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (HIVE-2153) Stats JDBC LIKE queries should
escape '_' and '%'
Posted by "Hudson (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HIVE-2153?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13032617#comment-13032617 ]
Hudson commented on HIVE-2153:
------------------------------
Integrated in Hive-trunk-h0.20 #726 (See [https://builds.apache.org/hudson/job/Hive-trunk-h0.20/726/])
> Stats JDBC LIKE queries should escape '_' and '%'
> -------------------------------------------------
>
> Key: HIVE-2153
> URL: https://issues.apache.org/jira/browse/HIVE-2153
> Project: Hive
> Issue Type: Bug
> Reporter: Ning Zhang
> Assignee: Ning Zhang
> Fix For: 0.8.0
>
> Attachments: HIVE-2153.2.patch, HIVE-2153.patch
>
>
> DELETE /* Hive stats aggregation: org.apache.hadoop.hive.ql.stats.jdbc.JDBCStatsAggregator */ FROM PARTITION_STAT_TBL WHERE ID LIKE 'hdfs://dfsnode:9000/tmp/hive-root/hive_2011-05-09_04-30-28_586_4184342157898880918/-ext-10000/ds=2011-05-08/table_name=dim_page_to_user_suggest_assoc/%'
> It is a prefix query but the '_' in the ID column should be escaped. The same applies to '%' if they appear in ID.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (HIVE-2153) Stats JDBC LIKE queries should escape
'_' and '%'
Posted by "Ning Zhang (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HIVE-2153?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ning Zhang updated HIVE-2153:
-----------------------------
Attachment: HIVE-2153.patch
> Stats JDBC LIKE queries should escape '_' and '%'
> -------------------------------------------------
>
> Key: HIVE-2153
> URL: https://issues.apache.org/jira/browse/HIVE-2153
> Project: Hive
> Issue Type: Bug
> Reporter: Ning Zhang
> Assignee: Ning Zhang
> Attachments: HIVE-2153.patch
>
>
> DELETE /* Hive stats aggregation: org.apache.hadoop.hive.ql.stats.jdbc.JDBCStatsAggregator */ FROM PARTITION_STAT_TBL WHERE ID LIKE 'hdfs://dfsnode:9000/tmp/hive-root/hive_2011-05-09_04-30-28_586_4184342157898880918/-ext-10000/ds=2011-05-08/table_name=dim_page_to_user_suggest_assoc/%'
> It is a prefix query but the '_' in the ID column should be escaped. The same applies to '%' if they appear in ID.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira