hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aihua Xu <...@cloudera.com>
Subject Re: Review Request 49882: HIVE-14146: Column comments with "\n" character "corrupts" table metadata
Date Mon, 11 Jul 2016 13:26:02 GMT

-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/49882/#review141686
-----------------------------------------------------------




common/src/java/org/apache/hive/common/util/HiveStringUtils.java (line 644)
<https://reviews.apache.org/r/49882/#comment207053>

    Somehow I feel we should have a better name for this function since we are escaping single
quote and \ as well. 
    
    Maybe just the orignal one escapeHiveCommand()?


- Aihua Xu


On July 11, 2016, 9:36 a.m., Peter Vary wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/49882/
> -----------------------------------------------------------
> 
> (Updated July 11, 2016, 9:36 a.m.)
> 
> 
> Review request for hive, Aihua Xu, Sergio Pena, Szehon Ho, and Vihang Karajgaonkar.
> 
> 
> Bugs: HIVE-14146
>     https://issues.apache.org/jira/browse/HIVE-14146
> 
> 
> Repository: hive-git
> 
> 
> Description
> -------
> 
> The patch contains:
> - MetaDataFormatUtils changes - to escape the \n in index, and column comments (table
comments are already handled)
> - TextMetaDataFormatter changes - to escape the \n in database comments
> - DDLTask chages - to escape \n in show create table result
> - New query test, to test the escaping
> 
> 
> Diffs
> -----
> 
>   common/src/java/org/apache/hive/common/util/HiveStringUtils.java 72c3fa9 
>   ql/src/java/org/apache/hadoop/hive/ql/exec/DDLTask.java bb43950 
>   ql/src/java/org/apache/hadoop/hive/ql/metadata/formatting/MetaDataFormatUtils.java
03803bb 
>   ql/src/java/org/apache/hadoop/hive/ql/metadata/formatting/TextMetaDataFormatter.java
47d67b1 
>   ql/src/test/queries/clientpositive/escape_comments.q PRE-CREATION 
>   ql/src/test/results/clientpositive/escape_comments.q.out PRE-CREATION 
> 
> Diff: https://reviews.apache.org/r/49882/diff/
> 
> 
> Testing
> -------
> 
> New unit test and manually
> 
> 
> Thanks,
> 
> Peter Vary
> 
>


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message