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


Fix it, then Ship it!




Overall, LGTM.


beeline/src/java/org/apache/hive/beeline/HiveSchemaTool.java
Line 784 (original), 759-760 (patched)
<https://reviews.apache.org/r/59654/#comment249752>

    Previously, `baseDir.getParent()` was used in when constructing 
`schemaFile`, but it seems that it is no longer the case.
    
    Probably safer to use the `File(String, String)` constructor instead of 
building up the file name using `File.separatorChar` since we don't know what 
metaStoreSchemaInfo.getMetaStoreScriptDir() and 
metaStoreSchemaInfo.generateInitFileName(version) return.


- Sahil Takiar


On May 30, 2017, 9:43 p.m., Vihang Karajgaonkar wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/59654/
> -----------------------------------------------------------
> 
> (Updated May 30, 2017, 9:43 p.m.)
> 
> 
> Review request for hive, Naveen Gangam, Sergio Pena, and Sahil Takiar.
> 
> 
> Bugs: HIVE-16771
>     https://issues.apache.org/jira/browse/HIVE-16771
> 
> 
> Repository: hive-git
> 
> 
> Description
> -------
> 
> HIVE-16771 : Schematool should use MetastoreSchemaInfo to get the metastore 
> schema version from database
> 
> 
> Diffs
> -----
> 
>   beeline/src/java/org/apache/hive/beeline/HiveSchemaHelper.java 
> a4ecc089f8a19bd94af2eae17e534cc6e8d2a9ca 
>   beeline/src/java/org/apache/hive/beeline/HiveSchemaTool.java 
> f312e46d755fc843369167af6d4da3de7dbe4a61 
>   beeline/src/test/org/apache/hive/beeline/TestHiveSchemaTool.java 
> 716bce7289b6e7c4d4bcea38b06f591a9ad9c098 
>   itests/hive-unit/src/test/java/org/apache/hive/beeline/TestSchemaTool.java 
> d1658f7bb2e5306b6b5954165759a217d1ba235c 
>   
> metastore/src/java/org/apache/hadoop/hive/metastore/IMetaStoreSchemaInfo.java 
> d6627433cb0f3f1c8fe868b3748fd754a7bff821 
>   
> metastore/src/java/org/apache/hadoop/hive/metastore/MetaStoreSchemaInfo.java 
> 6bddb8e864d26a6cb7e2fe9b8b8becf427779944 
> 
> 
> Diff: https://reviews.apache.org/r/59654/diff/1/
> 
> 
> Testing
> -------
> 
> 
> Thanks,
> 
> Vihang Karajgaonkar
> 
>

Reply via email to