You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hive.apache.org by br...@apache.org on 2013/09/25 20:47:00 UTC
svn commit: r1526260 - in /hive/trunk/hcatalog/core/src/main/java/org/apache:
hcatalog/common/HCatUtil.java hive/hcatalog/common/HCatUtil.java
Author: brock
Date: Wed Sep 25 18:47:00 2013
New Revision: 1526260
URL: http://svn.apache.org/r1526260
Log:
HIVE-5360 - fix hcatalog checkstyle issue introduced in HIVE-5223 (Thejas M Nair via Brock Noland)
Modified:
hive/trunk/hcatalog/core/src/main/java/org/apache/hcatalog/common/HCatUtil.java
hive/trunk/hcatalog/core/src/main/java/org/apache/hive/hcatalog/common/HCatUtil.java
Modified: hive/trunk/hcatalog/core/src/main/java/org/apache/hcatalog/common/HCatUtil.java
URL: http://svn.apache.org/viewvc/hive/trunk/hcatalog/core/src/main/java/org/apache/hcatalog/common/HCatUtil.java?rev=1526260&r1=1526259&r2=1526260&view=diff
==============================================================================
--- hive/trunk/hcatalog/core/src/main/java/org/apache/hcatalog/common/HCatUtil.java (original)
+++ hive/trunk/hcatalog/core/src/main/java/org/apache/hcatalog/common/HCatUtil.java Wed Sep 25 18:47:00 2013
@@ -450,10 +450,10 @@ public class HCatUtil {
public static Map<String, String>
getInputJobProperties(HCatStorageHandler storageHandler,
InputJobInfo inputJobInfo) {
- Properties props = inputJobInfo.getTableInfo().getStorerInfo().getProperties();
- props.put(serdeConstants.SERIALIZATION_LIB,storageHandler.getSerDeClass().getName());
- TableDesc tableDesc = new TableDesc(storageHandler.getInputFormatClass(),
- storageHandler.getOutputFormatClass(),props);
+ Properties props = inputJobInfo.getTableInfo().getStorerInfo().getProperties();
+ props.put(serdeConstants.SERIALIZATION_LIB,storageHandler.getSerDeClass().getName());
+ TableDesc tableDesc = new TableDesc(storageHandler.getInputFormatClass(),
+ storageHandler.getOutputFormatClass(),props);
if (tableDesc.getJobProperties() == null) {
tableDesc.setJobProperties(new HashMap<String, String>());
}
Modified: hive/trunk/hcatalog/core/src/main/java/org/apache/hive/hcatalog/common/HCatUtil.java
URL: http://svn.apache.org/viewvc/hive/trunk/hcatalog/core/src/main/java/org/apache/hive/hcatalog/common/HCatUtil.java?rev=1526260&r1=1526259&r2=1526260&view=diff
==============================================================================
--- hive/trunk/hcatalog/core/src/main/java/org/apache/hive/hcatalog/common/HCatUtil.java (original)
+++ hive/trunk/hcatalog/core/src/main/java/org/apache/hive/hcatalog/common/HCatUtil.java Wed Sep 25 18:47:00 2013
@@ -483,9 +483,9 @@ public class HCatUtil {
OutputJobInfo outputJobInfo) {
//TODO replace IgnoreKeyTextOutputFormat with a
//HiveOutputFormatWrapper in StorageHandler
- Properties props = outputJobInfo.getTableInfo().getStorerInfo().getProperties();
- props.put(serdeConstants.SERIALIZATION_LIB,storageHandler.getSerDeClass().getName());
- TableDesc tableDesc = new TableDesc(storageHandler.getInputFormatClass(),
+ Properties props = outputJobInfo.getTableInfo().getStorerInfo().getProperties();
+ props.put(serdeConstants.SERIALIZATION_LIB,storageHandler.getSerDeClass().getName());
+ TableDesc tableDesc = new TableDesc(storageHandler.getInputFormatClass(),
IgnoreKeyTextOutputFormat.class,props);
if (tableDesc.getJobProperties() == null)
tableDesc.setJobProperties(new HashMap<String, String>());