if ((getInputFileFormat() == null && rhs.getInputFileFormat() != null) || (getInputFileFormat() != null && (rhs.getInputFileFormat() == null || !rhs.getInputFileFormat().equals(getInputFileFormat())))) { theDiff.add(TableAttribute.INPUT_FORMAT);
@Override public String toString() { return "HCatTable [ " + "tableName=" + tableName + ", " + "dbName=" + dbName + ", " + "tableType=" + tableType + ", " + "cols=" + cols + ", " + "partCols=" + partCols + ", " + "bucketCols=" + getBucketCols() + ", " + "numBuckets=" + getNumBuckets() + ", " + "sortCols=" + getSortCols() + ", " + "inputFormat=" + getInputFileFormat() + ", " + "outputFormat=" + getOutputFileFormat() + ", " + "storageHandler=" + getStorageHandler() + ", " + "serde=" + getSerdeLib() + ", " + "tblProps=" + getTblProps() + ", " + "location=" + getLocation() + ", " + "owner=" + owner() + " ]"; }
client.createTable(tableDesc); HCatTable table1 = client.getTable(db, tableOne); assertTrue(table1.getInputFileFormat().equalsIgnoreCase( RCFileInputFormat.class.getName())); assertTrue(table1.getOutputFileFormat().equalsIgnoreCase( client.createTable(tableDesc2); HCatTable table2 = client.getTable(db, tableTwo); assertTrue("Expected TextInputFormat, but got: " + table2.getInputFileFormat(), table2.getInputFileFormat().equalsIgnoreCase(TextInputFormat.class.getName())); assertTrue(table2.getOutputFileFormat().equalsIgnoreCase( HiveIgnoreKeyTextOutputFormat.class.getName())); client.createTable(tableDesc3); HCatTable table3 = client.getTable(db, tableThree); assertTrue(table3.getInputFileFormat().equalsIgnoreCase( OrcInputFormat.class.getName())); assertTrue(table3.getOutputFileFormat().equalsIgnoreCase(
inputFileFormat(rhs.getInputFileFormat());
assertEquals("InputFormat doesn't match.", sourceTable.getInputFileFormat(), addedPartition_1.getInputFormat()); assertEquals("OutputFormat doesn't match.", sourceTable.getOutputFileFormat(), addedPartition_1.getOutputFormat()); assertEquals("SerDe doesn't match.", sourceTable.getSerdeLib(), addedPartition_1.getSerDe());
assertEquals("InputFormat doesn't match.", sourceTable.getInputFileFormat(), addedPartition_1.getInputFormat()); assertEquals("OutputFormat doesn't match.", sourceTable.getOutputFileFormat(), addedPartition_1.getOutputFormat()); assertEquals("SerDe doesn't match.", sourceTable.getSerdeLib(), addedPartition_1.getSerDe());
if ((getInputFileFormat() == null && rhs.getInputFileFormat() != null) || (getInputFileFormat() != null && (rhs.getInputFileFormat() == null || !rhs.getInputFileFormat().equals(getInputFileFormat())))) { theDiff.add(TableAttribute.INPUT_FORMAT);
if ((getInputFileFormat() == null && rhs.getInputFileFormat() != null) || (getInputFileFormat() != null && (rhs.getInputFileFormat() == null || !rhs.getInputFileFormat().equals(getInputFileFormat())))) { theDiff.add(TableAttribute.INPUT_FORMAT);
if ((getInputFileFormat() == null && rhs.getInputFileFormat() != null) || (getInputFileFormat() != null && (rhs.getInputFileFormat() == null || !rhs.getInputFileFormat().equals(getInputFileFormat())))) { theDiff.add(TableAttribute.INPUT_FORMAT);
@Override public String toString() { return "HCatTable [ " + "tableName=" + tableName + ", " + "dbName=" + dbName + ", " + "tableType=" + tableType + ", " + "cols=" + cols + ", " + "partCols=" + partCols + ", " + "bucketCols=" + getBucketCols() + ", " + "numBuckets=" + getNumBuckets() + ", " + "sortCols=" + getSortCols() + ", " + "inputFormat=" + getInputFileFormat() + ", " + "outputFormat=" + getOutputFileFormat() + ", " + "storageHandler=" + getStorageHandler() + ", " + "serde=" + getSerdeLib() + ", " + "tblProps=" + getTblProps() + ", " + "location=" + getLocation() + ", " + "owner=" + owner() + " ]"; }
@Override public String toString() { return "HCatTable [ " + "tableName=" + tableName + ", " + "dbName=" + dbName + ", " + "tableType=" + tableType + ", " + "cols=" + cols + ", " + "partCols=" + partCols + ", " + "bucketCols=" + getBucketCols() + ", " + "numBuckets=" + getNumBuckets() + ", " + "sortCols=" + getSortCols() + ", " + "inputFormat=" + getInputFileFormat() + ", " + "outputFormat=" + getOutputFileFormat() + ", " + "storageHandler=" + getStorageHandler() + ", " + "serde=" + getSerdeLib() + ", " + "tblProps=" + getTblProps() + ", " + "location=" + getLocation() + ", " + "owner=" + owner() + " ]"; }
inputFileFormat(rhs.getInputFileFormat());
inputFileFormat(rhs.getInputFileFormat());
inputFileFormat(rhs.getInputFileFormat());