diff --git orc/src/java/org/apache/orc/impl/ConvertTreeReaderFactory.java orc/src/java/org/apache/orc/impl/ConvertTreeReaderFactory.java index 3ba56f7..8f9108b 100644 --- orc/src/java/org/apache/orc/impl/ConvertTreeReaderFactory.java +++ orc/src/java/org/apache/orc/impl/ConvertTreeReaderFactory.java @@ -35,8 +35,6 @@ import org.apache.hadoop.hive.ql.util.TimestampUtils; import org.apache.hadoop.hive.serde2.io.DateWritable; import org.apache.hadoop.hive.serde2.io.HiveDecimalWritable; -import org.apache.hadoop.io.BytesWritable; -import org.apache.hadoop.io.FloatWritable; import org.apache.orc.OrcProto; import org.apache.orc.TypeDescription; import org.apache.orc.TypeDescription.Category; @@ -259,7 +257,7 @@ protected String stringFromBytesColumnVectorEntry( bytesColVector.vector[elementNum], bytesColVector.start[elementNum], bytesColVector.length[elementNum], StandardCharsets.UTF_8); - + return string; } @@ -336,20 +334,44 @@ public void convertVector(ColumnVector fromColVector, } } - public long downCastAnyInteger(long input, TypeDescription readerType) { - switch (readerType.getCategory()) { + public void downCastAnyInteger(LongColumnVector longColVector, int elementNum, + TypeDescription readerType) { + downCastAnyInteger(longColVector, elementNum, longColVector.vector[elementNum], readerType); + } + + public void downCastAnyInteger(LongColumnVector longColVector, int elementNum, long inputLong, + TypeDescription readerType) { + long[] vector = longColVector.vector; + long outputLong; + Category readerCategory = readerType.getCategory(); + switch (readerCategory) { case BOOLEAN: - return input == 0 ? 0 : 1; + // No data loss for boolean. + vector[elementNum] = inputLong == 0 ? 0 : 1; + return; case BYTE: - return (byte) input; + outputLong = (byte) inputLong; + break; case SHORT: - return (short) input; + outputLong = (short) inputLong; + break; case INT: - return (int) input; + outputLong = (int) inputLong; + break; case LONG: - return input; + // No data loss for long. + vector[elementNum] = inputLong; + return; default: - throw new RuntimeException("Unexpected type kind " + readerType.getCategory().name()); + throw new RuntimeException("Unexpected type kind " + readerCategory.name()); + } + + if (outputLong != inputLong) { + // Data loss. + longColVector.isNull[elementNum] = true; + longColVector.noNulls = false; + } else { + vector[elementNum] = outputLong; } } @@ -439,25 +461,22 @@ public void nextVector(ColumnVector previousVector, anyIntegerAsLongTreeReader.nextVector(previousVector, isNull, batchSize); LongColumnVector resultColVector = (LongColumnVector) previousVector; if (downCastNeeded) { - long[] resultVector = resultColVector.vector; if (resultColVector.isRepeating) { if (resultColVector.noNulls || !resultColVector.isNull[0]) { - resultVector[0] = downCastAnyInteger(resultVector[0], readerType); + downCastAnyInteger(resultColVector, 0, readerType); } else { - resultColVector.noNulls = false; - resultColVector.isNull[0] = true; + // Result remains null. } } else if (resultColVector.noNulls){ for (int i = 0; i < batchSize; i++) { - resultVector[i] = downCastAnyInteger(resultVector[i], readerType); + downCastAnyInteger(resultColVector, i, readerType); } } else { for (int i = 0; i < batchSize; i++) { if (!resultColVector.isNull[i]) { - resultVector[i] = downCastAnyInteger(resultVector[i], readerType); + downCastAnyInteger(resultColVector, i, readerType); } else { - resultColVector.noNulls = false; - resultColVector.isNull[i] = true; + // Result remains null. } } } @@ -470,7 +489,6 @@ public void nextVector(ColumnVector previousVector, private FloatTreeReader floatTreeReader; private final TypeDescription readerType; - private FloatWritable floatResult; private DoubleColumnVector doubleColVector; private LongColumnVector longColVector; @@ -480,15 +498,20 @@ public void nextVector(ColumnVector previousVector, this.readerType = readerType; floatTreeReader = new FloatTreeReader(columnId); setConvertTreeReader(floatTreeReader); - floatResult = new FloatWritable(); } + private static float FLOAT_MAX_LONG = (float) Long.MAX_VALUE; + private static float FLOAT_MIN_LONG = (float) Long.MIN_VALUE; + @Override public void setConvertVectorElement(int elementNum) throws IOException { float floatValue = (float) doubleColVector.vector[elementNum]; - longColVector.vector[elementNum] = - downCastAnyInteger( - (long) floatValue, readerType); + if (floatValue > FLOAT_MAX_LONG || floatValue < FLOAT_MIN_LONG) { + longColVector.isNull[elementNum] = true; + longColVector.noNulls = false; + } else { + downCastAnyInteger(longColVector, elementNum, (long) floatValue, readerType); + } } @Override @@ -523,11 +546,18 @@ public void nextVector(ColumnVector previousVector, setConvertTreeReader(doubleTreeReader); } + private static double DOUBLE_MAX_LONG = (double) Long.MAX_VALUE; + private static double DOUBLE_MIN_LONG = (double) Long.MIN_VALUE; + @Override public void setConvertVectorElement(int elementNum) throws IOException { - longColVector.vector[elementNum] = - downCastAnyInteger( - (long) doubleColVector.vector[elementNum], readerType); + double doubleValue = doubleColVector.vector[elementNum]; + if (doubleValue > DOUBLE_MAX_LONG || doubleValue < DOUBLE_MIN_LONG) { + longColVector.isNull[elementNum] = true; + longColVector.noNulls = false; + } else { + downCastAnyInteger(longColVector, elementNum, (long) doubleValue, readerType); + } } @Override @@ -553,7 +583,6 @@ public void nextVector(ColumnVector previousVector, private final int precision; private final int scale; private final TypeDescription readerType; - private HiveDecimalWritable hiveDecimalResult; private DecimalColumnVector decimalColVector; private LongColumnVector longColVector; @@ -565,15 +594,21 @@ public void nextVector(ColumnVector previousVector, this.readerType = readerType; decimalTreeReader = new DecimalTreeReader(columnId, precision, scale); setConvertTreeReader(decimalTreeReader); - hiveDecimalResult = new HiveDecimalWritable(); } + private static HiveDecimal DECIMAL_MAX_LONG = HiveDecimal.create(Long.MAX_VALUE); + private static HiveDecimal DECIMAL_MIN_LONG = HiveDecimal.create(Long.MIN_VALUE); + @Override public void setConvertVectorElement(int elementNum) throws IOException { - longColVector.vector[elementNum] = - downCastAnyInteger( - decimalColVector.vector[elementNum].getHiveDecimal().longValue(), - readerType); + HiveDecimal decimalValue = decimalColVector.vector[elementNum].getHiveDecimal(); + if (decimalValue.compareTo(DECIMAL_MAX_LONG) > 0 || + decimalValue.compareTo(DECIMAL_MIN_LONG) < 0) { + longColVector.isNull[elementNum] = true; + longColVector.noNulls = false; + } else { + downCastAnyInteger(longColVector, elementNum, decimalValue.longValue(), readerType); + } } @Override @@ -596,7 +631,6 @@ public void nextVector(ColumnVector previousVector, private TreeReader stringGroupTreeReader; - private final TypeDescription fileType; private final TypeDescription readerType; private BytesColumnVector bytesColVector; private LongColumnVector longColVector; @@ -604,7 +638,6 @@ public void nextVector(ColumnVector previousVector, AnyIntegerFromStringGroupTreeReader(int columnId, TypeDescription fileType, TypeDescription readerType) throws IOException { super(columnId); - this.fileType = fileType; this.readerType = readerType; stringGroupTreeReader = getStringGroupTreeReader(columnId, fileType); setConvertTreeReader(stringGroupTreeReader); @@ -615,8 +648,7 @@ public void setConvertVectorElement(int elementNum) throws IOException { String string = stringFromBytesColumnVectorEntry(bytesColVector, elementNum); long longValue = parseLongFromString(string); if (!getIsParseError()) { - longColVector.vector[elementNum] = - downCastAnyInteger(longValue, readerType); + downCastAnyInteger(longColVector, elementNum, longValue, readerType); } else { longColVector.noNulls = false; longColVector.isNull[elementNum] = true; @@ -660,8 +692,7 @@ public void setConvertVectorElement(int elementNum) throws IOException { // Use TimestampWritable's getSeconds. long longValue = TimestampUtils.millisToSeconds( timestampColVector.asScratchTimestamp(elementNum).getTime()); - longColVector.vector[elementNum] = - downCastAnyInteger(longValue, readerType); + downCastAnyInteger(longColVector, elementNum, longValue, readerType); } @Override @@ -745,8 +776,7 @@ public void nextVector(ColumnVector previousVector, if (resultColVector.noNulls || !resultColVector.isNull[0]) { resultVector[0] = (float) resultVector[0]; } else { - resultColVector.noNulls = false; - resultColVector.isNull[0] = true; + // Remains null. } } else if (resultColVector.noNulls){ for (int i = 0; i < batchSize; i++) { @@ -757,8 +787,7 @@ public void nextVector(ColumnVector previousVector, if (!resultColVector.isNull[i]) { resultVector[i] = (float) resultVector[i]; } else { - resultColVector.noNulls = false; - resultColVector.isNull[i] = true; + // Remains null. } } } @@ -771,8 +800,6 @@ public void nextVector(ColumnVector previousVector, private final int precision; private final int scale; - private final TypeDescription readerType; - private HiveDecimalWritable hiveDecimalResult; private DecimalColumnVector decimalColVector; private DoubleColumnVector doubleColVector; @@ -781,10 +808,8 @@ public void nextVector(ColumnVector previousVector, super(columnId); this.precision = fileType.getPrecision(); this.scale = fileType.getScale(); - this.readerType = readerType; decimalTreeReader = new DecimalTreeReader(columnId, precision, scale); setConvertTreeReader(decimalTreeReader); - hiveDecimalResult = new HiveDecimalWritable(); } @Override @@ -813,14 +838,12 @@ public void nextVector(ColumnVector previousVector, private TreeReader stringGroupTreeReader; - private final TypeDescription fileType; private BytesColumnVector bytesColVector; private DoubleColumnVector doubleColVector; FloatFromStringGroupTreeReader(int columnId, TypeDescription fileType) throws IOException { super(columnId); - this.fileType = fileType; stringGroupTreeReader = getStringGroupTreeReader(columnId, fileType); setConvertTreeReader(stringGroupTreeReader); } @@ -858,14 +881,11 @@ public void nextVector(ColumnVector previousVector, private TimestampTreeReader timestampTreeReader; - private final TypeDescription readerType; private TimestampColumnVector timestampColVector; private DoubleColumnVector doubleColVector; - FloatFromTimestampTreeReader(int columnId, TypeDescription readerType, - boolean skipCorrupt) throws IOException { + FloatFromTimestampTreeReader(int columnId, boolean skipCorrupt) throws IOException { super(columnId); - this.readerType = readerType; timestampTreeReader = new TimestampTreeReader(columnId, skipCorrupt); setConvertTreeReader(timestampTreeReader); } @@ -940,13 +960,10 @@ public void nextVector(ColumnVector previousVector, private FloatTreeReader floatTreeReader; - private FloatWritable floatResult; - DoubleFromFloatTreeReader(int columnId) throws IOException { super(columnId); floatTreeReader = new FloatTreeReader(columnId); setConvertTreeReader(floatTreeReader); - floatResult = new FloatWritable(); } @Override @@ -964,20 +981,15 @@ public void nextVector(ColumnVector previousVector, private final int precision; private final int scale; - private final TypeDescription readerType; - private HiveDecimalWritable hiveDecimalResult; private DecimalColumnVector decimalColVector; private DoubleColumnVector doubleColVector; - DoubleFromDecimalTreeReader(int columnId, TypeDescription fileType, - TypeDescription readerType) throws IOException { + DoubleFromDecimalTreeReader(int columnId, TypeDescription fileType) throws IOException { super(columnId); this.precision = fileType.getPrecision(); this.scale = fileType.getScale(); - this.readerType = readerType; decimalTreeReader = new DecimalTreeReader(columnId, precision, scale); setConvertTreeReader(decimalTreeReader); - hiveDecimalResult = new HiveDecimalWritable(); } @Override @@ -1006,14 +1018,12 @@ public void nextVector(ColumnVector previousVector, private TreeReader stringGroupTreeReader; - private final TypeDescription fileType; private BytesColumnVector bytesColVector; private DoubleColumnVector doubleColVector; DoubleFromStringGroupTreeReader(int columnId, TypeDescription fileType) throws IOException { super(columnId); - this.fileType = fileType; stringGroupTreeReader = getStringGroupTreeReader(columnId, fileType); setConvertTreeReader(stringGroupTreeReader); } @@ -1050,14 +1060,11 @@ public void nextVector(ColumnVector previousVector, private TimestampTreeReader timestampTreeReader; - private final TypeDescription readerType; private TimestampColumnVector timestampColVector; private DoubleColumnVector doubleColVector; - DoubleFromTimestampTreeReader(int columnId, TypeDescription readerType, - boolean skipCorrupt) throws IOException { + DoubleFromTimestampTreeReader(int columnId, boolean skipCorrupt) throws IOException { super(columnId); - this.readerType = readerType; timestampTreeReader = new TimestampTreeReader(columnId, skipCorrupt); setConvertTreeReader(timestampTreeReader); } @@ -1088,16 +1095,12 @@ public void nextVector(ColumnVector previousVector, private AnyIntegerTreeReader anyIntegerAsLongTreeReader; - private int precision; - private int scale; private LongColumnVector longColVector; private DecimalColumnVector decimalColVector; - DecimalFromAnyIntegerTreeReader(int columnId, TypeDescription fileType, - TypeDescription readerType, boolean skipCorrupt) throws IOException { + DecimalFromAnyIntegerTreeReader(int columnId, TypeDescription fileType, boolean skipCorrupt) + throws IOException { super(columnId); - this.precision = readerType.getPrecision(); - this.scale = readerType.getScale(); anyIntegerAsLongTreeReader = new AnyIntegerTreeReader(columnId, fileType, skipCorrupt); setConvertTreeReader(anyIntegerAsLongTreeReader); @@ -1106,8 +1109,8 @@ public void nextVector(ColumnVector previousVector, @Override public void setConvertVectorElement(int elementNum) { long longValue = longColVector.vector[elementNum]; - HiveDecimalWritable hiveDecimalWritable = - new HiveDecimalWritable(longValue); + HiveDecimalWritable hiveDecimalWritable = new HiveDecimalWritable(longValue); + // The DecimalColumnVector will enforce precision and scale and set the entry to null when out of bounds. decimalColVector.set(elementNum, hiveDecimalWritable); } @@ -1131,30 +1134,25 @@ public void nextVector(ColumnVector previousVector, private FloatTreeReader floatTreeReader; - private int precision; - private int scale; - private FloatWritable floatResult; private DoubleColumnVector doubleColVector; private DecimalColumnVector decimalColVector; DecimalFromFloatTreeReader(int columnId, TypeDescription readerType) throws IOException { super(columnId); - this.precision = readerType.getPrecision(); - this.scale = readerType.getScale(); floatTreeReader = new FloatTreeReader(columnId); setConvertTreeReader(floatTreeReader); - floatResult = new FloatWritable(); } @Override public void setConvertVectorElement(int elementNum) throws IOException { float floatValue = (float) doubleColVector.vector[elementNum]; if (!Float.isNaN(floatValue)) { - HiveDecimal value = + HiveDecimal decimalValue = HiveDecimal.create(Float.toString(floatValue)); - if (value != null) { - decimalColVector.set(elementNum, value); + if (decimalValue != null) { + // The DecimalColumnVector will enforce precision and scale and set the entry to null when out of bounds. + decimalColVector.set(elementNum, decimalValue); } else { decimalColVector.noNulls = false; decimalColVector.isNull[elementNum] = true; @@ -1227,14 +1225,12 @@ public void nextVector(ColumnVector previousVector, private TreeReader stringGroupTreeReader; - private final TypeDescription fileType; private BytesColumnVector bytesColVector; private DecimalColumnVector decimalColVector; DecimalFromStringGroupTreeReader(int columnId, TypeDescription fileType, TypeDescription readerType) throws IOException { super(columnId); - this.fileType = fileType; stringGroupTreeReader = getStringGroupTreeReader(columnId, fileType); setConvertTreeReader(stringGroupTreeReader); } @@ -1244,6 +1240,7 @@ public void setConvertVectorElement(int elementNum) throws IOException { String string = stringFromBytesColumnVectorEntry(bytesColVector, elementNum); HiveDecimal value = parseDecimalFromString(string); if (value != null) { + // The DecimalColumnVector will enforce precision and scale and set the entry to null when out of bounds. decimalColVector.set(elementNum, value); } else { decimalColVector.noNulls = false; @@ -1271,18 +1268,11 @@ public void nextVector(ColumnVector previousVector, private TimestampTreeReader timestampTreeReader; - private final TypeDescription readerType; private TimestampColumnVector timestampColVector; - private int precision; - private int scale; private DecimalColumnVector decimalColVector; - DecimalFromTimestampTreeReader(int columnId, TypeDescription readerType, - boolean skipCorrupt) throws IOException { + DecimalFromTimestampTreeReader(int columnId, boolean skipCorrupt) throws IOException { super(columnId); - this.readerType = readerType; - this.precision = readerType.getPrecision(); - this.scale = readerType.getScale(); timestampTreeReader = new TimestampTreeReader(columnId, skipCorrupt); setConvertTreeReader(timestampTreeReader); } @@ -1293,6 +1283,7 @@ public void setConvertVectorElement(int elementNum) throws IOException { timestampColVector.asScratchTimestamp(elementNum)); HiveDecimal value = HiveDecimal.create(Double.toString(doubleValue)); if (value != null) { + // The DecimalColumnVector will enforce precision and scale and set the entry to null when out of bounds. decimalColVector.set(elementNum, value); } else { decimalColVector.noNulls = false; @@ -1320,7 +1311,6 @@ public void nextVector(ColumnVector previousVector, private AnyIntegerTreeReader anyIntegerAsLongTreeReader; - private final TypeDescription fileType; private final TypeDescription readerType; private LongColumnVector longColVector; private BytesColumnVector bytesColVector; @@ -1328,7 +1318,6 @@ public void nextVector(ColumnVector previousVector, StringGroupFromAnyIntegerTreeReader(int columnId, TypeDescription fileType, TypeDescription readerType, boolean skipCorrupt) throws IOException { super(columnId); - this.fileType = fileType; this.readerType = readerType; anyIntegerAsLongTreeReader = new AnyIntegerTreeReader(columnId, fileType, skipCorrupt); @@ -1364,7 +1353,6 @@ public void nextVector(ColumnVector previousVector, private FloatTreeReader floatTreeReader; private final TypeDescription readerType; - private FloatWritable floatResult; private DoubleColumnVector doubleColVector; private BytesColumnVector bytesColVector; @@ -1375,7 +1363,6 @@ public void nextVector(ColumnVector previousVector, this.readerType = readerType; floatTreeReader = new FloatTreeReader(columnId); setConvertTreeReader(floatTreeReader); - floatResult = new FloatWritable(); } @Override @@ -1544,7 +1531,6 @@ public void nextVector(ColumnVector previousVector, private final TypeDescription readerType; private LongColumnVector longColVector; private BytesColumnVector bytesColVector; - private DateWritable dateWritableResult; private Date date; StringGroupFromDateTreeReader(int columnId, TypeDescription readerType, @@ -1553,7 +1539,6 @@ public void nextVector(ColumnVector previousVector, this.readerType = readerType; dateTreeReader = new DateTreeReader(columnId); setConvertTreeReader(dateTreeReader); - dateWritableResult = new DateWritable(); date = new Date(0); } @@ -1585,13 +1570,11 @@ public void nextVector(ColumnVector previousVector, private TreeReader stringGroupTreeReader; - private final TypeDescription fileType; private final TypeDescription readerType; StringGroupFromStringGroupTreeReader(int columnId, TypeDescription fileType, TypeDescription readerType) throws IOException { super(columnId); - this.fileType = fileType; this.readerType = readerType; stringGroupTreeReader = getStringGroupTreeReader(columnId, fileType); setConvertTreeReader(stringGroupTreeReader); @@ -1609,8 +1592,7 @@ public void nextVector(ColumnVector previousVector, if (resultColVector.noNulls || !resultColVector.isNull[0]) { convertStringGroupVectorElement(resultColVector, 0, readerType); } else { - resultColVector.noNulls = false; - resultColVector.isNull[0] = true; + // Remains null. } } else if (resultColVector.noNulls){ for (int i = 0; i < batchSize; i++) { @@ -1621,8 +1603,7 @@ public void nextVector(ColumnVector previousVector, if (!resultColVector.isNull[i]) { convertStringGroupVectorElement(resultColVector, i, readerType); } else { - resultColVector.noNulls = false; - resultColVector.isNull[i] = true; + // Remains null. } } } @@ -1634,7 +1615,6 @@ public void nextVector(ColumnVector previousVector, private BinaryTreeReader binaryTreeReader; private final TypeDescription readerType; - private BytesWritable binaryWritableResult; private BytesColumnVector inBytesColVector; private BytesColumnVector outBytesColVector; @@ -1644,7 +1624,6 @@ public void nextVector(ColumnVector previousVector, this.readerType = readerType; binaryTreeReader = new BinaryTreeReader(columnId); setConvertTreeReader(binaryTreeReader); - binaryWritableResult = new BytesWritable(); } @Override @@ -1725,7 +1704,6 @@ public void nextVector(ColumnVector previousVector, private FloatTreeReader floatTreeReader; - private FloatWritable floatResult; private DoubleColumnVector doubleColVector; private TimestampColumnVector timestampColVector; @@ -1734,14 +1712,14 @@ public void nextVector(ColumnVector previousVector, super(columnId); floatTreeReader = new FloatTreeReader(columnId); setConvertTreeReader(floatTreeReader); - floatResult = new FloatWritable(); } @Override public void setConvertVectorElement(int elementNum) { float floatValue = (float) doubleColVector.vector[elementNum]; - timestampColVector.set(elementNum, - TimestampUtils.doubleToTimestamp(floatValue)); + Timestamp timestampValue = TimestampUtils.doubleToTimestamp(floatValue); + // The TimestampColumnVector will set the entry to null when a null timestamp is passed in. + timestampColVector.set(elementNum, timestampValue); } @Override @@ -1777,8 +1755,9 @@ public void nextVector(ColumnVector previousVector, @Override public void setConvertVectorElement(int elementNum) { double doubleValue = doubleColVector.vector[elementNum]; - timestampColVector.set(elementNum, - TimestampUtils.doubleToTimestamp(doubleValue)); + Timestamp timestampValue = TimestampUtils.doubleToTimestamp(doubleValue); + // The TimestampColumnVector will set the entry to null when a null timestamp is passed in. + timestampColVector.set(elementNum, timestampValue); } @Override @@ -1803,7 +1782,6 @@ public void nextVector(ColumnVector previousVector, private final int precision; private final int scale; - private HiveDecimalWritable hiveDecimalResult; private DecimalColumnVector decimalColVector; private TimestampColumnVector timestampColVector; @@ -1814,14 +1792,14 @@ public void nextVector(ColumnVector previousVector, this.scale = fileType.getScale(); decimalTreeReader = new DecimalTreeReader(columnId, precision, scale); setConvertTreeReader(decimalTreeReader); - hiveDecimalResult = new HiveDecimalWritable(); } @Override public void setConvertVectorElement(int elementNum) { Timestamp timestampValue = - TimestampUtils.decimalToTimestamp( - decimalColVector.vector[elementNum].getHiveDecimal()); + TimestampUtils.decimalToTimestamp( + decimalColVector.vector[elementNum].getHiveDecimal()); + // The TimestampColumnVector will set the entry to null when a null timestamp is passed in. timestampColVector.set(elementNum, timestampValue); } @@ -1845,14 +1823,12 @@ public void nextVector(ColumnVector previousVector, private TreeReader stringGroupTreeReader; - private final TypeDescription fileType; private BytesColumnVector bytesColVector; private TimestampColumnVector timestampColVector; TimestampFromStringGroupTreeReader(int columnId, TypeDescription fileType) throws IOException { super(columnId); - this.fileType = fileType; stringGroupTreeReader = getStringGroupTreeReader(columnId, fileType); setConvertTreeReader(stringGroupTreeReader); } @@ -1890,7 +1866,6 @@ public void nextVector(ColumnVector previousVector, private DateTreeReader dateTreeReader; - private DateWritable doubleResult; private LongColumnVector longColVector; private TimestampColumnVector timestampColVector; @@ -1899,7 +1874,6 @@ public void nextVector(ColumnVector previousVector, super(columnId); dateTreeReader = new DateTreeReader(columnId); setConvertTreeReader(dateTreeReader); - doubleResult = new DateWritable(); } @Override @@ -1929,14 +1903,12 @@ public void nextVector(ColumnVector previousVector, private TreeReader stringGroupTreeReader; - private final TypeDescription fileType; private BytesColumnVector bytesColVector; private LongColumnVector longColVector; DateFromStringGroupTreeReader(int columnId, TypeDescription fileType) throws IOException { super(columnId); - this.fileType = fileType; stringGroupTreeReader = getStringGroupTreeReader(columnId, fileType); setConvertTreeReader(stringGroupTreeReader); } @@ -1974,14 +1946,11 @@ public void nextVector(ColumnVector previousVector, private TimestampTreeReader timestampTreeReader; - private final TypeDescription readerType; private TimestampColumnVector timestampColVector; private LongColumnVector longColVector; - DateFromTimestampTreeReader(int columnId, TypeDescription readerType, - boolean skipCorrupt) throws IOException { + DateFromTimestampTreeReader(int columnId, boolean skipCorrupt) throws IOException { super(columnId); - this.readerType = readerType; timestampTreeReader = new TimestampTreeReader(columnId, skipCorrupt); setConvertTreeReader(timestampTreeReader); } @@ -2014,12 +1983,9 @@ public void nextVector(ColumnVector previousVector, private TreeReader stringGroupTreeReader; - private final TypeDescription fileType; - BinaryFromStringGroupTreeReader(int columnId, TypeDescription fileType) throws IOException { super(columnId); - this.fileType = fileType; stringGroupTreeReader = getStringGroupTreeReader(columnId, fileType); setConvertTreeReader(stringGroupTreeReader); } @@ -2064,7 +2030,7 @@ private static TreeReader createAnyIntegerConvertTreeReader(int columnId, skipCorrupt); case DECIMAL: - return new DecimalFromAnyIntegerTreeReader(columnId, fileType, readerType, skipCorrupt); + return new DecimalFromAnyIntegerTreeReader(columnId, fileType, skipCorrupt); case STRING: case CHAR: @@ -2208,7 +2174,7 @@ private static TreeReader createDecimalConvertTreeReader(int columnId, return new FloatFromDecimalTreeReader(columnId, fileType, readerType); case DOUBLE: - return new DoubleFromDecimalTreeReader(columnId, fileType, readerType); + return new DoubleFromDecimalTreeReader(columnId, fileType); case STRING: case CHAR: @@ -2424,13 +2390,13 @@ private static TreeReader createTimestampConvertTreeReader(int columnId, return new AnyIntegerFromTimestampTreeReader(columnId, readerType, skipCorrupt); case FLOAT: - return new FloatFromTimestampTreeReader(columnId, readerType, skipCorrupt); + return new FloatFromTimestampTreeReader(columnId, skipCorrupt); case DOUBLE: - return new DoubleFromTimestampTreeReader(columnId, readerType, skipCorrupt); + return new DoubleFromTimestampTreeReader(columnId, skipCorrupt); case DECIMAL: - return new DecimalFromTimestampTreeReader(columnId, readerType, skipCorrupt); + return new DecimalFromTimestampTreeReader(columnId, skipCorrupt); case STRING: case CHAR: @@ -2442,7 +2408,7 @@ private static TreeReader createTimestampConvertTreeReader(int columnId, readerType.getCategory() + " to self needed"); case DATE: - return new DateFromTimestampTreeReader(columnId, readerType, skipCorrupt); + return new DateFromTimestampTreeReader(columnId, skipCorrupt); // Not currently supported conversion(s): case BINARY: @@ -2599,11 +2565,11 @@ private static TreeReader createBinaryConvertTreeReader(int columnId, * StringGroupFromFloatTreeReader (written) * StringGroupFromDoubleTreeReader (written) * StringGroupFromDecimalTreeReader (written) - * + * * String from Char/Varchar conversion * Char from String/Varchar conversion * Varchar from String/Char conversion - * + * * StringGroupFromTimestampTreeReader (written) * StringGroupFromDateTreeReader (written) * StringGroupFromBinaryTreeReader ***** @@ -2621,7 +2587,7 @@ private static TreeReader createBinaryConvertTreeReader(int columnId, * TimestampFromDecimalTreeeReader (written) * TimestampFromStringGroupTreeReader (written) * TimestampFromDateTreeReader - * + * * * To DATE: * Convert from (STRING, CHAR, VARCHAR) using string conversion. @@ -2751,7 +2717,7 @@ public static boolean canConvert(TypeDescription fileType, TypeDescription reade // Fall through. } - // Now look for the few cases we don't convert from + // Now look for the few cases we don't convert from switch (fileType.getCategory()) { case BOOLEAN: @@ -2770,8 +2736,8 @@ public static boolean canConvert(TypeDescription fileType, TypeDescription reade default: return true; } - - + + case STRING: case CHAR: case VARCHAR: @@ -2807,7 +2773,7 @@ public static boolean canConvert(TypeDescription fileType, TypeDescription reade default: return true; } - + case BINARY: switch (readerType.getCategory()) { // Not currently supported conversion(s): diff --git ql/src/test/queries/clientpositive/schema_evol_orc_nonvec_mapwork_part_all_primitive.q ql/src/test/queries/clientpositive/schema_evol_orc_nonvec_mapwork_part_all_primitive.q index 2d49d7b..3bf4d90 100644 --- ql/src/test/queries/clientpositive/schema_evol_orc_nonvec_mapwork_part_all_primitive.q +++ ql/src/test/queries/clientpositive/schema_evol_orc_nonvec_mapwork_part_all_primitive.q @@ -52,14 +52,16 @@ drop table part_change_various_various_boolean; -- -- SUBSECTION: ALTER TABLE CHANGE COLUMNS for Various --> Various: (BOOLEAN, SHORT, INT, LONG, FLOAT, DOUBLE, DECIMAL, STRING, CHAR, VARCHAR, TIMESTAMP) --> BYTE +-- -128 and a maximum value of 127 -- CREATE TABLE part_change_various_various_tinyint(insert_num int, c1 BOOLEAN, c2 SMALLINT, c3 INT, c4 BIGINT, c5 FLOAT, c6 DOUBLE, c7 DECIMAL(38,18), c8 STRING, c9 CHAR(25), c10 VARCHAR(25), c11 TIMESTAMP, b STRING) PARTITIONED BY(part INT); insert into table part_change_various_various_tinyint partition(part=1) - values(1, true, 2000, 72909, 3244222, -29.0764, 470614135, 470614135, '-2999', '-2999', '-2999', '0004-09-22 18:26:29.519542222', 'original'), - (2, 0, 1000, 483777, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), - (3, false, 72909, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '1', '1', '1', '6229-06-28 02:54:28.970117179', 'original'), - (4, 1, 90000, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '5299', '5299', '5299', '2002-05-10 05:29:48.990818073', 'original'); + values(1, true, 2000, 72909, 3244222, -29.0764, 470614135, 470614135, '129', '-128', '-2999', '0004-09-22 18:26:29.519542222', 'original'), + (2, 0, -128, -48, -20, -9223372036854775808.0, -9223372036854775808.0, 9223372036854775807.0, '128', '-99', '40', '2007-02-09 05:17:29.368756876', 'original'), + (3, -1, -129, 100, 499, -9223372036854775809.0, -9223372036854775809.0, 9223372036854775808.0, '128', '-99', '40', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, -72, -127, 127, 30.774, 127.561431, -106.561431, '90.284799488', '90.284799488', '1', '6229-06-28 02:54:28.970117179', 'original'), + (5, 1, -90, 75, -38, 109.284799488 ,-128.75, 98.75, '120.4', '33.333', '0.45', '2002-05-10 05:29:48.990818073', 'original'); select insert_num,part,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,b from part_change_various_various_tinyint order by insert_num; @@ -67,10 +69,10 @@ select insert_num,part,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,b from part_change_var alter table part_change_various_various_tinyint replace columns (insert_num int, c1 TINYINT, c2 TINYINT, c3 TINYINT, c4 TINYINT, c5 TINYINT, c6 TINYINT, c7 TINYINT, c8 TINYINT, c9 TINYINT, c10 TINYINT, c11 TINYINT, b STRING); insert into table part_change_various_various_tinyint partition(part=2) - values (5, 23, 71, 127, 1, 131, -60, 68, -230, -182, 40, 93, 'new'); + values (6, 23, 71, 127, 1, 131, -60, 68, -230, -182, 40, 93, 'new'); insert into table part_change_various_various_tinyint partition(part=1) - values (6, -248, 85, -126, -167, 91, 113, -28, -63, 0, 8, 237, 'new'); + values (7, -120, 85, -126, -167, 91, 113, -28, -63, 0, 8, 237, 'new'); explain select insert_num,part,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,b from part_change_various_various_tinyint order by insert_num; @@ -83,14 +85,16 @@ drop table part_change_various_various_tinyint; -- -- SUBSECTION: ALTER TABLE CHANGE COLUMNS for Various --> Various: (BOOLEAN, TINYINT, INT, LONG, FLOAT, DOUBLE, DECIMAL, STRING, CHAR, VARCHAR, TIMESTAMP) --> SMALLINT +-- -32768 and a maximum value of 32767 -- CREATE TABLE part_change_various_various_smallint(insert_num int, c1 BOOLEAN, c2 TINYINT, c3 INT, c4 BIGINT, c5 FLOAT, c6 DOUBLE, c7 DECIMAL(38,18), c8 STRING, c9 CHAR(25), c10 VARCHAR(25), c11 TIMESTAMP, b STRING) PARTITIONED BY(part INT); insert into table part_change_various_various_smallint partition(part=1) values(1, -2999, 200, 72909, 3244222, -29.0764, 470614135, 470614135, '-2999', '-2999', '-2999', '0004-09-22 18:26:29.519542222', 'original'), - (2, 0, 100, 483777, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), - (3, false, 72, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '1', '1', '1', '6229-06-28 02:54:28.970117179', 'original'), - (4, 1, -90, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '5299', '5299', '5299', '2002-05-10 05:29:48.990818073', 'original'); + (2, 0, 100, -32768 , 32767, -3651.672121, -9223372036854775808.0, 9223372036854775807.0, '9000', '32767', '-32768', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, -127, -40000 , 32768, -3651.672121, -9223372036854775809.0, 9223372036854775808.0, '9000', '32767', '-32768', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, 72, 32422, -9322, 30.774, -6675.561431, -6675.561431, '1', '1', '1', '6229-06-28 02:54:28.970117179', 'original'), + (5, 1, -90, 7151, 3094, 30000.284799488 ,-9000.75, 0.75, '5299', '5299', '5299', '2002-05-10 05:29:48.990818073', 'original'); select insert_num,part,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,b from part_change_various_various_smallint order by insert_num; @@ -98,10 +102,10 @@ select insert_num,part,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,b from part_change_var alter table part_change_various_various_smallint replace columns (insert_num int, c1 SMALLINT, c2 SMALLINT, c3 SMALLINT, c4 SMALLINT, c5 SMALLINT, c6 SMALLINT, c7 SMALLINT, c8 SMALLINT, c9 SMALLINT, c10 SMALLINT, c11 SMALLINT, b STRING); insert into table part_change_various_various_smallint partition(part=2) - values (5, -30486, 15230, 3117, 1, -117, -7131, 20227, -24858, -28771, 46114, 72909, 'new'); + values (6, -30486, 15230, 3117, 1, -117, -7131, 20227, -24858, -28771, 46114, 72909, 'new'); insert into table part_change_various_various_smallint partition(part=1) - values (6, -10542, -1805, -4844, 15507, 91, 22385, -28, -12268, 0, 66475, 774, 'new'); + values (7, -10542, -1805, -4844, 15507, 91, 22385, -28, -12268, 0, 66475, 774, 'new'); explain select insert_num,part,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,b from part_change_various_various_smallint order by insert_num; @@ -113,14 +117,16 @@ drop table part_change_various_various_smallint; -- -- SUBSECTION: ALTER TABLE CHANGE COLUMNS for Various --> Various: (BOOLEAN, TINYINT, SMALLINT, LONG, FLOAT, DOUBLE, DECIMAL, STRING, CHAR, VARCHAR, TIMESTAMP) --> INT +-- –2147483648 to 2147483647 -- CREATE TABLE part_change_various_various_int(insert_num int, c1 BOOLEAN, c2 TINYINT, c3 SMALLINT, c4 BIGINT, c5 FLOAT, c6 DOUBLE, c7 DECIMAL(38,18), c8 STRING, c9 CHAR(25), c10 VARCHAR(25), c11 TIMESTAMP, b STRING) PARTITIONED BY(part INT); insert into table part_change_various_various_int partition(part=1) values(1, -2999, 200, 72909, 3244222, -29.0764, 470614135, 470614135, '-2999', '-2999', '-2999', '0004-09-22 18:26:29.519542222', 'original'), - (2, 0, 100, 483777, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), - (3, false, 72, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '1', '1', '1', '6229-06-28 02:54:28.970117179', 'original'), - (4, 1, -90, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '5299', '5299', '5299', '2002-05-10 05:29:48.990818073', 'original'); + (2, 0, 100, 2147483647, -23866739993, -3651.672121, -9223372036854775808.0, 9223372036854775807.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, 100, 2147483648, -23866739993, -3651.672121, -9223372036854775809.0, 9223372036854775808.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, 72, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '1', '1', '1', '6229-06-28 02:54:28.970117179', 'original'), + (5, 1, -90, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '5299', '5299', '5299', '2002-05-10 05:29:48.990818073', 'original'); select insert_num,part,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,b from part_change_various_various_int order by insert_num; @@ -144,14 +150,16 @@ drop table part_change_various_various_int; -- -- SUBSECTION: ALTER TABLE CHANGE COLUMNS for Various --> Various: (BOOLEAN, TINYINT, SMALLINT, INT, FLOAT, DOUBLE, DECIMAL, STRING, CHAR, VARCHAR, TIMESTAMP) --> BIGINT +-- -9223372036854775808 to 9223372036854775807 -- CREATE TABLE part_change_various_various_bigint(insert_num int, c1 BOOLEAN, c2 TINYINT, c3 SMALLINT, c4 INT, c5 FLOAT, c6 DOUBLE, c7 DECIMAL(38,18), c8 STRING, c9 CHAR(25), c10 VARCHAR(25), c11 TIMESTAMP, b STRING) PARTITIONED BY(part INT); insert into table part_change_various_various_bigint partition(part=1) values(1, -2999, 200, 72909, 3244222, -29.0764, 470614135, 470614135, '-2999', '-2999', '-2999', '0004-09-22 18:26:29.519542222', 'original'), - (2, 0, 100, 483777, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), - (3, false, 72, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '1', '1', '1', '6229-06-28 02:54:28.970117179', 'original'), - (4, 1, -90, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '1998287.3541', '1998287.3541', '1998287.3541', '2002-05-10 05:29:48.990818073', 'original'); + (2, 0, 100, 32767, -23372036854775, -3651.672121, -9223372036854775808.0, 9223372036854775807.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, 100, -32768, 23372036854775, -3651.672121, -9223372036854775809.0, 9223372036854775808.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, 72, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '1', '1', '1', '6229-06-28 02:54:28.970117179', 'original'), + (5, 1, -90, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '1998287.3541', '1998287.3541', '1998287.3541', '2002-05-10 05:29:48.990818073', 'original'); select insert_num,part,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,b from part_change_various_various_bigint order by insert_num; @@ -159,10 +167,10 @@ select insert_num,part,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,b from part_change_var alter table part_change_various_various_bigint replace columns (insert_num int, c1 BIGINT, c2 BIGINT, c3 BIGINT, c4 BIGINT, c5 BIGINT, c6 BIGINT, c7 BIGINT, c8 BIGINT, c9 BIGINT, c10 BIGINT, c11 BIGINT, b STRING); insert into table part_change_various_various_bigint partition(part=2) - values (5, 5573199346255528403, 71, 151775655, 1, 131, -60, 6275638713485623898, -230, -695025, 519542222, -29.0764, 'new'); + values (6, 5573199346255528403, 71, 151775655, 1, 131, -60, 6275638713485623898, -230, -695025, 519542222, -29.0764, 'new'); insert into table part_change_various_various_bigint partition(part=1) - values (6, -164341325, 9043162437544575070, -126, -6566204574741299000, 91, 113, -28, -63, 0, 3244222, -90, 'new'); + values (7, -164341325, 9043162437544575070, -126, -6566204574741299000, 91, 113, -28, -63, 0, 3244222, -90, 'new'); explain select insert_num,part,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,b from part_change_various_various_bigint order by insert_num; @@ -180,9 +188,10 @@ CREATE TABLE part_change_various_various_float(insert_num int, c1 BOOLEAN, c2 TI insert into table part_change_various_various_float partition(part=1) values(1, -2999, 200, 72909, 3244222, -29.0764, 470614135, 470614135, '-2999', '-2999', '-2999', '0004-09-22 18:26:29.519542222', 'original'), - (2, 0, 100, 483777, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), - (3, false, 72, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '2402.3', '2402.3', '2402.3', '6229-06-28 02:54:28.970117179', 'original'), - (4, 1, -90, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '5299', '5299', '5299', '2002-05-10 05:29:48.990818073', 'original'); + (2, 0, 100, 32767, -23372036854775, -3651.672121, -9223372036854775808.0, 9223372036854775807.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, 100, -32768, 23372036854775, -3651.672121, -9223372036854775809.0, 9223372036854775808.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, 72, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '2402.3', '2402.3', '2402.3', '6229-06-28 02:54:28.970117179', 'original'), + (5, 1, -90, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '5299', '5299', '5299', '2002-05-10 05:29:48.990818073', 'original'); select insert_num,part,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,b from part_change_various_various_float order by insert_num; @@ -190,10 +199,10 @@ select insert_num,part,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,b from part_change_var alter table part_change_various_various_float replace columns (insert_num int, c1 FLOAT, c2 FLOAT, c3 FLOAT, c4 FLOAT, c5 FLOAT, c6 FLOAT, c7 FLOAT, c8 FLOAT, c9 FLOAT, c10 FLOAT, c11 FLOAT, b STRING); insert into table part_change_various_various_float partition(part=2) - values (5, 953967041., 62.0791539559013466, 718.78, 1, 203.199548118, -60, 6275638713485623898, -230, -695025, -3651.67212, 46114.28, 'new'); + values (6, 953967041., 62.0791539559013466, 718.78, 1, 203.199548118, -60, 6275638713485623898, -230, -695025, -3651.67212, 46114.28, 'new'); insert into table part_change_various_various_float partition(part=1) - values (6, -1255178165.77663, 9043162437544575070.974, -4314.7918, -1240033819, 91, 1698.95, -100.3597812, -63, 0, -93222.200, 29.076, 'new'); + values (7, -1255178165.77663, 9043162437544575070.974, -4314.7918, -1240033819, 91, 1698.95, -100.3597812, -63, 0, -93222.200, 29.076, 'new'); explain select insert_num,part,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,b from part_change_various_various_float order by insert_num; @@ -211,9 +220,10 @@ CREATE TABLE part_change_various_various_double(insert_num int, c1 BOOLEAN, c2 T insert into table part_change_various_various_double partition(part=1) values(1, -2999, 200, 72909, 3244222, -29.0764, 470614135, 470614135, '-2999', '-2999', '-2999', '0004-09-22 18:26:29.519542222', 'original'), - (2, 0, 100, 483777, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), - (3, false, 72, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '1', '1', '1', '6229-06-28 02:54:28.970117179', 'original'), - (4, 1, -90, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '5299', '5299', '5299', '2002-05-10 05:29:48.990818073', 'original'); + (2, 0, 100, 32767, -23372036854775, -3651.672121, -9223372036854775808.0, 9223372036854775807.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, 100, -32768, 23372036854775, -3651.672121, -9223372036854775809.0, 9223372036854775808.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, 72, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '1', '1', '1', '6229-06-28 02:54:28.970117179', 'original'), + (5, 1, -90, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '5299', '5299', '5299', '2002-05-10 05:29:48.990818073', 'original'); select insert_num,part,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,b from part_change_various_various_double order by insert_num; @@ -221,10 +231,10 @@ select insert_num,part,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,b from part_change_var alter table part_change_various_various_double replace columns (insert_num int, c1 DOUBLE, c2 DOUBLE, c3 DOUBLE, c4 DOUBLE, c5 DOUBLE, c6 DOUBLE, c7 DOUBLE, c8 DOUBLE, c9 DOUBLE, c10 DOUBLE, c11 DOUBLE, b STRING); insert into table part_change_various_various_double partition(part=2) - values (5, 953967041., 62.0791539559013466, 718.78, 1, 203.199548118, -60, 6275638713485623898, -230, -695025, 0.00007011717, 4.28479948, 'new'); + values (6, 953967041., 62.0791539559013466, 718.78, 1, 203.199548118, -60, 6275638713485623898, -230, -695025, 0.00007011717, 4.28479948, 'new'); insert into table part_change_various_various_double partition(part=1) - values (6, -1255178165.77663, 9043162437544575070.974, -4314.7918, -1240033819, 91, 1698.95, -100.3597812, -63, 0, -66475.0000008, -284799488.1, 'new'); + values (7, -1255178165.77663, 9043162437544575070.974, -4314.7918, -1240033819, 91, 1698.95, -100.3597812, -63, 0, -66475.0000008, -284799488.1, 'new'); explain select insert_num,part,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,b from part_change_various_various_double order by insert_num; @@ -242,9 +252,10 @@ CREATE TABLE part_change_various_various_decimal(insert_num int, c1 BOOLEAN, c2 insert into table part_change_various_various_decimal partition(part=1) values(1, -2999, 200, 72909, 3244222, -29.0764, 470614135, 470614135, '--1551801.09502', '--1551801.09502', '--1551801.09502', '0004-09-22 18:26:29.519542222', 'original'), - (2, 0, 100, 483777, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), - (3, false, 72, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '1', '1', '1', '6229-06-28 02:54:28.970117179', 'original'), - (4, 1, -90, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '2402.3', '2402.3', '2402.3', '2002-05-10 05:29:48.990818073', 'original'); + (2, 0, 100, 32767, -23372036854775, -3651.672121, -9223372036854775808.0, 9223372036854775807.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, 100, -32768, 23372036854775, -3651.672121, -9223372036854775809.0, 9223372036854775808.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, 72, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '1', '1', '1', '6229-06-28 02:54:28.970117179', 'original'), + (5, 1, -90, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '2402.3', '2402.3', '2402.3', '2002-05-10 05:29:48.990818073', 'original'); select insert_num,part,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,b from part_change_various_various_decimal order by insert_num; @@ -252,10 +263,10 @@ select insert_num,part,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,b from part_change_var alter table part_change_various_various_decimal replace columns (insert_num int, c1 DECIMAL(38,18), c2 DECIMAL(38,18), c3 DECIMAL(38,18), c4 DECIMAL(38,18), c5 DECIMAL(38,18), c6 DECIMAL(38,18), c7 DECIMAL(38,18), c8 DECIMAL(38,18), c9 DECIMAL(38,18), c10 DECIMAL(38,18), c11 DECIMAL(38,18), b STRING); insert into table part_change_various_various_decimal partition(part=2) - values (5, 953967041., 62.0791539559013466, 718.78, 1, 203.199548118, -60, 6275638713485623898, -230, -695025, 0.00007011717, 4.28479948, 'new'); + values (6, 953967041., 62.0791539559013466, 718.78, 1, 203.199548118, -60, 6275638713485623898, -230, -695025, 0.00007011717, 4.28479948, 'new'); insert into table part_change_various_various_decimal partition(part=1) - values (6,-1255178165.77663, 9043162437544575070.974, -4314.7918, -1240033819, 91, 1698.95, -100.3597812, -63, 0, -66475.0000008, -284799488.1, 'new'); + values (7,-1255178165.77663, 9043162437544575070.974, -4314.7918, -1240033819, 91, 1698.95, -100.3597812, -63, 0, -66475.0000008, -284799488.1, 'new'); explain select insert_num,part,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,b from part_change_various_various_decimal order by insert_num; @@ -273,9 +284,10 @@ CREATE TABLE part_change_various_various_string(insert_num int, c1 BOOLEAN, c2 T insert into table part_change_various_various_string partition(part=1) values(1, true, 200, 72909, 3244222, -99999999999, -29.0764, 470614135, 470614135, 'dynamic reptile ', 'dynamic reptile ', '0004-09-22 18:26:29.519542222', '2007-02-09', 'binary', 'original'), - (2, 0, 100, 483777, 14, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, ' baffling ', ' baffling ', '2007-02-09 05:17:29.368756876', '0004-09-22', 'binary', 'original'), - (3, false, 72, 3244222, -93222, 30.774, - 66475.561431, -66475.561431, 0.561431, '1', '1', '6229-06-28 02:54:28.970117179', '5966-07-09', 'binary', 'original'), - (4, 1, -90, 754072151, 3289094, 46114.284799488, 9250340.75, 9250340.75, 9250340.75, 'junkyard', 'junkyard', '2002-05-10 05:29:48.990818073', '1815-05-06', 'binary', 'original'); + (2, 0, 100, 32767, -23372036854775, -3651.672121, -9223372036854775808.0, 9223372036854775807.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, 100, -32768, 23372036854775, -3651.672121, -9223372036854775809.0, 9223372036854775808.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, 72, 3244222, -93222, 30.774, - 66475.561431, -66475.561431, 0.561431, '1', '1', '6229-06-28 02:54:28.970117179', '5966-07-09', 'binary', 'original'), + (5, 1, -90, 754072151, 3289094, 46114.284799488, 9250340.75, 9250340.75, 9250340.75, 'junkyard', 'junkyard', '2002-05-10 05:29:48.990818073', '1815-05-06', 'binary', 'original'); select insert_num,part,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,b from part_change_various_various_string order by insert_num; @@ -283,10 +295,10 @@ select insert_num,part,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,b from part_ch alter table part_change_various_various_string replace columns (insert_num int, c1 STRING, c2 STRING, c3 STRING, c4 STRING, c5 STRING, c6 STRING, c7 STRING, c8 STRING, c9 STRING, c10 STRING, c11 STRING, c12 STRING, c13 STRING, b STRING); insert into table part_change_various_various_string partition(part=2) - values (5, 'true', '400', '44388', -'100', '953967041.', '62.079153', '718.78', '1', 'verdict', 'verdict', 'timestamp', 'date', 'binary', 'new'); + values (6, 'true', '400', '44388', -'100', '953967041.', '62.079153', '718.78', '1', 'verdict', 'verdict', 'timestamp', 'date', 'binary', 'new'); insert into table part_change_various_various_string partition(part=1) - values (6,-'false', '-67', '833', '63993', ' 1255178165.77663', '905070.974', '-4314.7918', -'1240033819', 'trial', 'trial', '2016-03-07 03:02:22.0', '2016-03-07', 'binary', 'new'); + values (7,-'false', '-67', '833', '63993', ' 1255178165.77663', '905070.974', '-4314.7918', -'1240033819', 'trial', 'trial', '2016-03-07 03:02:22.0', '2016-03-07', 'binary', 'new'); explain select insert_num,part,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,b from part_change_various_various_string order by insert_num; @@ -304,9 +316,10 @@ CREATE TABLE part_change_various_various_char(insert_num int, c1 BOOLEAN, c2 TIN insert into table part_change_various_various_char partition(part=1) values(1, true, 200, 72909, 3244222, -99999999999, -29.0764, 470614135, 470614135, 'dynamic reptile ', 'dynamic reptile ', '0004-09-22 18:26:29.519542222', '2007-02-09', 'binary', 'original'), - (2, 0, 100, 483777, 14, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, ' baffling ', ' baffling ', '2007-02-09 05:17:29.368756876', '0004-09-22', 'binary', 'original'), - (3, false, 72, 3244222, -93222, 30.774, - 66475.561431, -66475.561431, 0.561431, '1', '1', '6229-06-28 02:54:28.970117179', '5966-07-09', 'binary', 'original'), - (4, 1, -90, 754072151, 3289094, 46114.284799488, 9250340.75, 9250340.75, 9250340.75, 'junkyard', 'junkyard', '2002-05-10 05:29:48.990818073', '1815-05-06', 'binary', 'original'); + (2, 0, 100, 32767, -23372036854775, -3651.672121, -9223372036854775808.0, 9223372036854775807.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, 100, -32768, 23372036854775, -3651.672121, -9223372036854775809.0, 9223372036854775808.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, 72, 3244222, -93222, 30.774, - 66475.561431, -66475.561431, 0.561431, '1', '1', '6229-06-28 02:54:28.970117179', '5966-07-09', 'binary', 'original'), + (5, 1, -90, 754072151, 3289094, 46114.284799488, 9250340.75, 9250340.75, 9250340.75, 'junkyard', 'junkyard', '2002-05-10 05:29:48.990818073', '1815-05-06', 'binary', 'original'); select insert_num,part,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,b from part_change_various_various_char order by insert_num; @@ -314,10 +327,10 @@ select insert_num,part,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,b from part_ch alter table part_change_various_various_char replace columns (insert_num int, c1 CHAR(25), c2 CHAR(25), c3 CHAR(25), c4 CHAR(25), c5 CHAR(25), c6 CHAR(25), c7 CHAR(25), c8 CHAR(25), c9 CHAR(25), c10 CHAR(25), c11 CHAR(25), c12 CHAR(25), c13 CHAR(25), b STRING); insert into table part_change_various_various_char partition(part=2) - values (5, 'true', '400', '44388', -'100', '953967041.', '62.079153', '718.78', '1', 'verdict', 'verdict', 'timestamp', 'date', 'binary', 'new'); + values (6, 'true', '400', '44388', -'100', '953967041.', '62.079153', '718.78', '1', 'verdict', 'verdict', 'timestamp', 'date', 'binary', 'new'); insert into table part_change_various_various_char partition(part=1) - values (6,-'false', '-67', '833', '63993', ' 1255178165.77663', '905070.974', '-4314.7918', -'1240033819', 'trial', 'trial', '2016-03-07 03:02:22.0', '2016-03-07', 'binary', 'new'); + values (7,-'false', '-67', '833', '63993', ' 1255178165.77663', '905070.974', '-4314.7918', -'1240033819', 'trial', 'trial', '2016-03-07 03:02:22.0', '2016-03-07', 'binary', 'new'); explain select insert_num,part,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,b from part_change_various_various_char order by insert_num; @@ -335,9 +348,10 @@ CREATE TABLE part_change_various_various_char_trunc(insert_num int, c1 BOOLEAN, insert into table part_change_various_various_char_trunc partition(part=1) values(1, true, 200, 72909, 3244222, -99999999999, -29.0764, 470614135, 470614135, 'dynamic reptile ', 'dynamic reptile ', '0004-09-22 18:26:29.519542222', '2007-02-09', 'binary', 'original'), - (2, 0, 100, 483777, 14, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, ' baffling ', ' baffling ', '2007-02-09 05:17:29.368756876', '0004-09-22', 'binary', 'original'), - (3, false, 72, 3244222, -93222, 30.774, - 66475.561431, -66475.561431, 0.561431, '1', '1', '6229-06-28 02:54:28.970117179', '5966-07-09', 'binary', 'original'), - (4, 1, -90, 754072151, 3289094, 46114.284799488, 9250340.75, 9250340.75, 9250340.75, 'junkyard', 'junkyard', '2002-05-10 05:29:48.990818073', '1815-05-06', 'binary', 'original'); + (2, 0, 100, 32767, -23372036854775, -3651.672121, -9223372036854775808.0, 9223372036854775807.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, 100, -32768, 23372036854775, -3651.672121, -9223372036854775809.0, 9223372036854775808.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, 72, 3244222, -93222, 30.774, - 66475.561431, -66475.561431, 0.561431, '1', '1', '6229-06-28 02:54:28.970117179', '5966-07-09', 'binary', 'original'), + (5, 1, -90, 754072151, 3289094, 46114.284799488, 9250340.75, 9250340.75, 9250340.75, 'junkyard', 'junkyard', '2002-05-10 05:29:48.990818073', '1815-05-06', 'binary', 'original'); select insert_num,part,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,b from part_change_various_various_char_trunc order by insert_num; @@ -345,10 +359,10 @@ select insert_num,part,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,b from part_ch alter table part_change_various_various_char_trunc replace columns (insert_num int, c1 CHAR(8), c2 CHAR(8), c3 CHAR(8), c4 CHAR(8), c5 CHAR(8), c6 CHAR(8), c7 CHAR(8), c8 CHAR(8), c9 CHAR(8), c10 CHAR(8), c11 CHAR(8), c12 CHAR(8), c13 CHAR(8), b STRING); insert into table part_change_various_various_char_trunc partition(part=2) - values (5, 'true', '400', '44388', -'100', '953967041.', '62.079153', '718.78', '1', 'verdict', 'verdict', 'timestamp', 'date', 'binary', 'new'); + values (6, 'true', '400', '44388', -'100', '953967041.', '62.079153', '718.78', '1', 'verdict', 'verdict', 'timestamp', 'date', 'binary', 'new'); insert into table part_change_various_various_char_trunc partition(part=1) - values (6,-'false', '-67', '833', '63993', ' 1255178165.77663', '905070.974', '-4314.7918', -'1240033819', 'trial', 'trial', '2016-03-07 03:02:22.0', '2016-03-07', 'binary', 'new'); + values (7,-'false', '-67', '833', '63993', ' 1255178165.77663', '905070.974', '-4314.7918', -'1240033819', 'trial', 'trial', '2016-03-07 03:02:22.0', '2016-03-07', 'binary', 'new'); explain select insert_num,part,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,b from part_change_various_various_char_trunc order by insert_num; @@ -366,9 +380,10 @@ CREATE TABLE part_change_various_various_varchar(insert_num int, c1 BOOLEAN, c2 insert into table part_change_various_various_varchar partition(part=1) values(1, true, 200, 72909, 3244222, -99999999999, -29.0764, 470614135, 470614135, 'dynamic reptile ', 'dynamic reptile ', '0004-09-22 18:26:29.519542222', '2007-02-09', 'binary', 'original'), - (2, 0, 100, 483777, 14, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, ' baffling ', ' baffling ', '2007-02-09 05:17:29.368756876', '0004-09-22', 'binary', 'original'), - (3, false, 72, 3244222, -93222, 30.774, - 66475.561431, -66475.561431, 0.561431, '1', '1', '6229-06-28 02:54:28.970117179', '5966-07-09', 'binary', 'original'), - (4, 1, -90, 754072151, 3289094, 46114.284799488, 9250340.75, 9250340.75, 9250340.75, 'junkyard', 'junkyard', '2002-05-10 05:29:48.990818073', '1815-05-06', 'binary', 'original'); + (2, 0, 100, 32767, -23372036854775, -9223372036854775808.0, -9223372036854775808.0, 9223372036854775807.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, 100, -32768, 23372036854775, -9223372036854775809.0, -9223372036854775809.0, 9223372036854775808.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, 72, 3244222, -93222, 30.774, - 66475.561431, -66475.561431, 0.561431, '1', '1', '6229-06-28 02:54:28.970117179', '5966-07-09', 'binary', 'original'), + (5, 1, -90, 754072151, 3289094, 46114.284799488, 9250340.75, 9250340.75, 9250340.75, 'junkyard', 'junkyard', '2002-05-10 05:29:48.990818073', '1815-05-06', 'binary', 'original'); select insert_num,part,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,b from part_change_various_various_varchar order by insert_num; @@ -376,10 +391,10 @@ select insert_num,part,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,b from part_ch alter table part_change_various_various_varchar replace columns (insert_num int, c1 VARCHAR(25), c2 VARCHAR(25), c3 VARCHAR(25), c4 VARCHAR(25), c5 VARCHAR(25), c6 VARCHAR(25), c7 VARCHAR(25), c8 VARCHAR(25), c9 VARCHAR(25), c10 VARCHAR(25), c11 VARCHAR(25), c12 VARCHAR(25), c13 VARCHAR(25), b STRING); insert into table part_change_various_various_varchar partition(part=2) - values (5, 'true', '400', '44388', -'100', '953967041.', '62.079153', '718.78', '1', 'verdict', 'verdict', 'timestamp', 'date', 'binary', 'new'); + values (6, 'true', '400', '44388', -'100', '953967041.', '62.079153', '718.78', '1', 'verdict', 'verdict', 'timestamp', 'date', 'binary', 'new'); insert into table part_change_various_various_varchar partition(part=1) - values (6,-'false', '-67', '833', '63993', ' 1255178165.77663', '905070.974', '-4314.7918', -'1240033819', 'trial', 'trial', '2016-03-07 03:02:22.0', '2016-03-07', 'binary', 'new'); + values (7,-'false', '-67', '833', '63993', ' 1255178165.77663', '905070.974', '-4314.7918', -'1240033819', 'trial', 'trial', '2016-03-07 03:02:22.0', '2016-03-07', 'binary', 'new'); explain select insert_num,part,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,b from part_change_various_various_varchar order by insert_num; @@ -397,7 +412,8 @@ CREATE TABLE part_change_various_various_varchar_trunc(insert_num int, c1 BOOLEA insert into table part_change_various_various_varchar_trunc partition(part=1) values(1, true, 200, 72909, 3244222, -99999999999, -29.0764, 470614135, 470614135, 'dynamic reptile ', 'dynamic reptile ', '0004-09-22 18:26:29.519542222', '2007-02-09', 'binary', 'original'), - (2, 0, 100, 483777, 14, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, ' baffling ', ' baffling ', '2007-02-09 05:17:29.368756876', '0004-09-22', 'binary', 'original'), + (2, 0, 100, 32767, -23372036854775, -9223372036854775808.0, -9223372036854775808.0, 9223372036854775807.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, 100, -32768, 23372036854775, -9223372036854775809.0, -9223372036854775809.0, 9223372036854775808.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), (3, false, 72, 3244222, -93222, 30.774, - 66475.561431, -66475.561431, 0.561431, '1', '1', '6229-06-28 02:54:28.970117179', '5966-07-09', 'binary', 'original'), (4, 1, -90, 754072151, 3289094, 46114.284799488, 9250340.75, 9250340.75, 9250340.75, 'junkyard', 'junkyard', '2002-05-10 05:29:48.990818073', '1815-05-06', 'binary', 'original'); @@ -428,9 +444,10 @@ CREATE TABLE part_change_various_various_timestamp(insert_num int, c1 BOOLEAN, c insert into table part_change_various_various_timestamp partition(part=1) values(1, true, 200, 72909, 3244222, -99999999999, -29.0764, 470614135, 470614135, '0004-09-22 18:26:29.519542222', '0004-09-22 18:26:29.519542222', '0004-09-22 18:26:29.519542222', '2007-02-09', 'original'), - (2, 0, 100, 483777, 14, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, '2007-02-09 05:17:29.368756876', '2007-02-09 05:17:29.368756876', '2007-02-09 05:17:29.368756876', '0004-09-22', 'original'), - (3, false, 72, 3244222, -93222, 30.774, - 66475.561431, -66475.561431, 0.561431, '6229-06-28 02:54:28.970117179', '6229-06-28 02:54:28.970117179', '6229-06-28 02:54:28.970117179', '5966-07-09', 'original'), - (4, 1, -90, 754072151, 3289094, 46114.284799488, 9250340.75, 9250340.75, 9250340.75, '2002-05-10 05:29:48.990818073', '2002-05-10 05:29:48.990818073', '2002-05-10 05:29:48.990818073', '1815-05-06', 'original'); + (2, 0, 100, 32767, -23372036854775, -9223372036854775808.0, -9223372036854775808.0, 9223372036854775807.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, 100, -32768, 23372036854775, -9223372036854775809.0, -9223372036854775809.0, 9223372036854775808.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, 72, 3244222, -93222, 30.774, - 66475.561431, -66475.561431, 0.561431, '6229-06-28 02:54:28.970117179', '6229-06-28 02:54:28.970117179', '6229-06-28 02:54:28.970117179', '5966-07-09', 'original'), + (5, 1, -90, 754072151, 3289094, 46114.284799488, 9250340.75, 9250340.75, 9250340.75, '2002-05-10 05:29:48.990818073', '2002-05-10 05:29:48.990818073', '2002-05-10 05:29:48.990818073', '1815-05-06', 'original'); select insert_num,part,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,b from part_change_various_various_timestamp order by insert_num; @@ -438,10 +455,10 @@ select insert_num,part,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,b from part_change alter table part_change_various_various_timestamp replace columns (insert_num int, c1 TIMESTAMP, c2 TIMESTAMP, c3 TIMESTAMP, c4 TIMESTAMP, c5 TIMESTAMP, c6 TIMESTAMP, c7 TIMESTAMP, c8 TIMESTAMP, c9 TIMESTAMP, c10 TIMESTAMP, c11 TIMESTAMP, c12 TIMESTAMP, b STRING); insert into table part_change_various_various_timestamp partition(part=2) - values (5, 'true', '400', '44388', -'100', '953967041.', '62.079153', '718.78', '1', 'timestamp', 'timestamp', 'timestamp', 'date', 'new'); + values (6, 'true', '400', '44388', -'100', '953967041.', '62.079153', '718.78', '1', 'timestamp', 'timestamp', 'timestamp', 'date', 'new'); insert into table part_change_various_various_timestamp partition(part=1) - values (6,-'false', '-67', '833', '63993', ' 1255178165.77663', '905070.974', '-4314.7918', -'1240033819', '2016-03-07 03:02:22.0', '2016-03-07 03:02:22.0', '2016-03-07 03:02:22.0', '2016-03-07', 'new'); + values (7,-'false', '-67', '833', '63993', ' 1255178165.77663', '905070.974', '-4314.7918', -'1240033819', '2016-03-07 03:02:22.0', '2016-03-07 03:02:22.0', '2016-03-07 03:02:22.0', '2016-03-07', 'new'); explain select insert_num,part,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,b from part_change_various_various_timestamp order by insert_num; diff --git ql/src/test/queries/clientpositive/schema_evol_orc_vec_mapwork_part_all_primitive.q ql/src/test/queries/clientpositive/schema_evol_orc_vec_mapwork_part_all_primitive.q index c7f2f57..bf4de82 100644 --- ql/src/test/queries/clientpositive/schema_evol_orc_vec_mapwork_part_all_primitive.q +++ ql/src/test/queries/clientpositive/schema_evol_orc_vec_mapwork_part_all_primitive.q @@ -52,14 +52,16 @@ drop table part_change_various_various_boolean; -- -- SUBSECTION: ALTER TABLE CHANGE COLUMNS for Various --> Various: (BOOLEAN, SHORT, INT, LONG, FLOAT, DOUBLE, DECIMAL, STRING, CHAR, VARCHAR, TIMESTAMP) --> BYTE +-- -128 and a maximum value of 127 -- CREATE TABLE part_change_various_various_tinyint(insert_num int, c1 BOOLEAN, c2 SMALLINT, c3 INT, c4 BIGINT, c5 FLOAT, c6 DOUBLE, c7 DECIMAL(38,18), c8 STRING, c9 CHAR(25), c10 VARCHAR(25), c11 TIMESTAMP, b STRING) PARTITIONED BY(part INT); insert into table part_change_various_various_tinyint partition(part=1) - values(1, true, 2000, 72909, 3244222, -29.0764, 470614135, 470614135, '-2999', '-2999', '-2999', '0004-09-22 18:26:29.519542222', 'original'), - (2, 0, 1000, 483777, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), - (3, false, 72909, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '1', '1', '1', '6229-06-28 02:54:28.970117179', 'original'), - (4, 1, 90000, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '5299', '5299', '5299', '2002-05-10 05:29:48.990818073', 'original'); + values(1, true, 2000, 72909, 3244222, -29.0764, 470614135, 470614135, '129', '-128', '-2999', '0004-09-22 18:26:29.519542222', 'original'), + (2, 0, -128, -48, -20, -9223372036854775808.0, -9223372036854775808.0, 9223372036854775807.0, '128', '-99', '40', '2007-02-09 05:17:29.368756876', 'original'), + (3, -1, -129, 100, 499, -9223372036854775809.0, -9223372036854775809.0, 9223372036854775808.0, '128', '-99', '40', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, -72, -127, 127, 30.774, 127.561431, -106.561431, '90.284799488', '90.284799488', '1', '6229-06-28 02:54:28.970117179', 'original'), + (5, 1, -90, 75, -38, 109.284799488 ,-128.75, 98.75, '120.4', '33.333', '0.45', '2002-05-10 05:29:48.990818073', 'original'); select insert_num,part,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,b from part_change_various_various_tinyint order by insert_num; @@ -67,10 +69,10 @@ select insert_num,part,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,b from part_change_var alter table part_change_various_various_tinyint replace columns (insert_num int, c1 TINYINT, c2 TINYINT, c3 TINYINT, c4 TINYINT, c5 TINYINT, c6 TINYINT, c7 TINYINT, c8 TINYINT, c9 TINYINT, c10 TINYINT, c11 TINYINT, b STRING); insert into table part_change_various_various_tinyint partition(part=2) - values (5, 23, 71, 127, 1, 131, -60, 68, -230, -182, 40, 93, 'new'); + values (6, 23, 71, 127, 1, 131, -60, 68, -230, -182, 40, 93, 'new'); insert into table part_change_various_various_tinyint partition(part=1) - values (6, -248, 85, -126, -167, 91, 113, -28, -63, 0, 8, 237, 'new'); + values (7, -120, 85, -126, -167, 91, 113, -28, -63, 0, 8, 237, 'new'); explain select insert_num,part,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,b from part_change_various_various_tinyint order by insert_num; @@ -83,14 +85,16 @@ drop table part_change_various_various_tinyint; -- -- SUBSECTION: ALTER TABLE CHANGE COLUMNS for Various --> Various: (BOOLEAN, TINYINT, INT, LONG, FLOAT, DOUBLE, DECIMAL, STRING, CHAR, VARCHAR, TIMESTAMP) --> SMALLINT +-- -32768 and a maximum value of 32767 -- CREATE TABLE part_change_various_various_smallint(insert_num int, c1 BOOLEAN, c2 TINYINT, c3 INT, c4 BIGINT, c5 FLOAT, c6 DOUBLE, c7 DECIMAL(38,18), c8 STRING, c9 CHAR(25), c10 VARCHAR(25), c11 TIMESTAMP, b STRING) PARTITIONED BY(part INT); insert into table part_change_various_various_smallint partition(part=1) values(1, -2999, 200, 72909, 3244222, -29.0764, 470614135, 470614135, '-2999', '-2999', '-2999', '0004-09-22 18:26:29.519542222', 'original'), - (2, 0, 100, 483777, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), - (3, false, 72, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '1', '1', '1', '6229-06-28 02:54:28.970117179', 'original'), - (4, 1, -90, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '5299', '5299', '5299', '2002-05-10 05:29:48.990818073', 'original'); + (2, 0, 100, -32768 , 32767, -3651.672121, -9223372036854775808.0, 9223372036854775807.0, '9000', '32767', '-32768', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, -127, -40000 , 32768, -3651.672121, -9223372036854775809.0, 9223372036854775808.0, '9000', '32767', '-32768', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, 72, 32422, -9322, 30.774, -6675.561431, -6675.561431, '1', '1', '1', '6229-06-28 02:54:28.970117179', 'original'), + (5, 1, -90, 7151, 3094, 30000.284799488 ,-9000.75, 0.75, '5299', '5299', '5299', '2002-05-10 05:29:48.990818073', 'original'); select insert_num,part,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,b from part_change_various_various_smallint order by insert_num; @@ -98,10 +102,10 @@ select insert_num,part,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,b from part_change_var alter table part_change_various_various_smallint replace columns (insert_num int, c1 SMALLINT, c2 SMALLINT, c3 SMALLINT, c4 SMALLINT, c5 SMALLINT, c6 SMALLINT, c7 SMALLINT, c8 SMALLINT, c9 SMALLINT, c10 SMALLINT, c11 SMALLINT, b STRING); insert into table part_change_various_various_smallint partition(part=2) - values (5, -30486, 15230, 3117, 1, -117, -7131, 20227, -24858, -28771, 46114, 72909, 'new'); + values (6, -30486, 15230, 3117, 1, -117, -7131, 20227, -24858, -28771, 46114, 72909, 'new'); insert into table part_change_various_various_smallint partition(part=1) - values (6, -10542, -1805, -4844, 15507, 91, 22385, -28, -12268, 0, 66475, 774, 'new'); + values (7, -10542, -1805, -4844, 15507, 91, 22385, -28, -12268, 0, 66475, 774, 'new'); explain select insert_num,part,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,b from part_change_various_various_smallint order by insert_num; @@ -113,14 +117,16 @@ drop table part_change_various_various_smallint; -- -- SUBSECTION: ALTER TABLE CHANGE COLUMNS for Various --> Various: (BOOLEAN, TINYINT, SMALLINT, LONG, FLOAT, DOUBLE, DECIMAL, STRING, CHAR, VARCHAR, TIMESTAMP) --> INT +-- –2147483648 to 2147483647 -- CREATE TABLE part_change_various_various_int(insert_num int, c1 BOOLEAN, c2 TINYINT, c3 SMALLINT, c4 BIGINT, c5 FLOAT, c6 DOUBLE, c7 DECIMAL(38,18), c8 STRING, c9 CHAR(25), c10 VARCHAR(25), c11 TIMESTAMP, b STRING) PARTITIONED BY(part INT); insert into table part_change_various_various_int partition(part=1) values(1, -2999, 200, 72909, 3244222, -29.0764, 470614135, 470614135, '-2999', '-2999', '-2999', '0004-09-22 18:26:29.519542222', 'original'), - (2, 0, 100, 483777, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), - (3, false, 72, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '1', '1', '1', '6229-06-28 02:54:28.970117179', 'original'), - (4, 1, -90, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '5299', '5299', '5299', '2002-05-10 05:29:48.990818073', 'original'); + (2, 0, 100, 2147483647, -23866739993, -3651.672121, -9223372036854775808.0, 9223372036854775807.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, 100, 2147483648, -23866739993, -3651.672121, -9223372036854775809.0, 9223372036854775808.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, 72, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '1', '1', '1', '6229-06-28 02:54:28.970117179', 'original'), + (5, 1, -90, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '5299', '5299', '5299', '2002-05-10 05:29:48.990818073', 'original'); select insert_num,part,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,b from part_change_various_various_int order by insert_num; @@ -144,14 +150,16 @@ drop table part_change_various_various_int; -- -- SUBSECTION: ALTER TABLE CHANGE COLUMNS for Various --> Various: (BOOLEAN, TINYINT, SMALLINT, INT, FLOAT, DOUBLE, DECIMAL, STRING, CHAR, VARCHAR, TIMESTAMP) --> BIGINT +-- -9223372036854775808 to 9223372036854775807 -- CREATE TABLE part_change_various_various_bigint(insert_num int, c1 BOOLEAN, c2 TINYINT, c3 SMALLINT, c4 INT, c5 FLOAT, c6 DOUBLE, c7 DECIMAL(38,18), c8 STRING, c9 CHAR(25), c10 VARCHAR(25), c11 TIMESTAMP, b STRING) PARTITIONED BY(part INT); insert into table part_change_various_various_bigint partition(part=1) values(1, -2999, 200, 72909, 3244222, -29.0764, 470614135, 470614135, '-2999', '-2999', '-2999', '0004-09-22 18:26:29.519542222', 'original'), - (2, 0, 100, 483777, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), - (3, false, 72, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '1', '1', '1', '6229-06-28 02:54:28.970117179', 'original'), - (4, 1, -90, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '1998287.3541', '1998287.3541', '1998287.3541', '2002-05-10 05:29:48.990818073', 'original'); + (2, 0, 100, 32767, -23372036854775, -3651.672121, -9223372036854775808.0, 9223372036854775807.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, 100, -32768, 23372036854775, -3651.672121, -9223372036854775809.0, 9223372036854775808.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, 72, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '1', '1', '1', '6229-06-28 02:54:28.970117179', 'original'), + (5, 1, -90, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '1998287.3541', '1998287.3541', '1998287.3541', '2002-05-10 05:29:48.990818073', 'original'); select insert_num,part,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,b from part_change_various_various_bigint order by insert_num; @@ -159,10 +167,10 @@ select insert_num,part,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,b from part_change_var alter table part_change_various_various_bigint replace columns (insert_num int, c1 BIGINT, c2 BIGINT, c3 BIGINT, c4 BIGINT, c5 BIGINT, c6 BIGINT, c7 BIGINT, c8 BIGINT, c9 BIGINT, c10 BIGINT, c11 BIGINT, b STRING); insert into table part_change_various_various_bigint partition(part=2) - values (5, 5573199346255528403, 71, 151775655, 1, 131, -60, 6275638713485623898, -230, -695025, 519542222, -29.0764, 'new'); + values (6, 5573199346255528403, 71, 151775655, 1, 131, -60, 6275638713485623898, -230, -695025, 519542222, -29.0764, 'new'); insert into table part_change_various_various_bigint partition(part=1) - values (6, -164341325, 9043162437544575070, -126, -6566204574741299000, 91, 113, -28, -63, 0, 3244222, -90, 'new'); + values (7, -164341325, 9043162437544575070, -126, -6566204574741299000, 91, 113, -28, -63, 0, 3244222, -90, 'new'); explain select insert_num,part,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,b from part_change_various_various_bigint order by insert_num; @@ -180,9 +188,10 @@ CREATE TABLE part_change_various_various_float(insert_num int, c1 BOOLEAN, c2 TI insert into table part_change_various_various_float partition(part=1) values(1, -2999, 200, 72909, 3244222, -29.0764, 470614135, 470614135, '-2999', '-2999', '-2999', '0004-09-22 18:26:29.519542222', 'original'), - (2, 0, 100, 483777, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), - (3, false, 72, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '2402.3', '2402.3', '2402.3', '6229-06-28 02:54:28.970117179', 'original'), - (4, 1, -90, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '5299', '5299', '5299', '2002-05-10 05:29:48.990818073', 'original'); + (2, 0, 100, 32767, -23372036854775, -3651.672121, -9223372036854775808.0, 9223372036854775807.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, 100, -32768, 23372036854775, -3651.672121, -9223372036854775809.0, 9223372036854775808.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, 72, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '2402.3', '2402.3', '2402.3', '6229-06-28 02:54:28.970117179', 'original'), + (5, 1, -90, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '5299', '5299', '5299', '2002-05-10 05:29:48.990818073', 'original'); select insert_num,part,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,b from part_change_various_various_float order by insert_num; @@ -190,10 +199,10 @@ select insert_num,part,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,b from part_change_var alter table part_change_various_various_float replace columns (insert_num int, c1 FLOAT, c2 FLOAT, c3 FLOAT, c4 FLOAT, c5 FLOAT, c6 FLOAT, c7 FLOAT, c8 FLOAT, c9 FLOAT, c10 FLOAT, c11 FLOAT, b STRING); insert into table part_change_various_various_float partition(part=2) - values (5, 953967041., 62.0791539559013466, 718.78, 1, 203.199548118, -60, 6275638713485623898, -230, -695025, -3651.67212, 46114.28, 'new'); + values (6, 953967041., 62.0791539559013466, 718.78, 1, 203.199548118, -60, 6275638713485623898, -230, -695025, -3651.67212, 46114.28, 'new'); insert into table part_change_various_various_float partition(part=1) - values (6, -1255178165.77663, 9043162437544575070.974, -4314.7918, -1240033819, 91, 1698.95, -100.3597812, -63, 0, -93222.200, 29.076, 'new'); + values (7, -1255178165.77663, 9043162437544575070.974, -4314.7918, -1240033819, 91, 1698.95, -100.3597812, -63, 0, -93222.200, 29.076, 'new'); explain select insert_num,part,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,b from part_change_various_various_float order by insert_num; @@ -211,9 +220,10 @@ CREATE TABLE part_change_various_various_double(insert_num int, c1 BOOLEAN, c2 T insert into table part_change_various_various_double partition(part=1) values(1, -2999, 200, 72909, 3244222, -29.0764, 470614135, 470614135, '-2999', '-2999', '-2999', '0004-09-22 18:26:29.519542222', 'original'), - (2, 0, 100, 483777, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), - (3, false, 72, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '1', '1', '1', '6229-06-28 02:54:28.970117179', 'original'), - (4, 1, -90, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '5299', '5299', '5299', '2002-05-10 05:29:48.990818073', 'original'); + (2, 0, 100, 32767, -23372036854775, -3651.672121, -9223372036854775808.0, 9223372036854775807.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, 100, -32768, 23372036854775, -3651.672121, -9223372036854775809.0, 9223372036854775808.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, 72, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '1', '1', '1', '6229-06-28 02:54:28.970117179', 'original'), + (5, 1, -90, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '5299', '5299', '5299', '2002-05-10 05:29:48.990818073', 'original'); select insert_num,part,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,b from part_change_various_various_double order by insert_num; @@ -221,10 +231,10 @@ select insert_num,part,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,b from part_change_var alter table part_change_various_various_double replace columns (insert_num int, c1 DOUBLE, c2 DOUBLE, c3 DOUBLE, c4 DOUBLE, c5 DOUBLE, c6 DOUBLE, c7 DOUBLE, c8 DOUBLE, c9 DOUBLE, c10 DOUBLE, c11 DOUBLE, b STRING); insert into table part_change_various_various_double partition(part=2) - values (5, 953967041., 62.0791539559013466, 718.78, 1, 203.199548118, -60, 6275638713485623898, -230, -695025, 0.00007011717, 4.28479948, 'new'); + values (6, 953967041., 62.0791539559013466, 718.78, 1, 203.199548118, -60, 6275638713485623898, -230, -695025, 0.00007011717, 4.28479948, 'new'); insert into table part_change_various_various_double partition(part=1) - values (6, -1255178165.77663, 9043162437544575070.974, -4314.7918, -1240033819, 91, 1698.95, -100.3597812, -63, 0, -66475.0000008, -284799488.1, 'new'); + values (7, -1255178165.77663, 9043162437544575070.974, -4314.7918, -1240033819, 91, 1698.95, -100.3597812, -63, 0, -66475.0000008, -284799488.1, 'new'); explain select insert_num,part,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,b from part_change_various_various_double order by insert_num; @@ -242,9 +252,10 @@ CREATE TABLE part_change_various_various_decimal(insert_num int, c1 BOOLEAN, c2 insert into table part_change_various_various_decimal partition(part=1) values(1, -2999, 200, 72909, 3244222, -29.0764, 470614135, 470614135, '--1551801.09502', '--1551801.09502', '--1551801.09502', '0004-09-22 18:26:29.519542222', 'original'), - (2, 0, 100, 483777, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), - (3, false, 72, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '1', '1', '1', '6229-06-28 02:54:28.970117179', 'original'), - (4, 1, -90, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '2402.3', '2402.3', '2402.3', '2002-05-10 05:29:48.990818073', 'original'); + (2, 0, 100, 32767, -23372036854775, -3651.672121, -9223372036854775808.0, 9223372036854775807.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, 100, -32768, 23372036854775, -3651.672121, -9223372036854775809.0, 9223372036854775808.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, 72, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '1', '1', '1', '6229-06-28 02:54:28.970117179', 'original'), + (5, 1, -90, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '2402.3', '2402.3', '2402.3', '2002-05-10 05:29:48.990818073', 'original'); select insert_num,part,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,b from part_change_various_various_decimal order by insert_num; @@ -252,10 +263,10 @@ select insert_num,part,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,b from part_change_var alter table part_change_various_various_decimal replace columns (insert_num int, c1 DECIMAL(38,18), c2 DECIMAL(38,18), c3 DECIMAL(38,18), c4 DECIMAL(38,18), c5 DECIMAL(38,18), c6 DECIMAL(38,18), c7 DECIMAL(38,18), c8 DECIMAL(38,18), c9 DECIMAL(38,18), c10 DECIMAL(38,18), c11 DECIMAL(38,18), b STRING); insert into table part_change_various_various_decimal partition(part=2) - values (5, 953967041., 62.0791539559013466, 718.78, 1, 203.199548118, -60, 6275638713485623898, -230, -695025, 0.00007011717, 4.28479948, 'new'); + values (6, 953967041., 62.0791539559013466, 718.78, 1, 203.199548118, -60, 6275638713485623898, -230, -695025, 0.00007011717, 4.28479948, 'new'); insert into table part_change_various_various_decimal partition(part=1) - values (6,-1255178165.77663, 9043162437544575070.974, -4314.7918, -1240033819, 91, 1698.95, -100.3597812, -63, 0, -66475.0000008, -284799488.1, 'new'); + values (7,-1255178165.77663, 9043162437544575070.974, -4314.7918, -1240033819, 91, 1698.95, -100.3597812, -63, 0, -66475.0000008, -284799488.1, 'new'); explain select insert_num,part,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,b from part_change_various_various_decimal order by insert_num; @@ -273,9 +284,10 @@ CREATE TABLE part_change_various_various_string(insert_num int, c1 BOOLEAN, c2 T insert into table part_change_various_various_string partition(part=1) values(1, true, 200, 72909, 3244222, -99999999999, -29.0764, 470614135, 470614135, 'dynamic reptile ', 'dynamic reptile ', '0004-09-22 18:26:29.519542222', '2007-02-09', 'binary', 'original'), - (2, 0, 100, 483777, 14, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, ' baffling ', ' baffling ', '2007-02-09 05:17:29.368756876', '0004-09-22', 'binary', 'original'), - (3, false, 72, 3244222, -93222, 30.774, - 66475.561431, -66475.561431, 0.561431, '1', '1', '6229-06-28 02:54:28.970117179', '5966-07-09', 'binary', 'original'), - (4, 1, -90, 754072151, 3289094, 46114.284799488, 9250340.75, 9250340.75, 9250340.75, 'junkyard', 'junkyard', '2002-05-10 05:29:48.990818073', '1815-05-06', 'binary', 'original'); + (2, 0, 100, 32767, -23372036854775, -3651.672121, -9223372036854775808.0, 9223372036854775807.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, 100, -32768, 23372036854775, -3651.672121, -9223372036854775809.0, 9223372036854775808.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, 72, 3244222, -93222, 30.774, - 66475.561431, -66475.561431, 0.561431, '1', '1', '6229-06-28 02:54:28.970117179', '5966-07-09', 'binary', 'original'), + (5, 1, -90, 754072151, 3289094, 46114.284799488, 9250340.75, 9250340.75, 9250340.75, 'junkyard', 'junkyard', '2002-05-10 05:29:48.990818073', '1815-05-06', 'binary', 'original'); select insert_num,part,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,b from part_change_various_various_string order by insert_num; @@ -283,10 +295,10 @@ select insert_num,part,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,b from part_ch alter table part_change_various_various_string replace columns (insert_num int, c1 STRING, c2 STRING, c3 STRING, c4 STRING, c5 STRING, c6 STRING, c7 STRING, c8 STRING, c9 STRING, c10 STRING, c11 STRING, c12 STRING, c13 STRING, b STRING); insert into table part_change_various_various_string partition(part=2) - values (5, 'true', '400', '44388', -'100', '953967041.', '62.079153', '718.78', '1', 'verdict', 'verdict', 'timestamp', 'date', 'binary', 'new'); + values (6, 'true', '400', '44388', -'100', '953967041.', '62.079153', '718.78', '1', 'verdict', 'verdict', 'timestamp', 'date', 'binary', 'new'); insert into table part_change_various_various_string partition(part=1) - values (6,-'false', '-67', '833', '63993', ' 1255178165.77663', '905070.974', '-4314.7918', -'1240033819', 'trial', 'trial', '2016-03-07 03:02:22.0', '2016-03-07', 'binary', 'new'); + values (7,-'false', '-67', '833', '63993', ' 1255178165.77663', '905070.974', '-4314.7918', -'1240033819', 'trial', 'trial', '2016-03-07 03:02:22.0', '2016-03-07', 'binary', 'new'); explain select insert_num,part,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,b from part_change_various_various_string order by insert_num; @@ -304,9 +316,10 @@ CREATE TABLE part_change_various_various_char(insert_num int, c1 BOOLEAN, c2 TIN insert into table part_change_various_various_char partition(part=1) values(1, true, 200, 72909, 3244222, -99999999999, -29.0764, 470614135, 470614135, 'dynamic reptile ', 'dynamic reptile ', '0004-09-22 18:26:29.519542222', '2007-02-09', 'binary', 'original'), - (2, 0, 100, 483777, 14, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, ' baffling ', ' baffling ', '2007-02-09 05:17:29.368756876', '0004-09-22', 'binary', 'original'), - (3, false, 72, 3244222, -93222, 30.774, - 66475.561431, -66475.561431, 0.561431, '1', '1', '6229-06-28 02:54:28.970117179', '5966-07-09', 'binary', 'original'), - (4, 1, -90, 754072151, 3289094, 46114.284799488, 9250340.75, 9250340.75, 9250340.75, 'junkyard', 'junkyard', '2002-05-10 05:29:48.990818073', '1815-05-06', 'binary', 'original'); + (2, 0, 100, 32767, -23372036854775, -3651.672121, -9223372036854775808.0, 9223372036854775807.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, 100, -32768, 23372036854775, -3651.672121, -9223372036854775809.0, 9223372036854775808.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, 72, 3244222, -93222, 30.774, - 66475.561431, -66475.561431, 0.561431, '1', '1', '6229-06-28 02:54:28.970117179', '5966-07-09', 'binary', 'original'), + (5, 1, -90, 754072151, 3289094, 46114.284799488, 9250340.75, 9250340.75, 9250340.75, 'junkyard', 'junkyard', '2002-05-10 05:29:48.990818073', '1815-05-06', 'binary', 'original'); select insert_num,part,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,b from part_change_various_various_char order by insert_num; @@ -314,10 +327,10 @@ select insert_num,part,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,b from part_ch alter table part_change_various_various_char replace columns (insert_num int, c1 CHAR(25), c2 CHAR(25), c3 CHAR(25), c4 CHAR(25), c5 CHAR(25), c6 CHAR(25), c7 CHAR(25), c8 CHAR(25), c9 CHAR(25), c10 CHAR(25), c11 CHAR(25), c12 CHAR(25), c13 CHAR(25), b STRING); insert into table part_change_various_various_char partition(part=2) - values (5, 'true', '400', '44388', -'100', '953967041.', '62.079153', '718.78', '1', 'verdict', 'verdict', 'timestamp', 'date', 'binary', 'new'); + values (6, 'true', '400', '44388', -'100', '953967041.', '62.079153', '718.78', '1', 'verdict', 'verdict', 'timestamp', 'date', 'binary', 'new'); insert into table part_change_various_various_char partition(part=1) - values (6,-'false', '-67', '833', '63993', ' 1255178165.77663', '905070.974', '-4314.7918', -'1240033819', 'trial', 'trial', '2016-03-07 03:02:22.0', '2016-03-07', 'binary', 'new'); + values (7,-'false', '-67', '833', '63993', ' 1255178165.77663', '905070.974', '-4314.7918', -'1240033819', 'trial', 'trial', '2016-03-07 03:02:22.0', '2016-03-07', 'binary', 'new'); explain select insert_num,part,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,b from part_change_various_various_char order by insert_num; @@ -335,9 +348,10 @@ CREATE TABLE part_change_various_various_char_trunc(insert_num int, c1 BOOLEAN, insert into table part_change_various_various_char_trunc partition(part=1) values(1, true, 200, 72909, 3244222, -99999999999, -29.0764, 470614135, 470614135, 'dynamic reptile ', 'dynamic reptile ', '0004-09-22 18:26:29.519542222', '2007-02-09', 'binary', 'original'), - (2, 0, 100, 483777, 14, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, ' baffling ', ' baffling ', '2007-02-09 05:17:29.368756876', '0004-09-22', 'binary', 'original'), - (3, false, 72, 3244222, -93222, 30.774, - 66475.561431, -66475.561431, 0.561431, '1', '1', '6229-06-28 02:54:28.970117179', '5966-07-09', 'binary', 'original'), - (4, 1, -90, 754072151, 3289094, 46114.284799488, 9250340.75, 9250340.75, 9250340.75, 'junkyard', 'junkyard', '2002-05-10 05:29:48.990818073', '1815-05-06', 'binary', 'original'); + (2, 0, 100, 32767, -23372036854775, -3651.672121, -9223372036854775808.0, 9223372036854775807.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, 100, -32768, 23372036854775, -3651.672121, -9223372036854775809.0, 9223372036854775808.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, 72, 3244222, -93222, 30.774, - 66475.561431, -66475.561431, 0.561431, '1', '1', '6229-06-28 02:54:28.970117179', '5966-07-09', 'binary', 'original'), + (5, 1, -90, 754072151, 3289094, 46114.284799488, 9250340.75, 9250340.75, 9250340.75, 'junkyard', 'junkyard', '2002-05-10 05:29:48.990818073', '1815-05-06', 'binary', 'original'); select insert_num,part,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,b from part_change_various_various_char_trunc order by insert_num; @@ -345,10 +359,10 @@ select insert_num,part,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,b from part_ch alter table part_change_various_various_char_trunc replace columns (insert_num int, c1 CHAR(8), c2 CHAR(8), c3 CHAR(8), c4 CHAR(8), c5 CHAR(8), c6 CHAR(8), c7 CHAR(8), c8 CHAR(8), c9 CHAR(8), c10 CHAR(8), c11 CHAR(8), c12 CHAR(8), c13 CHAR(8), b STRING); insert into table part_change_various_various_char_trunc partition(part=2) - values (5, 'true', '400', '44388', -'100', '953967041.', '62.079153', '718.78', '1', 'verdict', 'verdict', 'timestamp', 'date', 'binary', 'new'); + values (6, 'true', '400', '44388', -'100', '953967041.', '62.079153', '718.78', '1', 'verdict', 'verdict', 'timestamp', 'date', 'binary', 'new'); insert into table part_change_various_various_char_trunc partition(part=1) - values (6,-'false', '-67', '833', '63993', ' 1255178165.77663', '905070.974', '-4314.7918', -'1240033819', 'trial', 'trial', '2016-03-07 03:02:22.0', '2016-03-07', 'binary', 'new'); + values (7,-'false', '-67', '833', '63993', ' 1255178165.77663', '905070.974', '-4314.7918', -'1240033819', 'trial', 'trial', '2016-03-07 03:02:22.0', '2016-03-07', 'binary', 'new'); explain select insert_num,part,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,b from part_change_various_various_char_trunc order by insert_num; @@ -366,9 +380,10 @@ CREATE TABLE part_change_various_various_varchar(insert_num int, c1 BOOLEAN, c2 insert into table part_change_various_various_varchar partition(part=1) values(1, true, 200, 72909, 3244222, -99999999999, -29.0764, 470614135, 470614135, 'dynamic reptile ', 'dynamic reptile ', '0004-09-22 18:26:29.519542222', '2007-02-09', 'binary', 'original'), - (2, 0, 100, 483777, 14, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, ' baffling ', ' baffling ', '2007-02-09 05:17:29.368756876', '0004-09-22', 'binary', 'original'), - (3, false, 72, 3244222, -93222, 30.774, - 66475.561431, -66475.561431, 0.561431, '1', '1', '6229-06-28 02:54:28.970117179', '5966-07-09', 'binary', 'original'), - (4, 1, -90, 754072151, 3289094, 46114.284799488, 9250340.75, 9250340.75, 9250340.75, 'junkyard', 'junkyard', '2002-05-10 05:29:48.990818073', '1815-05-06', 'binary', 'original'); + (2, 0, 100, 32767, -23372036854775, -9223372036854775808.0, -9223372036854775808.0, 9223372036854775807.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, 100, -32768, 23372036854775, -9223372036854775809.0, -9223372036854775809.0, 9223372036854775808.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, 72, 3244222, -93222, 30.774, - 66475.561431, -66475.561431, 0.561431, '1', '1', '6229-06-28 02:54:28.970117179', '5966-07-09', 'binary', 'original'), + (5, 1, -90, 754072151, 3289094, 46114.284799488, 9250340.75, 9250340.75, 9250340.75, 'junkyard', 'junkyard', '2002-05-10 05:29:48.990818073', '1815-05-06', 'binary', 'original'); select insert_num,part,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,b from part_change_various_various_varchar order by insert_num; @@ -376,10 +391,10 @@ select insert_num,part,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,b from part_ch alter table part_change_various_various_varchar replace columns (insert_num int, c1 VARCHAR(25), c2 VARCHAR(25), c3 VARCHAR(25), c4 VARCHAR(25), c5 VARCHAR(25), c6 VARCHAR(25), c7 VARCHAR(25), c8 VARCHAR(25), c9 VARCHAR(25), c10 VARCHAR(25), c11 VARCHAR(25), c12 VARCHAR(25), c13 VARCHAR(25), b STRING); insert into table part_change_various_various_varchar partition(part=2) - values (5, 'true', '400', '44388', -'100', '953967041.', '62.079153', '718.78', '1', 'verdict', 'verdict', 'timestamp', 'date', 'binary', 'new'); + values (6, 'true', '400', '44388', -'100', '953967041.', '62.079153', '718.78', '1', 'verdict', 'verdict', 'timestamp', 'date', 'binary', 'new'); insert into table part_change_various_various_varchar partition(part=1) - values (6,-'false', '-67', '833', '63993', ' 1255178165.77663', '905070.974', '-4314.7918', -'1240033819', 'trial', 'trial', '2016-03-07 03:02:22.0', '2016-03-07', 'binary', 'new'); + values (7,-'false', '-67', '833', '63993', ' 1255178165.77663', '905070.974', '-4314.7918', -'1240033819', 'trial', 'trial', '2016-03-07 03:02:22.0', '2016-03-07', 'binary', 'new'); explain select insert_num,part,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,b from part_change_various_various_varchar order by insert_num; @@ -397,7 +412,8 @@ CREATE TABLE part_change_various_various_varchar_trunc(insert_num int, c1 BOOLEA insert into table part_change_various_various_varchar_trunc partition(part=1) values(1, true, 200, 72909, 3244222, -99999999999, -29.0764, 470614135, 470614135, 'dynamic reptile ', 'dynamic reptile ', '0004-09-22 18:26:29.519542222', '2007-02-09', 'binary', 'original'), - (2, 0, 100, 483777, 14, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, ' baffling ', ' baffling ', '2007-02-09 05:17:29.368756876', '0004-09-22', 'binary', 'original'), + (2, 0, 100, 32767, -23372036854775, -9223372036854775808.0, -9223372036854775808.0, 9223372036854775807.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, 100, -32768, 23372036854775, -9223372036854775809.0, -9223372036854775809.0, 9223372036854775808.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), (3, false, 72, 3244222, -93222, 30.774, - 66475.561431, -66475.561431, 0.561431, '1', '1', '6229-06-28 02:54:28.970117179', '5966-07-09', 'binary', 'original'), (4, 1, -90, 754072151, 3289094, 46114.284799488, 9250340.75, 9250340.75, 9250340.75, 'junkyard', 'junkyard', '2002-05-10 05:29:48.990818073', '1815-05-06', 'binary', 'original'); @@ -428,9 +444,10 @@ CREATE TABLE part_change_various_various_timestamp(insert_num int, c1 BOOLEAN, c insert into table part_change_various_various_timestamp partition(part=1) values(1, true, 200, 72909, 3244222, -99999999999, -29.0764, 470614135, 470614135, '0004-09-22 18:26:29.519542222', '0004-09-22 18:26:29.519542222', '0004-09-22 18:26:29.519542222', '2007-02-09', 'original'), - (2, 0, 100, 483777, 14, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, '2007-02-09 05:17:29.368756876', '2007-02-09 05:17:29.368756876', '2007-02-09 05:17:29.368756876', '0004-09-22', 'original'), - (3, false, 72, 3244222, -93222, 30.774, - 66475.561431, -66475.561431, 0.561431, '6229-06-28 02:54:28.970117179', '6229-06-28 02:54:28.970117179', '6229-06-28 02:54:28.970117179', '5966-07-09', 'original'), - (4, 1, -90, 754072151, 3289094, 46114.284799488, 9250340.75, 9250340.75, 9250340.75, '2002-05-10 05:29:48.990818073', '2002-05-10 05:29:48.990818073', '2002-05-10 05:29:48.990818073', '1815-05-06', 'original'); + (2, 0, 100, 32767, -23372036854775, -9223372036854775808.0, -9223372036854775808.0, 9223372036854775807.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, 100, -32768, 23372036854775, -9223372036854775809.0, -9223372036854775809.0, 9223372036854775808.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, 72, 3244222, -93222, 30.774, - 66475.561431, -66475.561431, 0.561431, '6229-06-28 02:54:28.970117179', '6229-06-28 02:54:28.970117179', '6229-06-28 02:54:28.970117179', '5966-07-09', 'original'), + (5, 1, -90, 754072151, 3289094, 46114.284799488, 9250340.75, 9250340.75, 9250340.75, '2002-05-10 05:29:48.990818073', '2002-05-10 05:29:48.990818073', '2002-05-10 05:29:48.990818073', '1815-05-06', 'original'); select insert_num,part,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,b from part_change_various_various_timestamp order by insert_num; @@ -438,10 +455,10 @@ select insert_num,part,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,b from part_change alter table part_change_various_various_timestamp replace columns (insert_num int, c1 TIMESTAMP, c2 TIMESTAMP, c3 TIMESTAMP, c4 TIMESTAMP, c5 TIMESTAMP, c6 TIMESTAMP, c7 TIMESTAMP, c8 TIMESTAMP, c9 TIMESTAMP, c10 TIMESTAMP, c11 TIMESTAMP, c12 TIMESTAMP, b STRING); insert into table part_change_various_various_timestamp partition(part=2) - values (5, 'true', '400', '44388', -'100', '953967041.', '62.079153', '718.78', '1', 'timestamp', 'timestamp', 'timestamp', 'date', 'new'); + values (6, 'true', '400', '44388', -'100', '953967041.', '62.079153', '718.78', '1', 'timestamp', 'timestamp', 'timestamp', 'date', 'new'); insert into table part_change_various_various_timestamp partition(part=1) - values (6,-'false', '-67', '833', '63993', ' 1255178165.77663', '905070.974', '-4314.7918', -'1240033819', '2016-03-07 03:02:22.0', '2016-03-07 03:02:22.0', '2016-03-07 03:02:22.0', '2016-03-07', 'new'); + values (7,-'false', '-67', '833', '63993', ' 1255178165.77663', '905070.974', '-4314.7918', -'1240033819', '2016-03-07 03:02:22.0', '2016-03-07 03:02:22.0', '2016-03-07 03:02:22.0', '2016-03-07', 'new'); explain select insert_num,part,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,b from part_change_various_various_timestamp order by insert_num; diff --git ql/src/test/queries/clientpositive/schema_evol_text_nonvec_mapwork_part_all_primitive.q ql/src/test/queries/clientpositive/schema_evol_text_nonvec_mapwork_part_all_primitive.q index 7ea38ea..b013884 100644 --- ql/src/test/queries/clientpositive/schema_evol_text_nonvec_mapwork_part_all_primitive.q +++ ql/src/test/queries/clientpositive/schema_evol_text_nonvec_mapwork_part_all_primitive.q @@ -52,14 +52,16 @@ drop table part_change_various_various_boolean; -- -- SUBSECTION: ALTER TABLE CHANGE COLUMNS for Various --> Various: (BOOLEAN, SHORT, INT, LONG, FLOAT, DOUBLE, DECIMAL, STRING, CHAR, VARCHAR, TIMESTAMP) --> BYTE +-- -128 and a maximum value of 127 -- CREATE TABLE part_change_various_various_tinyint(insert_num int, c1 BOOLEAN, c2 SMALLINT, c3 INT, c4 BIGINT, c5 FLOAT, c6 DOUBLE, c7 DECIMAL(38,18), c8 STRING, c9 CHAR(25), c10 VARCHAR(25), c11 TIMESTAMP, b STRING) PARTITIONED BY(part INT); insert into table part_change_various_various_tinyint partition(part=1) - values(1, true, 2000, 72909, 3244222, -29.0764, 470614135, 470614135, '-2999', '-2999', '-2999', '0004-09-22 18:26:29.519542222', 'original'), - (2, 0, 1000, 483777, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), - (3, false, 72909, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '1', '1', '1', '6229-06-28 02:54:28.970117179', 'original'), - (4, 1, 90000, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '5299', '5299', '5299', '2002-05-10 05:29:48.990818073', 'original'); + values(1, true, 2000, 72909, 3244222, -29.0764, 470614135, 470614135, '129', '-128', '-2999', '0004-09-22 18:26:29.519542222', 'original'), + (2, 0, -128, -48, -20, -9223372036854775808.0, -9223372036854775808.0, 9223372036854775807.0, '128', '-99', '40', '2007-02-09 05:17:29.368756876', 'original'), + (3, -1, -129, 100, 499, -9223372036854775809.0, -9223372036854775809.0, 9223372036854775808.0, '128', '-99', '40', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, -72, -127, 127, 30.774, 127.561431, -106.561431, '90.284799488', '90.284799488', '1', '6229-06-28 02:54:28.970117179', 'original'), + (5, 1, -90, 75, -38, 109.284799488 ,-128.75, 98.75, '120.4', '33.333', '0.45', '2002-05-10 05:29:48.990818073', 'original'); select insert_num,part,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,b from part_change_various_various_tinyint order by insert_num; @@ -67,10 +69,10 @@ select insert_num,part,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,b from part_change_var alter table part_change_various_various_tinyint replace columns (insert_num int, c1 TINYINT, c2 TINYINT, c3 TINYINT, c4 TINYINT, c5 TINYINT, c6 TINYINT, c7 TINYINT, c8 TINYINT, c9 TINYINT, c10 TINYINT, c11 TINYINT, b STRING); insert into table part_change_various_various_tinyint partition(part=2) - values (5, 23, 71, 127, 1, 131, -60, 68, -230, -182, 40, 93, 'new'); + values (6, 23, 71, 127, 1, 131, -60, 68, -230, -182, 40, 93, 'new'); insert into table part_change_various_various_tinyint partition(part=1) - values (6, -248, 85, -126, -167, 91, 113, -28, -63, 0, 8, 237, 'new'); + values (7, -120, 85, -126, -167, 91, 113, -28, -63, 0, 8, 237, 'new'); explain select insert_num,part,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,b from part_change_various_various_tinyint order by insert_num; @@ -83,14 +85,16 @@ drop table part_change_various_various_tinyint; -- -- SUBSECTION: ALTER TABLE CHANGE COLUMNS for Various --> Various: (BOOLEAN, TINYINT, INT, LONG, FLOAT, DOUBLE, DECIMAL, STRING, CHAR, VARCHAR, TIMESTAMP) --> SMALLINT +-- -32768 and a maximum value of 32767 -- CREATE TABLE part_change_various_various_smallint(insert_num int, c1 BOOLEAN, c2 TINYINT, c3 INT, c4 BIGINT, c5 FLOAT, c6 DOUBLE, c7 DECIMAL(38,18), c8 STRING, c9 CHAR(25), c10 VARCHAR(25), c11 TIMESTAMP, b STRING) PARTITIONED BY(part INT); insert into table part_change_various_various_smallint partition(part=1) values(1, -2999, 200, 72909, 3244222, -29.0764, 470614135, 470614135, '-2999', '-2999', '-2999', '0004-09-22 18:26:29.519542222', 'original'), - (2, 0, 100, 483777, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), - (3, false, 72, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '1', '1', '1', '6229-06-28 02:54:28.970117179', 'original'), - (4, 1, -90, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '5299', '5299', '5299', '2002-05-10 05:29:48.990818073', 'original'); + (2, 0, 100, -32768 , 32767, -3651.672121, -9223372036854775808.0, 9223372036854775807.0, '9000', '32767', '-32768', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, -127, -40000 , 32768, -3651.672121, -9223372036854775809.0, 9223372036854775808.0, '9000', '32767', '-32768', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, 72, 32422, -9322, 30.774, -6675.561431, -6675.561431, '1', '1', '1', '6229-06-28 02:54:28.970117179', 'original'), + (5, 1, -90, 7151, 3094, 30000.284799488 ,-9000.75, 0.75, '5299', '5299', '5299', '2002-05-10 05:29:48.990818073', 'original'); select insert_num,part,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,b from part_change_various_various_smallint order by insert_num; @@ -98,10 +102,10 @@ select insert_num,part,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,b from part_change_var alter table part_change_various_various_smallint replace columns (insert_num int, c1 SMALLINT, c2 SMALLINT, c3 SMALLINT, c4 SMALLINT, c5 SMALLINT, c6 SMALLINT, c7 SMALLINT, c8 SMALLINT, c9 SMALLINT, c10 SMALLINT, c11 SMALLINT, b STRING); insert into table part_change_various_various_smallint partition(part=2) - values (5, -30486, 15230, 3117, 1, -117, -7131, 20227, -24858, -28771, 46114, 72909, 'new'); + values (6, -30486, 15230, 3117, 1, -117, -7131, 20227, -24858, -28771, 46114, 72909, 'new'); insert into table part_change_various_various_smallint partition(part=1) - values (6, -10542, -1805, -4844, 15507, 91, 22385, -28, -12268, 0, 66475, 774, 'new'); + values (7, -10542, -1805, -4844, 15507, 91, 22385, -28, -12268, 0, 66475, 774, 'new'); explain select insert_num,part,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,b from part_change_various_various_smallint order by insert_num; @@ -113,14 +117,16 @@ drop table part_change_various_various_smallint; -- -- SUBSECTION: ALTER TABLE CHANGE COLUMNS for Various --> Various: (BOOLEAN, TINYINT, SMALLINT, LONG, FLOAT, DOUBLE, DECIMAL, STRING, CHAR, VARCHAR, TIMESTAMP) --> INT +-- –2147483648 to 2147483647 -- CREATE TABLE part_change_various_various_int(insert_num int, c1 BOOLEAN, c2 TINYINT, c3 SMALLINT, c4 BIGINT, c5 FLOAT, c6 DOUBLE, c7 DECIMAL(38,18), c8 STRING, c9 CHAR(25), c10 VARCHAR(25), c11 TIMESTAMP, b STRING) PARTITIONED BY(part INT); insert into table part_change_various_various_int partition(part=1) values(1, -2999, 200, 72909, 3244222, -29.0764, 470614135, 470614135, '-2999', '-2999', '-2999', '0004-09-22 18:26:29.519542222', 'original'), - (2, 0, 100, 483777, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), - (3, false, 72, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '1', '1', '1', '6229-06-28 02:54:28.970117179', 'original'), - (4, 1, -90, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '5299', '5299', '5299', '2002-05-10 05:29:48.990818073', 'original'); + (2, 0, 100, 2147483647, -23866739993, -3651.672121, -9223372036854775808.0, 9223372036854775807.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, 100, 2147483648, -23866739993, -3651.672121, -9223372036854775809.0, 9223372036854775808.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, 72, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '1', '1', '1', '6229-06-28 02:54:28.970117179', 'original'), + (5, 1, -90, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '5299', '5299', '5299', '2002-05-10 05:29:48.990818073', 'original'); select insert_num,part,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,b from part_change_various_various_int order by insert_num; @@ -144,14 +150,16 @@ drop table part_change_various_various_int; -- -- SUBSECTION: ALTER TABLE CHANGE COLUMNS for Various --> Various: (BOOLEAN, TINYINT, SMALLINT, INT, FLOAT, DOUBLE, DECIMAL, STRING, CHAR, VARCHAR, TIMESTAMP) --> BIGINT +-- -9223372036854775808 to 9223372036854775807 -- CREATE TABLE part_change_various_various_bigint(insert_num int, c1 BOOLEAN, c2 TINYINT, c3 SMALLINT, c4 INT, c5 FLOAT, c6 DOUBLE, c7 DECIMAL(38,18), c8 STRING, c9 CHAR(25), c10 VARCHAR(25), c11 TIMESTAMP, b STRING) PARTITIONED BY(part INT); insert into table part_change_various_various_bigint partition(part=1) values(1, -2999, 200, 72909, 3244222, -29.0764, 470614135, 470614135, '-2999', '-2999', '-2999', '0004-09-22 18:26:29.519542222', 'original'), - (2, 0, 100, 483777, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), - (3, false, 72, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '1', '1', '1', '6229-06-28 02:54:28.970117179', 'original'), - (4, 1, -90, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '1998287.3541', '1998287.3541', '1998287.3541', '2002-05-10 05:29:48.990818073', 'original'); + (2, 0, 100, 32767, -23372036854775, -3651.672121, -9223372036854775808.0, 9223372036854775807.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, 100, -32768, 23372036854775, -3651.672121, -9223372036854775809.0, 9223372036854775808.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, 72, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '1', '1', '1', '6229-06-28 02:54:28.970117179', 'original'), + (5, 1, -90, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '1998287.3541', '1998287.3541', '1998287.3541', '2002-05-10 05:29:48.990818073', 'original'); select insert_num,part,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,b from part_change_various_various_bigint order by insert_num; @@ -159,10 +167,10 @@ select insert_num,part,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,b from part_change_var alter table part_change_various_various_bigint replace columns (insert_num int, c1 BIGINT, c2 BIGINT, c3 BIGINT, c4 BIGINT, c5 BIGINT, c6 BIGINT, c7 BIGINT, c8 BIGINT, c9 BIGINT, c10 BIGINT, c11 BIGINT, b STRING); insert into table part_change_various_various_bigint partition(part=2) - values (5, 5573199346255528403, 71, 151775655, 1, 131, -60, 6275638713485623898, -230, -695025, 519542222, -29.0764, 'new'); + values (6, 5573199346255528403, 71, 151775655, 1, 131, -60, 6275638713485623898, -230, -695025, 519542222, -29.0764, 'new'); insert into table part_change_various_various_bigint partition(part=1) - values (6, -164341325, 9043162437544575070, -126, -6566204574741299000, 91, 113, -28, -63, 0, 3244222, -90, 'new'); + values (7, -164341325, 9043162437544575070, -126, -6566204574741299000, 91, 113, -28, -63, 0, 3244222, -90, 'new'); explain select insert_num,part,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,b from part_change_various_various_bigint order by insert_num; @@ -180,9 +188,10 @@ CREATE TABLE part_change_various_various_float(insert_num int, c1 BOOLEAN, c2 TI insert into table part_change_various_various_float partition(part=1) values(1, -2999, 200, 72909, 3244222, -29.0764, 470614135, 470614135, '-2999', '-2999', '-2999', '0004-09-22 18:26:29.519542222', 'original'), - (2, 0, 100, 483777, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), - (3, false, 72, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '2402.3', '2402.3', '2402.3', '6229-06-28 02:54:28.970117179', 'original'), - (4, 1, -90, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '5299', '5299', '5299', '2002-05-10 05:29:48.990818073', 'original'); + (2, 0, 100, 32767, -23372036854775, -3651.672121, -9223372036854775808.0, 9223372036854775807.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, 100, -32768, 23372036854775, -3651.672121, -9223372036854775809.0, 9223372036854775808.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, 72, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '2402.3', '2402.3', '2402.3', '6229-06-28 02:54:28.970117179', 'original'), + (5, 1, -90, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '5299', '5299', '5299', '2002-05-10 05:29:48.990818073', 'original'); select insert_num,part,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,b from part_change_various_various_float order by insert_num; @@ -190,10 +199,10 @@ select insert_num,part,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,b from part_change_var alter table part_change_various_various_float replace columns (insert_num int, c1 FLOAT, c2 FLOAT, c3 FLOAT, c4 FLOAT, c5 FLOAT, c6 FLOAT, c7 FLOAT, c8 FLOAT, c9 FLOAT, c10 FLOAT, c11 FLOAT, b STRING); insert into table part_change_various_various_float partition(part=2) - values (5, 953967041., 62.0791539559013466, 718.78, 1, 203.199548118, -60, 6275638713485623898, -230, -695025, -3651.67212, 46114.28, 'new'); + values (6, 953967041., 62.0791539559013466, 718.78, 1, 203.199548118, -60, 6275638713485623898, -230, -695025, -3651.67212, 46114.28, 'new'); insert into table part_change_various_various_float partition(part=1) - values (6, -1255178165.77663, 9043162437544575070.974, -4314.7918, -1240033819, 91, 1698.95, -100.3597812, -63, 0, -93222.200, 29.076, 'new'); + values (7, -1255178165.77663, 9043162437544575070.974, -4314.7918, -1240033819, 91, 1698.95, -100.3597812, -63, 0, -93222.200, 29.076, 'new'); explain select insert_num,part,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,b from part_change_various_various_float order by insert_num; @@ -211,9 +220,10 @@ CREATE TABLE part_change_various_various_double(insert_num int, c1 BOOLEAN, c2 T insert into table part_change_various_various_double partition(part=1) values(1, -2999, 200, 72909, 3244222, -29.0764, 470614135, 470614135, '-2999', '-2999', '-2999', '0004-09-22 18:26:29.519542222', 'original'), - (2, 0, 100, 483777, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), - (3, false, 72, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '1', '1', '1', '6229-06-28 02:54:28.970117179', 'original'), - (4, 1, -90, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '5299', '5299', '5299', '2002-05-10 05:29:48.990818073', 'original'); + (2, 0, 100, 32767, -23372036854775, -3651.672121, -9223372036854775808.0, 9223372036854775807.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, 100, -32768, 23372036854775, -3651.672121, -9223372036854775809.0, 9223372036854775808.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, 72, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '1', '1', '1', '6229-06-28 02:54:28.970117179', 'original'), + (5, 1, -90, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '5299', '5299', '5299', '2002-05-10 05:29:48.990818073', 'original'); select insert_num,part,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,b from part_change_various_various_double order by insert_num; @@ -221,10 +231,10 @@ select insert_num,part,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,b from part_change_var alter table part_change_various_various_double replace columns (insert_num int, c1 DOUBLE, c2 DOUBLE, c3 DOUBLE, c4 DOUBLE, c5 DOUBLE, c6 DOUBLE, c7 DOUBLE, c8 DOUBLE, c9 DOUBLE, c10 DOUBLE, c11 DOUBLE, b STRING); insert into table part_change_various_various_double partition(part=2) - values (5, 953967041., 62.0791539559013466, 718.78, 1, 203.199548118, -60, 6275638713485623898, -230, -695025, 0.00007011717, 4.28479948, 'new'); + values (6, 953967041., 62.0791539559013466, 718.78, 1, 203.199548118, -60, 6275638713485623898, -230, -695025, 0.00007011717, 4.28479948, 'new'); insert into table part_change_various_various_double partition(part=1) - values (6, -1255178165.77663, 9043162437544575070.974, -4314.7918, -1240033819, 91, 1698.95, -100.3597812, -63, 0, -66475.0000008, -284799488.1, 'new'); + values (7, -1255178165.77663, 9043162437544575070.974, -4314.7918, -1240033819, 91, 1698.95, -100.3597812, -63, 0, -66475.0000008, -284799488.1, 'new'); explain select insert_num,part,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,b from part_change_various_various_double order by insert_num; @@ -242,9 +252,10 @@ CREATE TABLE part_change_various_various_decimal(insert_num int, c1 BOOLEAN, c2 insert into table part_change_various_various_decimal partition(part=1) values(1, -2999, 200, 72909, 3244222, -29.0764, 470614135, 470614135, '--1551801.09502', '--1551801.09502', '--1551801.09502', '0004-09-22 18:26:29.519542222', 'original'), - (2, 0, 100, 483777, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), - (3, false, 72, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '1', '1', '1', '6229-06-28 02:54:28.970117179', 'original'), - (4, 1, -90, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '2402.3', '2402.3', '2402.3', '2002-05-10 05:29:48.990818073', 'original'); + (2, 0, 100, 32767, -23372036854775, -3651.672121, -9223372036854775808.0, 9223372036854775807.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, 100, -32768, 23372036854775, -3651.672121, -9223372036854775809.0, 9223372036854775808.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, 72, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '1', '1', '1', '6229-06-28 02:54:28.970117179', 'original'), + (5, 1, -90, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '2402.3', '2402.3', '2402.3', '2002-05-10 05:29:48.990818073', 'original'); select insert_num,part,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,b from part_change_various_various_decimal order by insert_num; @@ -252,10 +263,10 @@ select insert_num,part,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,b from part_change_var alter table part_change_various_various_decimal replace columns (insert_num int, c1 DECIMAL(38,18), c2 DECIMAL(38,18), c3 DECIMAL(38,18), c4 DECIMAL(38,18), c5 DECIMAL(38,18), c6 DECIMAL(38,18), c7 DECIMAL(38,18), c8 DECIMAL(38,18), c9 DECIMAL(38,18), c10 DECIMAL(38,18), c11 DECIMAL(38,18), b STRING); insert into table part_change_various_various_decimal partition(part=2) - values (5, 953967041., 62.0791539559013466, 718.78, 1, 203.199548118, -60, 6275638713485623898, -230, -695025, 0.00007011717, 4.28479948, 'new'); + values (6, 953967041., 62.0791539559013466, 718.78, 1, 203.199548118, -60, 6275638713485623898, -230, -695025, 0.00007011717, 4.28479948, 'new'); insert into table part_change_various_various_decimal partition(part=1) - values (6,-1255178165.77663, 9043162437544575070.974, -4314.7918, -1240033819, 91, 1698.95, -100.3597812, -63, 0, -66475.0000008, -284799488.1, 'new'); + values (7,-1255178165.77663, 9043162437544575070.974, -4314.7918, -1240033819, 91, 1698.95, -100.3597812, -63, 0, -66475.0000008, -284799488.1, 'new'); explain select insert_num,part,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,b from part_change_various_various_decimal order by insert_num; @@ -273,9 +284,10 @@ CREATE TABLE part_change_various_various_string(insert_num int, c1 BOOLEAN, c2 T insert into table part_change_various_various_string partition(part=1) values(1, true, 200, 72909, 3244222, -99999999999, -29.0764, 470614135, 470614135, 'dynamic reptile ', 'dynamic reptile ', '0004-09-22 18:26:29.519542222', '2007-02-09', 'binary', 'original'), - (2, 0, 100, 483777, 14, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, ' baffling ', ' baffling ', '2007-02-09 05:17:29.368756876', '0004-09-22', 'binary', 'original'), - (3, false, 72, 3244222, -93222, 30.774, - 66475.561431, -66475.561431, 0.561431, '1', '1', '6229-06-28 02:54:28.970117179', '5966-07-09', 'binary', 'original'), - (4, 1, -90, 754072151, 3289094, 46114.284799488, 9250340.75, 9250340.75, 9250340.75, 'junkyard', 'junkyard', '2002-05-10 05:29:48.990818073', '1815-05-06', 'binary', 'original'); + (2, 0, 100, 32767, -23372036854775, -3651.672121, -9223372036854775808.0, 9223372036854775807.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, 100, -32768, 23372036854775, -3651.672121, -9223372036854775809.0, 9223372036854775808.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, 72, 3244222, -93222, 30.774, - 66475.561431, -66475.561431, 0.561431, '1', '1', '6229-06-28 02:54:28.970117179', '5966-07-09', 'binary', 'original'), + (5, 1, -90, 754072151, 3289094, 46114.284799488, 9250340.75, 9250340.75, 9250340.75, 'junkyard', 'junkyard', '2002-05-10 05:29:48.990818073', '1815-05-06', 'binary', 'original'); select insert_num,part,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,b from part_change_various_various_string order by insert_num; @@ -283,10 +295,10 @@ select insert_num,part,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,b from part_ch alter table part_change_various_various_string replace columns (insert_num int, c1 STRING, c2 STRING, c3 STRING, c4 STRING, c5 STRING, c6 STRING, c7 STRING, c8 STRING, c9 STRING, c10 STRING, c11 STRING, c12 STRING, c13 STRING, b STRING); insert into table part_change_various_various_string partition(part=2) - values (5, 'true', '400', '44388', -'100', '953967041.', '62.079153', '718.78', '1', 'verdict', 'verdict', 'timestamp', 'date', 'binary', 'new'); + values (6, 'true', '400', '44388', -'100', '953967041.', '62.079153', '718.78', '1', 'verdict', 'verdict', 'timestamp', 'date', 'binary', 'new'); insert into table part_change_various_various_string partition(part=1) - values (6,-'false', '-67', '833', '63993', ' 1255178165.77663', '905070.974', '-4314.7918', -'1240033819', 'trial', 'trial', '2016-03-07 03:02:22.0', '2016-03-07', 'binary', 'new'); + values (7,-'false', '-67', '833', '63993', ' 1255178165.77663', '905070.974', '-4314.7918', -'1240033819', 'trial', 'trial', '2016-03-07 03:02:22.0', '2016-03-07', 'binary', 'new'); explain select insert_num,part,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,b from part_change_various_various_string order by insert_num; @@ -304,9 +316,10 @@ CREATE TABLE part_change_various_various_char(insert_num int, c1 BOOLEAN, c2 TIN insert into table part_change_various_various_char partition(part=1) values(1, true, 200, 72909, 3244222, -99999999999, -29.0764, 470614135, 470614135, 'dynamic reptile ', 'dynamic reptile ', '0004-09-22 18:26:29.519542222', '2007-02-09', 'binary', 'original'), - (2, 0, 100, 483777, 14, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, ' baffling ', ' baffling ', '2007-02-09 05:17:29.368756876', '0004-09-22', 'binary', 'original'), - (3, false, 72, 3244222, -93222, 30.774, - 66475.561431, -66475.561431, 0.561431, '1', '1', '6229-06-28 02:54:28.970117179', '5966-07-09', 'binary', 'original'), - (4, 1, -90, 754072151, 3289094, 46114.284799488, 9250340.75, 9250340.75, 9250340.75, 'junkyard', 'junkyard', '2002-05-10 05:29:48.990818073', '1815-05-06', 'binary', 'original'); + (2, 0, 100, 32767, -23372036854775, -3651.672121, -9223372036854775808.0, 9223372036854775807.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, 100, -32768, 23372036854775, -3651.672121, -9223372036854775809.0, 9223372036854775808.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, 72, 3244222, -93222, 30.774, - 66475.561431, -66475.561431, 0.561431, '1', '1', '6229-06-28 02:54:28.970117179', '5966-07-09', 'binary', 'original'), + (5, 1, -90, 754072151, 3289094, 46114.284799488, 9250340.75, 9250340.75, 9250340.75, 'junkyard', 'junkyard', '2002-05-10 05:29:48.990818073', '1815-05-06', 'binary', 'original'); select insert_num,part,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,b from part_change_various_various_char order by insert_num; @@ -314,10 +327,10 @@ select insert_num,part,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,b from part_ch alter table part_change_various_various_char replace columns (insert_num int, c1 CHAR(25), c2 CHAR(25), c3 CHAR(25), c4 CHAR(25), c5 CHAR(25), c6 CHAR(25), c7 CHAR(25), c8 CHAR(25), c9 CHAR(25), c10 CHAR(25), c11 CHAR(25), c12 CHAR(25), c13 CHAR(25), b STRING); insert into table part_change_various_various_char partition(part=2) - values (5, 'true', '400', '44388', -'100', '953967041.', '62.079153', '718.78', '1', 'verdict', 'verdict', 'timestamp', 'date', 'binary', 'new'); + values (6, 'true', '400', '44388', -'100', '953967041.', '62.079153', '718.78', '1', 'verdict', 'verdict', 'timestamp', 'date', 'binary', 'new'); insert into table part_change_various_various_char partition(part=1) - values (6,-'false', '-67', '833', '63993', ' 1255178165.77663', '905070.974', '-4314.7918', -'1240033819', 'trial', 'trial', '2016-03-07 03:02:22.0', '2016-03-07', 'binary', 'new'); + values (7,-'false', '-67', '833', '63993', ' 1255178165.77663', '905070.974', '-4314.7918', -'1240033819', 'trial', 'trial', '2016-03-07 03:02:22.0', '2016-03-07', 'binary', 'new'); explain select insert_num,part,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,b from part_change_various_various_char order by insert_num; @@ -335,9 +348,10 @@ CREATE TABLE part_change_various_various_char_trunc(insert_num int, c1 BOOLEAN, insert into table part_change_various_various_char_trunc partition(part=1) values(1, true, 200, 72909, 3244222, -99999999999, -29.0764, 470614135, 470614135, 'dynamic reptile ', 'dynamic reptile ', '0004-09-22 18:26:29.519542222', '2007-02-09', 'binary', 'original'), - (2, 0, 100, 483777, 14, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, ' baffling ', ' baffling ', '2007-02-09 05:17:29.368756876', '0004-09-22', 'binary', 'original'), - (3, false, 72, 3244222, -93222, 30.774, - 66475.561431, -66475.561431, 0.561431, '1', '1', '6229-06-28 02:54:28.970117179', '5966-07-09', 'binary', 'original'), - (4, 1, -90, 754072151, 3289094, 46114.284799488, 9250340.75, 9250340.75, 9250340.75, 'junkyard', 'junkyard', '2002-05-10 05:29:48.990818073', '1815-05-06', 'binary', 'original'); + (2, 0, 100, 32767, -23372036854775, -3651.672121, -9223372036854775808.0, 9223372036854775807.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, 100, -32768, 23372036854775, -3651.672121, -9223372036854775809.0, 9223372036854775808.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, 72, 3244222, -93222, 30.774, - 66475.561431, -66475.561431, 0.561431, '1', '1', '6229-06-28 02:54:28.970117179', '5966-07-09', 'binary', 'original'), + (5, 1, -90, 754072151, 3289094, 46114.284799488, 9250340.75, 9250340.75, 9250340.75, 'junkyard', 'junkyard', '2002-05-10 05:29:48.990818073', '1815-05-06', 'binary', 'original'); select insert_num,part,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,b from part_change_various_various_char_trunc order by insert_num; @@ -345,10 +359,10 @@ select insert_num,part,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,b from part_ch alter table part_change_various_various_char_trunc replace columns (insert_num int, c1 CHAR(8), c2 CHAR(8), c3 CHAR(8), c4 CHAR(8), c5 CHAR(8), c6 CHAR(8), c7 CHAR(8), c8 CHAR(8), c9 CHAR(8), c10 CHAR(8), c11 CHAR(8), c12 CHAR(8), c13 CHAR(8), b STRING); insert into table part_change_various_various_char_trunc partition(part=2) - values (5, 'true', '400', '44388', -'100', '953967041.', '62.079153', '718.78', '1', 'verdict', 'verdict', 'timestamp', 'date', 'binary', 'new'); + values (6, 'true', '400', '44388', -'100', '953967041.', '62.079153', '718.78', '1', 'verdict', 'verdict', 'timestamp', 'date', 'binary', 'new'); insert into table part_change_various_various_char_trunc partition(part=1) - values (6,-'false', '-67', '833', '63993', ' 1255178165.77663', '905070.974', '-4314.7918', -'1240033819', 'trial', 'trial', '2016-03-07 03:02:22.0', '2016-03-07', 'binary', 'new'); + values (7,-'false', '-67', '833', '63993', ' 1255178165.77663', '905070.974', '-4314.7918', -'1240033819', 'trial', 'trial', '2016-03-07 03:02:22.0', '2016-03-07', 'binary', 'new'); explain select insert_num,part,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,b from part_change_various_various_char_trunc order by insert_num; @@ -366,9 +380,10 @@ CREATE TABLE part_change_various_various_varchar(insert_num int, c1 BOOLEAN, c2 insert into table part_change_various_various_varchar partition(part=1) values(1, true, 200, 72909, 3244222, -99999999999, -29.0764, 470614135, 470614135, 'dynamic reptile ', 'dynamic reptile ', '0004-09-22 18:26:29.519542222', '2007-02-09', 'binary', 'original'), - (2, 0, 100, 483777, 14, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, ' baffling ', ' baffling ', '2007-02-09 05:17:29.368756876', '0004-09-22', 'binary', 'original'), - (3, false, 72, 3244222, -93222, 30.774, - 66475.561431, -66475.561431, 0.561431, '1', '1', '6229-06-28 02:54:28.970117179', '5966-07-09', 'binary', 'original'), - (4, 1, -90, 754072151, 3289094, 46114.284799488, 9250340.75, 9250340.75, 9250340.75, 'junkyard', 'junkyard', '2002-05-10 05:29:48.990818073', '1815-05-06', 'binary', 'original'); + (2, 0, 100, 32767, -23372036854775, -9223372036854775808.0, -9223372036854775808.0, 9223372036854775807.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, 100, -32768, 23372036854775, -9223372036854775809.0, -9223372036854775809.0, 9223372036854775808.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, 72, 3244222, -93222, 30.774, - 66475.561431, -66475.561431, 0.561431, '1', '1', '6229-06-28 02:54:28.970117179', '5966-07-09', 'binary', 'original'), + (5, 1, -90, 754072151, 3289094, 46114.284799488, 9250340.75, 9250340.75, 9250340.75, 'junkyard', 'junkyard', '2002-05-10 05:29:48.990818073', '1815-05-06', 'binary', 'original'); select insert_num,part,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,b from part_change_various_various_varchar order by insert_num; @@ -376,10 +391,10 @@ select insert_num,part,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,b from part_ch alter table part_change_various_various_varchar replace columns (insert_num int, c1 VARCHAR(25), c2 VARCHAR(25), c3 VARCHAR(25), c4 VARCHAR(25), c5 VARCHAR(25), c6 VARCHAR(25), c7 VARCHAR(25), c8 VARCHAR(25), c9 VARCHAR(25), c10 VARCHAR(25), c11 VARCHAR(25), c12 VARCHAR(25), c13 VARCHAR(25), b STRING); insert into table part_change_various_various_varchar partition(part=2) - values (5, 'true', '400', '44388', -'100', '953967041.', '62.079153', '718.78', '1', 'verdict', 'verdict', 'timestamp', 'date', 'binary', 'new'); + values (6, 'true', '400', '44388', -'100', '953967041.', '62.079153', '718.78', '1', 'verdict', 'verdict', 'timestamp', 'date', 'binary', 'new'); insert into table part_change_various_various_varchar partition(part=1) - values (6,-'false', '-67', '833', '63993', ' 1255178165.77663', '905070.974', '-4314.7918', -'1240033819', 'trial', 'trial', '2016-03-07 03:02:22.0', '2016-03-07', 'binary', 'new'); + values (7,-'false', '-67', '833', '63993', ' 1255178165.77663', '905070.974', '-4314.7918', -'1240033819', 'trial', 'trial', '2016-03-07 03:02:22.0', '2016-03-07', 'binary', 'new'); explain select insert_num,part,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,b from part_change_various_various_varchar order by insert_num; @@ -397,7 +412,8 @@ CREATE TABLE part_change_various_various_varchar_trunc(insert_num int, c1 BOOLEA insert into table part_change_various_various_varchar_trunc partition(part=1) values(1, true, 200, 72909, 3244222, -99999999999, -29.0764, 470614135, 470614135, 'dynamic reptile ', 'dynamic reptile ', '0004-09-22 18:26:29.519542222', '2007-02-09', 'binary', 'original'), - (2, 0, 100, 483777, 14, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, ' baffling ', ' baffling ', '2007-02-09 05:17:29.368756876', '0004-09-22', 'binary', 'original'), + (2, 0, 100, 32767, -23372036854775, -9223372036854775808.0, -9223372036854775808.0, 9223372036854775807.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, 100, -32768, 23372036854775, -9223372036854775809.0, -9223372036854775809.0, 9223372036854775808.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), (3, false, 72, 3244222, -93222, 30.774, - 66475.561431, -66475.561431, 0.561431, '1', '1', '6229-06-28 02:54:28.970117179', '5966-07-09', 'binary', 'original'), (4, 1, -90, 754072151, 3289094, 46114.284799488, 9250340.75, 9250340.75, 9250340.75, 'junkyard', 'junkyard', '2002-05-10 05:29:48.990818073', '1815-05-06', 'binary', 'original'); @@ -428,9 +444,10 @@ CREATE TABLE part_change_various_various_timestamp(insert_num int, c1 BOOLEAN, c insert into table part_change_various_various_timestamp partition(part=1) values(1, true, 200, 72909, 3244222, -99999999999, -29.0764, 470614135, 470614135, '0004-09-22 18:26:29.519542222', '0004-09-22 18:26:29.519542222', '0004-09-22 18:26:29.519542222', '2007-02-09', 'original'), - (2, 0, 100, 483777, 14, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, '2007-02-09 05:17:29.368756876', '2007-02-09 05:17:29.368756876', '2007-02-09 05:17:29.368756876', '0004-09-22', 'original'), - (3, false, 72, 3244222, -93222, 30.774, - 66475.561431, -66475.561431, 0.561431, '6229-06-28 02:54:28.970117179', '6229-06-28 02:54:28.970117179', '6229-06-28 02:54:28.970117179', '5966-07-09', 'original'), - (4, 1, -90, 754072151, 3289094, 46114.284799488, 9250340.75, 9250340.75, 9250340.75, '2002-05-10 05:29:48.990818073', '2002-05-10 05:29:48.990818073', '2002-05-10 05:29:48.990818073', '1815-05-06', 'original'); + (2, 0, 100, 32767, -23372036854775, -9223372036854775808.0, -9223372036854775808.0, 9223372036854775807.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, 100, -32768, 23372036854775, -9223372036854775809.0, -9223372036854775809.0, 9223372036854775808.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, 72, 3244222, -93222, 30.774, - 66475.561431, -66475.561431, 0.561431, '6229-06-28 02:54:28.970117179', '6229-06-28 02:54:28.970117179', '6229-06-28 02:54:28.970117179', '5966-07-09', 'original'), + (5, 1, -90, 754072151, 3289094, 46114.284799488, 9250340.75, 9250340.75, 9250340.75, '2002-05-10 05:29:48.990818073', '2002-05-10 05:29:48.990818073', '2002-05-10 05:29:48.990818073', '1815-05-06', 'original'); select insert_num,part,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,b from part_change_various_various_timestamp order by insert_num; @@ -438,10 +455,10 @@ select insert_num,part,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,b from part_change alter table part_change_various_various_timestamp replace columns (insert_num int, c1 TIMESTAMP, c2 TIMESTAMP, c3 TIMESTAMP, c4 TIMESTAMP, c5 TIMESTAMP, c6 TIMESTAMP, c7 TIMESTAMP, c8 TIMESTAMP, c9 TIMESTAMP, c10 TIMESTAMP, c11 TIMESTAMP, c12 TIMESTAMP, b STRING); insert into table part_change_various_various_timestamp partition(part=2) - values (5, 'true', '400', '44388', -'100', '953967041.', '62.079153', '718.78', '1', 'timestamp', 'timestamp', 'timestamp', 'date', 'new'); + values (6, 'true', '400', '44388', -'100', '953967041.', '62.079153', '718.78', '1', 'timestamp', 'timestamp', 'timestamp', 'date', 'new'); insert into table part_change_various_various_timestamp partition(part=1) - values (6,-'false', '-67', '833', '63993', ' 1255178165.77663', '905070.974', '-4314.7918', -'1240033819', '2016-03-07 03:02:22.0', '2016-03-07 03:02:22.0', '2016-03-07 03:02:22.0', '2016-03-07', 'new'); + values (7,-'false', '-67', '833', '63993', ' 1255178165.77663', '905070.974', '-4314.7918', -'1240033819', '2016-03-07 03:02:22.0', '2016-03-07 03:02:22.0', '2016-03-07 03:02:22.0', '2016-03-07', 'new'); explain select insert_num,part,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,b from part_change_various_various_timestamp order by insert_num; @@ -479,34 +496,3 @@ select insert_num,part,c1,c2,c3,c4,b from part_change_various_various_date order select insert_num,part,c1,c2,c3,c4,b from part_change_various_various_date order by insert_num; drop table part_change_various_various_date; - - - --- --- SUBSECTION: ALTER TABLE CHANGE COLUMNS for Various --> Various: (STRING, CHAR, VARCHAR) --> BINARY --- -CREATE TABLE part_change_various_various_binary(insert_num int, c1 STRING, c2 CHAR(25), c3 VARCHAR(25), b STRING) PARTITIONED BY(part INT); - -insert into table part_change_various_various_binary partition(part=1) - values(1, 'binary', 'binary', 'binary', 'original'), - (2, 'binary', 'binary', 'binary', 'original'), - (3, 'binary', 'binary', 'binary', 'original'), - (4, 'binary', 'binary', 'binary', 'original'); - -select insert_num,part,c1,c2,c3,b from part_change_various_various_binary order by insert_num; - --- Table-Non-Cascade CHANGE COLUMNS ... -alter table part_change_various_various_binary replace columns (insert_num int, c1 BINARY, c2 BINARY, c3 BINARY, b STRING); - -insert into table part_change_various_various_binary partition(part=2) - values (5, 'binary', 'binary', 'binary', 'new'); - -insert into table part_change_various_various_binary partition(part=1) - values (6,-'binary', 'binary', 'binary', 'new'); - -explain -select insert_num,part,c1,c2,c3,b from part_change_various_various_binary order by insert_num; - -select insert_num,part,c1,c2,c3,b from part_change_various_various_binary order by insert_num; - -drop table part_change_various_various_binary; diff --git ql/src/test/queries/clientpositive/schema_evol_text_vec_mapwork_part_all_primitive.q ql/src/test/queries/clientpositive/schema_evol_text_vec_mapwork_part_all_primitive.q index fd0b634..3496115 100644 --- ql/src/test/queries/clientpositive/schema_evol_text_vec_mapwork_part_all_primitive.q +++ ql/src/test/queries/clientpositive/schema_evol_text_vec_mapwork_part_all_primitive.q @@ -54,14 +54,16 @@ drop table part_change_various_various_boolean; -- -- SUBSECTION: ALTER TABLE CHANGE COLUMNS for Various --> Various: (BOOLEAN, SHORT, INT, LONG, FLOAT, DOUBLE, DECIMAL, STRING, CHAR, VARCHAR, TIMESTAMP) --> BYTE +-- -128 and a maximum value of 127 -- CREATE TABLE part_change_various_various_tinyint(insert_num int, c1 BOOLEAN, c2 SMALLINT, c3 INT, c4 BIGINT, c5 FLOAT, c6 DOUBLE, c7 DECIMAL(38,18), c8 STRING, c9 CHAR(25), c10 VARCHAR(25), c11 TIMESTAMP, b STRING) PARTITIONED BY(part INT); insert into table part_change_various_various_tinyint partition(part=1) - values(1, true, 2000, 72909, 3244222, -29.0764, 470614135, 470614135, '-2999', '-2999', '-2999', '0004-09-22 18:26:29.519542222', 'original'), - (2, 0, 1000, 483777, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), - (3, false, 72909, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '1', '1', '1', '6229-06-28 02:54:28.970117179', 'original'), - (4, 1, 90000, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '5299', '5299', '5299', '2002-05-10 05:29:48.990818073', 'original'); + values(1, true, 2000, 72909, 3244222, -29.0764, 470614135, 470614135, '129', '-128', '-2999', '0004-09-22 18:26:29.519542222', 'original'), + (2, 0, -128, -48, -20, -9223372036854775808.0, -9223372036854775808.0, 9223372036854775807.0, '128', '-99', '40', '2007-02-09 05:17:29.368756876', 'original'), + (3, -1, -129, 100, 499, -9223372036854775809.0, -9223372036854775809.0, 9223372036854775808.0, '128', '-99', '40', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, -72, -127, 127, 30.774, 127.561431, -106.561431, '90.284799488', '90.284799488', '1', '6229-06-28 02:54:28.970117179', 'original'), + (5, 1, -90, 75, -38, 109.284799488 ,-128.75, 98.75, '120.4', '33.333', '0.45', '2002-05-10 05:29:48.990818073', 'original'); select insert_num,part,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,b from part_change_various_various_tinyint order by insert_num; @@ -69,10 +71,10 @@ select insert_num,part,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,b from part_change_var alter table part_change_various_various_tinyint replace columns (insert_num int, c1 TINYINT, c2 TINYINT, c3 TINYINT, c4 TINYINT, c5 TINYINT, c6 TINYINT, c7 TINYINT, c8 TINYINT, c9 TINYINT, c10 TINYINT, c11 TINYINT, b STRING); insert into table part_change_various_various_tinyint partition(part=2) - values (5, 23, 71, 127, 1, 131, -60, 68, -230, -182, 40, 93, 'new'); + values (6, 23, 71, 127, 1, 131, -60, 68, -230, -182, 40, 93, 'new'); insert into table part_change_various_various_tinyint partition(part=1) - values (6, -248, 85, -126, -167, 91, 113, -28, -63, 0, 8, 237, 'new'); + values (7, -120, 85, -126, -167, 91, 113, -28, -63, 0, 8, 237, 'new'); explain select insert_num,part,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,b from part_change_various_various_tinyint order by insert_num; @@ -85,14 +87,16 @@ drop table part_change_various_various_tinyint; -- -- SUBSECTION: ALTER TABLE CHANGE COLUMNS for Various --> Various: (BOOLEAN, TINYINT, INT, LONG, FLOAT, DOUBLE, DECIMAL, STRING, CHAR, VARCHAR, TIMESTAMP) --> SMALLINT +-- -32768 and a maximum value of 32767 -- CREATE TABLE part_change_various_various_smallint(insert_num int, c1 BOOLEAN, c2 TINYINT, c3 INT, c4 BIGINT, c5 FLOAT, c6 DOUBLE, c7 DECIMAL(38,18), c8 STRING, c9 CHAR(25), c10 VARCHAR(25), c11 TIMESTAMP, b STRING) PARTITIONED BY(part INT); insert into table part_change_various_various_smallint partition(part=1) values(1, -2999, 200, 72909, 3244222, -29.0764, 470614135, 470614135, '-2999', '-2999', '-2999', '0004-09-22 18:26:29.519542222', 'original'), - (2, 0, 100, 483777, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), - (3, false, 72, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '1', '1', '1', '6229-06-28 02:54:28.970117179', 'original'), - (4, 1, -90, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '5299', '5299', '5299', '2002-05-10 05:29:48.990818073', 'original'); + (2, 0, 100, -32768 , 32767, -3651.672121, -9223372036854775808.0, 9223372036854775807.0, '9000', '32767', '-32768', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, -127, -40000 , 32768, -3651.672121, -9223372036854775809.0, 9223372036854775808.0, '9000', '32767', '-32768', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, 72, 32422, -9322, 30.774, -6675.561431, -6675.561431, '1', '1', '1', '6229-06-28 02:54:28.970117179', 'original'), + (5, 1, -90, 7151, 3094, 30000.284799488 ,-9000.75, 0.75, '5299', '5299', '5299', '2002-05-10 05:29:48.990818073', 'original'); select insert_num,part,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,b from part_change_various_various_smallint order by insert_num; @@ -100,10 +104,10 @@ select insert_num,part,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,b from part_change_var alter table part_change_various_various_smallint replace columns (insert_num int, c1 SMALLINT, c2 SMALLINT, c3 SMALLINT, c4 SMALLINT, c5 SMALLINT, c6 SMALLINT, c7 SMALLINT, c8 SMALLINT, c9 SMALLINT, c10 SMALLINT, c11 SMALLINT, b STRING); insert into table part_change_various_various_smallint partition(part=2) - values (5, -30486, 15230, 3117, 1, -117, -7131, 20227, -24858, -28771, 46114, 72909, 'new'); + values (6, -30486, 15230, 3117, 1, -117, -7131, 20227, -24858, -28771, 46114, 72909, 'new'); insert into table part_change_various_various_smallint partition(part=1) - values (6, -10542, -1805, -4844, 15507, 91, 22385, -28, -12268, 0, 66475, 774, 'new'); + values (7, -10542, -1805, -4844, 15507, 91, 22385, -28, -12268, 0, 66475, 774, 'new'); explain select insert_num,part,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,b from part_change_various_various_smallint order by insert_num; @@ -115,14 +119,16 @@ drop table part_change_various_various_smallint; -- -- SUBSECTION: ALTER TABLE CHANGE COLUMNS for Various --> Various: (BOOLEAN, TINYINT, SMALLINT, LONG, FLOAT, DOUBLE, DECIMAL, STRING, CHAR, VARCHAR, TIMESTAMP) --> INT +-- –2147483648 to 2147483647 -- CREATE TABLE part_change_various_various_int(insert_num int, c1 BOOLEAN, c2 TINYINT, c3 SMALLINT, c4 BIGINT, c5 FLOAT, c6 DOUBLE, c7 DECIMAL(38,18), c8 STRING, c9 CHAR(25), c10 VARCHAR(25), c11 TIMESTAMP, b STRING) PARTITIONED BY(part INT); insert into table part_change_various_various_int partition(part=1) values(1, -2999, 200, 72909, 3244222, -29.0764, 470614135, 470614135, '-2999', '-2999', '-2999', '0004-09-22 18:26:29.519542222', 'original'), - (2, 0, 100, 483777, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), - (3, false, 72, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '1', '1', '1', '6229-06-28 02:54:28.970117179', 'original'), - (4, 1, -90, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '5299', '5299', '5299', '2002-05-10 05:29:48.990818073', 'original'); + (2, 0, 100, 2147483647, -23866739993, -3651.672121, -9223372036854775808.0, 9223372036854775807.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, 100, 2147483648, -23866739993, -3651.672121, -9223372036854775809.0, 9223372036854775808.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, 72, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '1', '1', '1', '6229-06-28 02:54:28.970117179', 'original'), + (5, 1, -90, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '5299', '5299', '5299', '2002-05-10 05:29:48.990818073', 'original'); select insert_num,part,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,b from part_change_various_various_int order by insert_num; @@ -146,14 +152,16 @@ drop table part_change_various_various_int; -- -- SUBSECTION: ALTER TABLE CHANGE COLUMNS for Various --> Various: (BOOLEAN, TINYINT, SMALLINT, INT, FLOAT, DOUBLE, DECIMAL, STRING, CHAR, VARCHAR, TIMESTAMP) --> BIGINT +-- -9223372036854775808 to 9223372036854775807 -- CREATE TABLE part_change_various_various_bigint(insert_num int, c1 BOOLEAN, c2 TINYINT, c3 SMALLINT, c4 INT, c5 FLOAT, c6 DOUBLE, c7 DECIMAL(38,18), c8 STRING, c9 CHAR(25), c10 VARCHAR(25), c11 TIMESTAMP, b STRING) PARTITIONED BY(part INT); insert into table part_change_various_various_bigint partition(part=1) values(1, -2999, 200, 72909, 3244222, -29.0764, 470614135, 470614135, '-2999', '-2999', '-2999', '0004-09-22 18:26:29.519542222', 'original'), - (2, 0, 100, 483777, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), - (3, false, 72, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '1', '1', '1', '6229-06-28 02:54:28.970117179', 'original'), - (4, 1, -90, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '1998287.3541', '1998287.3541', '1998287.3541', '2002-05-10 05:29:48.990818073', 'original'); + (2, 0, 100, 32767, -23372036854775, -3651.672121, -9223372036854775808.0, 9223372036854775807.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, 100, -32768, 23372036854775, -3651.672121, -9223372036854775809.0, 9223372036854775808.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, 72, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '1', '1', '1', '6229-06-28 02:54:28.970117179', 'original'), + (5, 1, -90, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '1998287.3541', '1998287.3541', '1998287.3541', '2002-05-10 05:29:48.990818073', 'original'); select insert_num,part,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,b from part_change_various_various_bigint order by insert_num; @@ -161,10 +169,10 @@ select insert_num,part,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,b from part_change_var alter table part_change_various_various_bigint replace columns (insert_num int, c1 BIGINT, c2 BIGINT, c3 BIGINT, c4 BIGINT, c5 BIGINT, c6 BIGINT, c7 BIGINT, c8 BIGINT, c9 BIGINT, c10 BIGINT, c11 BIGINT, b STRING); insert into table part_change_various_various_bigint partition(part=2) - values (5, 5573199346255528403, 71, 151775655, 1, 131, -60, 6275638713485623898, -230, -695025, 519542222, -29.0764, 'new'); + values (6, 5573199346255528403, 71, 151775655, 1, 131, -60, 6275638713485623898, -230, -695025, 519542222, -29.0764, 'new'); insert into table part_change_various_various_bigint partition(part=1) - values (6, -164341325, 9043162437544575070, -126, -6566204574741299000, 91, 113, -28, -63, 0, 3244222, -90, 'new'); + values (7, -164341325, 9043162437544575070, -126, -6566204574741299000, 91, 113, -28, -63, 0, 3244222, -90, 'new'); explain select insert_num,part,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,b from part_change_various_various_bigint order by insert_num; @@ -182,9 +190,10 @@ CREATE TABLE part_change_various_various_float(insert_num int, c1 BOOLEAN, c2 TI insert into table part_change_various_various_float partition(part=1) values(1, -2999, 200, 72909, 3244222, -29.0764, 470614135, 470614135, '-2999', '-2999', '-2999', '0004-09-22 18:26:29.519542222', 'original'), - (2, 0, 100, 483777, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), - (3, false, 72, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '2402.3', '2402.3', '2402.3', '6229-06-28 02:54:28.970117179', 'original'), - (4, 1, -90, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '5299', '5299', '5299', '2002-05-10 05:29:48.990818073', 'original'); + (2, 0, 100, 32767, -23372036854775, -3651.672121, -9223372036854775808.0, 9223372036854775807.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, 100, -32768, 23372036854775, -3651.672121, -9223372036854775809.0, 9223372036854775808.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, 72, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '2402.3', '2402.3', '2402.3', '6229-06-28 02:54:28.970117179', 'original'), + (5, 1, -90, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '5299', '5299', '5299', '2002-05-10 05:29:48.990818073', 'original'); select insert_num,part,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,b from part_change_various_various_float order by insert_num; @@ -192,10 +201,10 @@ select insert_num,part,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,b from part_change_var alter table part_change_various_various_float replace columns (insert_num int, c1 FLOAT, c2 FLOAT, c3 FLOAT, c4 FLOAT, c5 FLOAT, c6 FLOAT, c7 FLOAT, c8 FLOAT, c9 FLOAT, c10 FLOAT, c11 FLOAT, b STRING); insert into table part_change_various_various_float partition(part=2) - values (5, 953967041., 62.0791539559013466, 718.78, 1, 203.199548118, -60, 6275638713485623898, -230, -695025, -3651.67212, 46114.28, 'new'); + values (6, 953967041., 62.0791539559013466, 718.78, 1, 203.199548118, -60, 6275638713485623898, -230, -695025, -3651.67212, 46114.28, 'new'); insert into table part_change_various_various_float partition(part=1) - values (6, -1255178165.77663, 9043162437544575070.974, -4314.7918, -1240033819, 91, 1698.95, -100.3597812, -63, 0, -93222.200, 29.076, 'new'); + values (7, -1255178165.77663, 9043162437544575070.974, -4314.7918, -1240033819, 91, 1698.95, -100.3597812, -63, 0, -93222.200, 29.076, 'new'); explain select insert_num,part,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,b from part_change_various_various_float order by insert_num; @@ -213,9 +222,10 @@ CREATE TABLE part_change_various_various_double(insert_num int, c1 BOOLEAN, c2 T insert into table part_change_various_various_double partition(part=1) values(1, -2999, 200, 72909, 3244222, -29.0764, 470614135, 470614135, '-2999', '-2999', '-2999', '0004-09-22 18:26:29.519542222', 'original'), - (2, 0, 100, 483777, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), - (3, false, 72, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '1', '1', '1', '6229-06-28 02:54:28.970117179', 'original'), - (4, 1, -90, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '5299', '5299', '5299', '2002-05-10 05:29:48.990818073', 'original'); + (2, 0, 100, 32767, -23372036854775, -3651.672121, -9223372036854775808.0, 9223372036854775807.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, 100, -32768, 23372036854775, -3651.672121, -9223372036854775809.0, 9223372036854775808.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, 72, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '1', '1', '1', '6229-06-28 02:54:28.970117179', 'original'), + (5, 1, -90, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '5299', '5299', '5299', '2002-05-10 05:29:48.990818073', 'original'); select insert_num,part,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,b from part_change_various_various_double order by insert_num; @@ -223,10 +233,10 @@ select insert_num,part,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,b from part_change_var alter table part_change_various_various_double replace columns (insert_num int, c1 DOUBLE, c2 DOUBLE, c3 DOUBLE, c4 DOUBLE, c5 DOUBLE, c6 DOUBLE, c7 DOUBLE, c8 DOUBLE, c9 DOUBLE, c10 DOUBLE, c11 DOUBLE, b STRING); insert into table part_change_various_various_double partition(part=2) - values (5, 953967041., 62.0791539559013466, 718.78, 1, 203.199548118, -60, 6275638713485623898, -230, -695025, 0.00007011717, 4.28479948, 'new'); + values (6, 953967041., 62.0791539559013466, 718.78, 1, 203.199548118, -60, 6275638713485623898, -230, -695025, 0.00007011717, 4.28479948, 'new'); insert into table part_change_various_various_double partition(part=1) - values (6, -1255178165.77663, 9043162437544575070.974, -4314.7918, -1240033819, 91, 1698.95, -100.3597812, -63, 0, -66475.0000008, -284799488.1, 'new'); + values (7, -1255178165.77663, 9043162437544575070.974, -4314.7918, -1240033819, 91, 1698.95, -100.3597812, -63, 0, -66475.0000008, -284799488.1, 'new'); explain select insert_num,part,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,b from part_change_various_various_double order by insert_num; @@ -244,9 +254,10 @@ CREATE TABLE part_change_various_various_decimal(insert_num int, c1 BOOLEAN, c2 insert into table part_change_various_various_decimal partition(part=1) values(1, -2999, 200, 72909, 3244222, -29.0764, 470614135, 470614135, '--1551801.09502', '--1551801.09502', '--1551801.09502', '0004-09-22 18:26:29.519542222', 'original'), - (2, 0, 100, 483777, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), - (3, false, 72, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '1', '1', '1', '6229-06-28 02:54:28.970117179', 'original'), - (4, 1, -90, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '2402.3', '2402.3', '2402.3', '2002-05-10 05:29:48.990818073', 'original'); + (2, 0, 100, 32767, -23372036854775, -3651.672121, -9223372036854775808.0, 9223372036854775807.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, 100, -32768, 23372036854775, -3651.672121, -9223372036854775809.0, 9223372036854775808.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, 72, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '1', '1', '1', '6229-06-28 02:54:28.970117179', 'original'), + (5, 1, -90, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '2402.3', '2402.3', '2402.3', '2002-05-10 05:29:48.990818073', 'original'); select insert_num,part,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,b from part_change_various_various_decimal order by insert_num; @@ -254,10 +265,10 @@ select insert_num,part,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,b from part_change_var alter table part_change_various_various_decimal replace columns (insert_num int, c1 DECIMAL(38,18), c2 DECIMAL(38,18), c3 DECIMAL(38,18), c4 DECIMAL(38,18), c5 DECIMAL(38,18), c6 DECIMAL(38,18), c7 DECIMAL(38,18), c8 DECIMAL(38,18), c9 DECIMAL(38,18), c10 DECIMAL(38,18), c11 DECIMAL(38,18), b STRING); insert into table part_change_various_various_decimal partition(part=2) - values (5, 953967041., 62.0791539559013466, 718.78, 1, 203.199548118, -60, 6275638713485623898, -230, -695025, 0.00007011717, 4.28479948, 'new'); + values (6, 953967041., 62.0791539559013466, 718.78, 1, 203.199548118, -60, 6275638713485623898, -230, -695025, 0.00007011717, 4.28479948, 'new'); insert into table part_change_various_various_decimal partition(part=1) - values (6,-1255178165.77663, 9043162437544575070.974, -4314.7918, -1240033819, 91, 1698.95, -100.3597812, -63, 0, -66475.0000008, -284799488.1, 'new'); + values (7,-1255178165.77663, 9043162437544575070.974, -4314.7918, -1240033819, 91, 1698.95, -100.3597812, -63, 0, -66475.0000008, -284799488.1, 'new'); explain select insert_num,part,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,b from part_change_various_various_decimal order by insert_num; @@ -275,9 +286,10 @@ CREATE TABLE part_change_various_various_string(insert_num int, c1 BOOLEAN, c2 T insert into table part_change_various_various_string partition(part=1) values(1, true, 200, 72909, 3244222, -99999999999, -29.0764, 470614135, 470614135, 'dynamic reptile ', 'dynamic reptile ', '0004-09-22 18:26:29.519542222', '2007-02-09', 'binary', 'original'), - (2, 0, 100, 483777, 14, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, ' baffling ', ' baffling ', '2007-02-09 05:17:29.368756876', '0004-09-22', 'binary', 'original'), - (3, false, 72, 3244222, -93222, 30.774, - 66475.561431, -66475.561431, 0.561431, '1', '1', '6229-06-28 02:54:28.970117179', '5966-07-09', 'binary', 'original'), - (4, 1, -90, 754072151, 3289094, 46114.284799488, 9250340.75, 9250340.75, 9250340.75, 'junkyard', 'junkyard', '2002-05-10 05:29:48.990818073', '1815-05-06', 'binary', 'original'); + (2, 0, 100, 32767, -23372036854775, -3651.672121, -9223372036854775808.0, 9223372036854775807.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, 100, -32768, 23372036854775, -3651.672121, -9223372036854775809.0, 9223372036854775808.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, 72, 3244222, -93222, 30.774, - 66475.561431, -66475.561431, 0.561431, '1', '1', '6229-06-28 02:54:28.970117179', '5966-07-09', 'binary', 'original'), + (5, 1, -90, 754072151, 3289094, 46114.284799488, 9250340.75, 9250340.75, 9250340.75, 'junkyard', 'junkyard', '2002-05-10 05:29:48.990818073', '1815-05-06', 'binary', 'original'); select insert_num,part,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,b from part_change_various_various_string order by insert_num; @@ -285,10 +297,10 @@ select insert_num,part,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,b from part_ch alter table part_change_various_various_string replace columns (insert_num int, c1 STRING, c2 STRING, c3 STRING, c4 STRING, c5 STRING, c6 STRING, c7 STRING, c8 STRING, c9 STRING, c10 STRING, c11 STRING, c12 STRING, c13 STRING, b STRING); insert into table part_change_various_various_string partition(part=2) - values (5, 'true', '400', '44388', -'100', '953967041.', '62.079153', '718.78', '1', 'verdict', 'verdict', 'timestamp', 'date', 'binary', 'new'); + values (6, 'true', '400', '44388', -'100', '953967041.', '62.079153', '718.78', '1', 'verdict', 'verdict', 'timestamp', 'date', 'binary', 'new'); insert into table part_change_various_various_string partition(part=1) - values (6,-'false', '-67', '833', '63993', ' 1255178165.77663', '905070.974', '-4314.7918', -'1240033819', 'trial', 'trial', '2016-03-07 03:02:22.0', '2016-03-07', 'binary', 'new'); + values (7,-'false', '-67', '833', '63993', ' 1255178165.77663', '905070.974', '-4314.7918', -'1240033819', 'trial', 'trial', '2016-03-07 03:02:22.0', '2016-03-07', 'binary', 'new'); explain select insert_num,part,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,b from part_change_various_various_string order by insert_num; @@ -306,9 +318,10 @@ CREATE TABLE part_change_various_various_char(insert_num int, c1 BOOLEAN, c2 TIN insert into table part_change_various_various_char partition(part=1) values(1, true, 200, 72909, 3244222, -99999999999, -29.0764, 470614135, 470614135, 'dynamic reptile ', 'dynamic reptile ', '0004-09-22 18:26:29.519542222', '2007-02-09', 'binary', 'original'), - (2, 0, 100, 483777, 14, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, ' baffling ', ' baffling ', '2007-02-09 05:17:29.368756876', '0004-09-22', 'binary', 'original'), - (3, false, 72, 3244222, -93222, 30.774, - 66475.561431, -66475.561431, 0.561431, '1', '1', '6229-06-28 02:54:28.970117179', '5966-07-09', 'binary', 'original'), - (4, 1, -90, 754072151, 3289094, 46114.284799488, 9250340.75, 9250340.75, 9250340.75, 'junkyard', 'junkyard', '2002-05-10 05:29:48.990818073', '1815-05-06', 'binary', 'original'); + (2, 0, 100, 32767, -23372036854775, -3651.672121, -9223372036854775808.0, 9223372036854775807.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, 100, -32768, 23372036854775, -3651.672121, -9223372036854775809.0, 9223372036854775808.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, 72, 3244222, -93222, 30.774, - 66475.561431, -66475.561431, 0.561431, '1', '1', '6229-06-28 02:54:28.970117179', '5966-07-09', 'binary', 'original'), + (5, 1, -90, 754072151, 3289094, 46114.284799488, 9250340.75, 9250340.75, 9250340.75, 'junkyard', 'junkyard', '2002-05-10 05:29:48.990818073', '1815-05-06', 'binary', 'original'); select insert_num,part,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,b from part_change_various_various_char order by insert_num; @@ -316,10 +329,10 @@ select insert_num,part,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,b from part_ch alter table part_change_various_various_char replace columns (insert_num int, c1 CHAR(25), c2 CHAR(25), c3 CHAR(25), c4 CHAR(25), c5 CHAR(25), c6 CHAR(25), c7 CHAR(25), c8 CHAR(25), c9 CHAR(25), c10 CHAR(25), c11 CHAR(25), c12 CHAR(25), c13 CHAR(25), b STRING); insert into table part_change_various_various_char partition(part=2) - values (5, 'true', '400', '44388', -'100', '953967041.', '62.079153', '718.78', '1', 'verdict', 'verdict', 'timestamp', 'date', 'binary', 'new'); + values (6, 'true', '400', '44388', -'100', '953967041.', '62.079153', '718.78', '1', 'verdict', 'verdict', 'timestamp', 'date', 'binary', 'new'); insert into table part_change_various_various_char partition(part=1) - values (6,-'false', '-67', '833', '63993', ' 1255178165.77663', '905070.974', '-4314.7918', -'1240033819', 'trial', 'trial', '2016-03-07 03:02:22.0', '2016-03-07', 'binary', 'new'); + values (7,-'false', '-67', '833', '63993', ' 1255178165.77663', '905070.974', '-4314.7918', -'1240033819', 'trial', 'trial', '2016-03-07 03:02:22.0', '2016-03-07', 'binary', 'new'); explain select insert_num,part,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,b from part_change_various_various_char order by insert_num; @@ -337,9 +350,10 @@ CREATE TABLE part_change_various_various_char_trunc(insert_num int, c1 BOOLEAN, insert into table part_change_various_various_char_trunc partition(part=1) values(1, true, 200, 72909, 3244222, -99999999999, -29.0764, 470614135, 470614135, 'dynamic reptile ', 'dynamic reptile ', '0004-09-22 18:26:29.519542222', '2007-02-09', 'binary', 'original'), - (2, 0, 100, 483777, 14, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, ' baffling ', ' baffling ', '2007-02-09 05:17:29.368756876', '0004-09-22', 'binary', 'original'), - (3, false, 72, 3244222, -93222, 30.774, - 66475.561431, -66475.561431, 0.561431, '1', '1', '6229-06-28 02:54:28.970117179', '5966-07-09', 'binary', 'original'), - (4, 1, -90, 754072151, 3289094, 46114.284799488, 9250340.75, 9250340.75, 9250340.75, 'junkyard', 'junkyard', '2002-05-10 05:29:48.990818073', '1815-05-06', 'binary', 'original'); + (2, 0, 100, 32767, -23372036854775, -3651.672121, -9223372036854775808.0, 9223372036854775807.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, 100, -32768, 23372036854775, -3651.672121, -9223372036854775809.0, 9223372036854775808.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, 72, 3244222, -93222, 30.774, - 66475.561431, -66475.561431, 0.561431, '1', '1', '6229-06-28 02:54:28.970117179', '5966-07-09', 'binary', 'original'), + (5, 1, -90, 754072151, 3289094, 46114.284799488, 9250340.75, 9250340.75, 9250340.75, 'junkyard', 'junkyard', '2002-05-10 05:29:48.990818073', '1815-05-06', 'binary', 'original'); select insert_num,part,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,b from part_change_various_various_char_trunc order by insert_num; @@ -347,10 +361,10 @@ select insert_num,part,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,b from part_ch alter table part_change_various_various_char_trunc replace columns (insert_num int, c1 CHAR(8), c2 CHAR(8), c3 CHAR(8), c4 CHAR(8), c5 CHAR(8), c6 CHAR(8), c7 CHAR(8), c8 CHAR(8), c9 CHAR(8), c10 CHAR(8), c11 CHAR(8), c12 CHAR(8), c13 CHAR(8), b STRING); insert into table part_change_various_various_char_trunc partition(part=2) - values (5, 'true', '400', '44388', -'100', '953967041.', '62.079153', '718.78', '1', 'verdict', 'verdict', 'timestamp', 'date', 'binary', 'new'); + values (6, 'true', '400', '44388', -'100', '953967041.', '62.079153', '718.78', '1', 'verdict', 'verdict', 'timestamp', 'date', 'binary', 'new'); insert into table part_change_various_various_char_trunc partition(part=1) - values (6,-'false', '-67', '833', '63993', ' 1255178165.77663', '905070.974', '-4314.7918', -'1240033819', 'trial', 'trial', '2016-03-07 03:02:22.0', '2016-03-07', 'binary', 'new'); + values (7,-'false', '-67', '833', '63993', ' 1255178165.77663', '905070.974', '-4314.7918', -'1240033819', 'trial', 'trial', '2016-03-07 03:02:22.0', '2016-03-07', 'binary', 'new'); explain select insert_num,part,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,b from part_change_various_various_char_trunc order by insert_num; @@ -368,9 +382,10 @@ CREATE TABLE part_change_various_various_varchar(insert_num int, c1 BOOLEAN, c2 insert into table part_change_various_various_varchar partition(part=1) values(1, true, 200, 72909, 3244222, -99999999999, -29.0764, 470614135, 470614135, 'dynamic reptile ', 'dynamic reptile ', '0004-09-22 18:26:29.519542222', '2007-02-09', 'binary', 'original'), - (2, 0, 100, 483777, 14, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, ' baffling ', ' baffling ', '2007-02-09 05:17:29.368756876', '0004-09-22', 'binary', 'original'), - (3, false, 72, 3244222, -93222, 30.774, - 66475.561431, -66475.561431, 0.561431, '1', '1', '6229-06-28 02:54:28.970117179', '5966-07-09', 'binary', 'original'), - (4, 1, -90, 754072151, 3289094, 46114.284799488, 9250340.75, 9250340.75, 9250340.75, 'junkyard', 'junkyard', '2002-05-10 05:29:48.990818073', '1815-05-06', 'binary', 'original'); + (2, 0, 100, 32767, -23372036854775, -9223372036854775808.0, -9223372036854775808.0, 9223372036854775807.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, 100, -32768, 23372036854775, -9223372036854775809.0, -9223372036854775809.0, 9223372036854775808.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, 72, 3244222, -93222, 30.774, - 66475.561431, -66475.561431, 0.561431, '1', '1', '6229-06-28 02:54:28.970117179', '5966-07-09', 'binary', 'original'), + (5, 1, -90, 754072151, 3289094, 46114.284799488, 9250340.75, 9250340.75, 9250340.75, 'junkyard', 'junkyard', '2002-05-10 05:29:48.990818073', '1815-05-06', 'binary', 'original'); select insert_num,part,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,b from part_change_various_various_varchar order by insert_num; @@ -378,10 +393,10 @@ select insert_num,part,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,b from part_ch alter table part_change_various_various_varchar replace columns (insert_num int, c1 VARCHAR(25), c2 VARCHAR(25), c3 VARCHAR(25), c4 VARCHAR(25), c5 VARCHAR(25), c6 VARCHAR(25), c7 VARCHAR(25), c8 VARCHAR(25), c9 VARCHAR(25), c10 VARCHAR(25), c11 VARCHAR(25), c12 VARCHAR(25), c13 VARCHAR(25), b STRING); insert into table part_change_various_various_varchar partition(part=2) - values (5, 'true', '400', '44388', -'100', '953967041.', '62.079153', '718.78', '1', 'verdict', 'verdict', 'timestamp', 'date', 'binary', 'new'); + values (6, 'true', '400', '44388', -'100', '953967041.', '62.079153', '718.78', '1', 'verdict', 'verdict', 'timestamp', 'date', 'binary', 'new'); insert into table part_change_various_various_varchar partition(part=1) - values (6,-'false', '-67', '833', '63993', ' 1255178165.77663', '905070.974', '-4314.7918', -'1240033819', 'trial', 'trial', '2016-03-07 03:02:22.0', '2016-03-07', 'binary', 'new'); + values (7,-'false', '-67', '833', '63993', ' 1255178165.77663', '905070.974', '-4314.7918', -'1240033819', 'trial', 'trial', '2016-03-07 03:02:22.0', '2016-03-07', 'binary', 'new'); explain select insert_num,part,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,b from part_change_various_various_varchar order by insert_num; @@ -399,7 +414,8 @@ CREATE TABLE part_change_various_various_varchar_trunc(insert_num int, c1 BOOLEA insert into table part_change_various_various_varchar_trunc partition(part=1) values(1, true, 200, 72909, 3244222, -99999999999, -29.0764, 470614135, 470614135, 'dynamic reptile ', 'dynamic reptile ', '0004-09-22 18:26:29.519542222', '2007-02-09', 'binary', 'original'), - (2, 0, 100, 483777, 14, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, ' baffling ', ' baffling ', '2007-02-09 05:17:29.368756876', '0004-09-22', 'binary', 'original'), + (2, 0, 100, 32767, -23372036854775, -9223372036854775808.0, -9223372036854775808.0, 9223372036854775807.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, 100, -32768, 23372036854775, -9223372036854775809.0, -9223372036854775809.0, 9223372036854775808.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), (3, false, 72, 3244222, -93222, 30.774, - 66475.561431, -66475.561431, 0.561431, '1', '1', '6229-06-28 02:54:28.970117179', '5966-07-09', 'binary', 'original'), (4, 1, -90, 754072151, 3289094, 46114.284799488, 9250340.75, 9250340.75, 9250340.75, 'junkyard', 'junkyard', '2002-05-10 05:29:48.990818073', '1815-05-06', 'binary', 'original'); @@ -430,9 +446,10 @@ CREATE TABLE part_change_various_various_timestamp(insert_num int, c1 BOOLEAN, c insert into table part_change_various_various_timestamp partition(part=1) values(1, true, 200, 72909, 3244222, -99999999999, -29.0764, 470614135, 470614135, '0004-09-22 18:26:29.519542222', '0004-09-22 18:26:29.519542222', '0004-09-22 18:26:29.519542222', '2007-02-09', 'original'), - (2, 0, 100, 483777, 14, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, '2007-02-09 05:17:29.368756876', '2007-02-09 05:17:29.368756876', '2007-02-09 05:17:29.368756876', '0004-09-22', 'original'), - (3, false, 72, 3244222, -93222, 30.774, - 66475.561431, -66475.561431, 0.561431, '6229-06-28 02:54:28.970117179', '6229-06-28 02:54:28.970117179', '6229-06-28 02:54:28.970117179', '5966-07-09', 'original'), - (4, 1, -90, 754072151, 3289094, 46114.284799488, 9250340.75, 9250340.75, 9250340.75, '2002-05-10 05:29:48.990818073', '2002-05-10 05:29:48.990818073', '2002-05-10 05:29:48.990818073', '1815-05-06', 'original'); + (2, 0, 100, 32767, -23372036854775, -9223372036854775808.0, -9223372036854775808.0, 9223372036854775807.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, 100, -32768, 23372036854775, -9223372036854775809.0, -9223372036854775809.0, 9223372036854775808.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, 72, 3244222, -93222, 30.774, - 66475.561431, -66475.561431, 0.561431, '6229-06-28 02:54:28.970117179', '6229-06-28 02:54:28.970117179', '6229-06-28 02:54:28.970117179', '5966-07-09', 'original'), + (5, 1, -90, 754072151, 3289094, 46114.284799488, 9250340.75, 9250340.75, 9250340.75, '2002-05-10 05:29:48.990818073', '2002-05-10 05:29:48.990818073', '2002-05-10 05:29:48.990818073', '1815-05-06', 'original'); select insert_num,part,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,b from part_change_various_various_timestamp order by insert_num; @@ -440,10 +457,10 @@ select insert_num,part,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,b from part_change alter table part_change_various_various_timestamp replace columns (insert_num int, c1 TIMESTAMP, c2 TIMESTAMP, c3 TIMESTAMP, c4 TIMESTAMP, c5 TIMESTAMP, c6 TIMESTAMP, c7 TIMESTAMP, c8 TIMESTAMP, c9 TIMESTAMP, c10 TIMESTAMP, c11 TIMESTAMP, c12 TIMESTAMP, b STRING); insert into table part_change_various_various_timestamp partition(part=2) - values (5, 'true', '400', '44388', -'100', '953967041.', '62.079153', '718.78', '1', 'timestamp', 'timestamp', 'timestamp', 'date', 'new'); + values (6, 'true', '400', '44388', -'100', '953967041.', '62.079153', '718.78', '1', 'timestamp', 'timestamp', 'timestamp', 'date', 'new'); insert into table part_change_various_various_timestamp partition(part=1) - values (6,-'false', '-67', '833', '63993', ' 1255178165.77663', '905070.974', '-4314.7918', -'1240033819', '2016-03-07 03:02:22.0', '2016-03-07 03:02:22.0', '2016-03-07 03:02:22.0', '2016-03-07', 'new'); + values (7,-'false', '-67', '833', '63993', ' 1255178165.77663', '905070.974', '-4314.7918', -'1240033819', '2016-03-07 03:02:22.0', '2016-03-07 03:02:22.0', '2016-03-07 03:02:22.0', '2016-03-07', 'new'); explain select insert_num,part,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,b from part_change_various_various_timestamp order by insert_num; @@ -481,34 +498,3 @@ select insert_num,part,c1,c2,c3,c4,b from part_change_various_various_date order select insert_num,part,c1,c2,c3,c4,b from part_change_various_various_date order by insert_num; drop table part_change_various_various_date; - - - --- --- SUBSECTION: ALTER TABLE CHANGE COLUMNS for Various --> Various: (STRING, CHAR, VARCHAR) --> BINARY --- -CREATE TABLE part_change_various_various_binary(insert_num int, c1 STRING, c2 CHAR(25), c3 VARCHAR(25), b STRING) PARTITIONED BY(part INT); - -insert into table part_change_various_various_binary partition(part=1) - values(1, 'binary', 'binary', 'binary', 'original'), - (2, 'binary', 'binary', 'binary', 'original'), - (3, 'binary', 'binary', 'binary', 'original'), - (4, 'binary', 'binary', 'binary', 'original'); - -select insert_num,part,c1,c2,c3,b from part_change_various_various_binary order by insert_num; - --- Table-Non-Cascade CHANGE COLUMNS ... -alter table part_change_various_various_binary replace columns (insert_num int, c1 BINARY, c2 BINARY, c3 BINARY, b STRING); - -insert into table part_change_various_various_binary partition(part=2) - values (5, 'binary', 'binary', 'binary', 'new'); - -insert into table part_change_various_various_binary partition(part=1) - values (6,-'binary', 'binary', 'binary', 'new'); - -explain -select insert_num,part,c1,c2,c3,b from part_change_various_various_binary order by insert_num; - -select insert_num,part,c1,c2,c3,b from part_change_various_various_binary order by insert_num; - -drop table part_change_various_various_binary; diff --git ql/src/test/queries/clientpositive/schema_evol_text_vecrow_mapwork_part_all_primitive.q ql/src/test/queries/clientpositive/schema_evol_text_vecrow_mapwork_part_all_primitive.q index 09e544a..c888fc9 100644 --- ql/src/test/queries/clientpositive/schema_evol_text_vecrow_mapwork_part_all_primitive.q +++ ql/src/test/queries/clientpositive/schema_evol_text_vecrow_mapwork_part_all_primitive.q @@ -54,14 +54,16 @@ drop table part_change_various_various_boolean; -- -- SUBSECTION: ALTER TABLE CHANGE COLUMNS for Various --> Various: (BOOLEAN, SHORT, INT, LONG, FLOAT, DOUBLE, DECIMAL, STRING, CHAR, VARCHAR, TIMESTAMP) --> BYTE +-- -128 and a maximum value of 127 -- CREATE TABLE part_change_various_various_tinyint(insert_num int, c1 BOOLEAN, c2 SMALLINT, c3 INT, c4 BIGINT, c5 FLOAT, c6 DOUBLE, c7 DECIMAL(38,18), c8 STRING, c9 CHAR(25), c10 VARCHAR(25), c11 TIMESTAMP, b STRING) PARTITIONED BY(part INT); insert into table part_change_various_various_tinyint partition(part=1) - values(1, true, 2000, 72909, 3244222, -29.0764, 470614135, 470614135, '-2999', '-2999', '-2999', '0004-09-22 18:26:29.519542222', 'original'), - (2, 0, 1000, 483777, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), - (3, false, 72909, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '1', '1', '1', '6229-06-28 02:54:28.970117179', 'original'), - (4, 1, 90000, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '5299', '5299', '5299', '2002-05-10 05:29:48.990818073', 'original'); + values(1, true, 2000, 72909, 3244222, -29.0764, 470614135, 470614135, '129', '-128', '-2999', '0004-09-22 18:26:29.519542222', 'original'), + (2, 0, -128, -48, -20, -9223372036854775808.0, -9223372036854775808.0, 9223372036854775807.0, '128', '-99', '40', '2007-02-09 05:17:29.368756876', 'original'), + (3, -1, -129, 100, 499, -9223372036854775809.0, -9223372036854775809.0, 9223372036854775808.0, '128', '-99', '40', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, -72, -127, 127, 30.774, 127.561431, -106.561431, '90.284799488', '90.284799488', '1', '6229-06-28 02:54:28.970117179', 'original'), + (5, 1, -90, 75, -38, 109.284799488 ,-128.75, 98.75, '120.4', '33.333', '0.45', '2002-05-10 05:29:48.990818073', 'original'); select insert_num,part,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,b from part_change_various_various_tinyint order by insert_num; @@ -69,10 +71,10 @@ select insert_num,part,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,b from part_change_var alter table part_change_various_various_tinyint replace columns (insert_num int, c1 TINYINT, c2 TINYINT, c3 TINYINT, c4 TINYINT, c5 TINYINT, c6 TINYINT, c7 TINYINT, c8 TINYINT, c9 TINYINT, c10 TINYINT, c11 TINYINT, b STRING); insert into table part_change_various_various_tinyint partition(part=2) - values (5, 23, 71, 127, 1, 131, -60, 68, -230, -182, 40, 93, 'new'); + values (6, 23, 71, 127, 1, 131, -60, 68, -230, -182, 40, 93, 'new'); insert into table part_change_various_various_tinyint partition(part=1) - values (6, -248, 85, -126, -167, 91, 113, -28, -63, 0, 8, 237, 'new'); + values (7, -120, 85, -126, -167, 91, 113, -28, -63, 0, 8, 237, 'new'); explain select insert_num,part,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,b from part_change_various_various_tinyint order by insert_num; @@ -85,14 +87,16 @@ drop table part_change_various_various_tinyint; -- -- SUBSECTION: ALTER TABLE CHANGE COLUMNS for Various --> Various: (BOOLEAN, TINYINT, INT, LONG, FLOAT, DOUBLE, DECIMAL, STRING, CHAR, VARCHAR, TIMESTAMP) --> SMALLINT +-- -32768 and a maximum value of 32767 -- CREATE TABLE part_change_various_various_smallint(insert_num int, c1 BOOLEAN, c2 TINYINT, c3 INT, c4 BIGINT, c5 FLOAT, c6 DOUBLE, c7 DECIMAL(38,18), c8 STRING, c9 CHAR(25), c10 VARCHAR(25), c11 TIMESTAMP, b STRING) PARTITIONED BY(part INT); insert into table part_change_various_various_smallint partition(part=1) values(1, -2999, 200, 72909, 3244222, -29.0764, 470614135, 470614135, '-2999', '-2999', '-2999', '0004-09-22 18:26:29.519542222', 'original'), - (2, 0, 100, 483777, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), - (3, false, 72, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '1', '1', '1', '6229-06-28 02:54:28.970117179', 'original'), - (4, 1, -90, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '5299', '5299', '5299', '2002-05-10 05:29:48.990818073', 'original'); + (2, 0, 100, -32768 , 32767, -3651.672121, -9223372036854775808.0, 9223372036854775807.0, '9000', '32767', '-32768', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, -127, -40000 , 32768, -3651.672121, -9223372036854775809.0, 9223372036854775808.0, '9000', '32767', '-32768', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, 72, 32422, -9322, 30.774, -6675.561431, -6675.561431, '1', '1', '1', '6229-06-28 02:54:28.970117179', 'original'), + (5, 1, -90, 7151, 3094, 30000.284799488 ,-9000.75, 0.75, '5299', '5299', '5299', '2002-05-10 05:29:48.990818073', 'original'); select insert_num,part,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,b from part_change_various_various_smallint order by insert_num; @@ -100,10 +104,10 @@ select insert_num,part,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,b from part_change_var alter table part_change_various_various_smallint replace columns (insert_num int, c1 SMALLINT, c2 SMALLINT, c3 SMALLINT, c4 SMALLINT, c5 SMALLINT, c6 SMALLINT, c7 SMALLINT, c8 SMALLINT, c9 SMALLINT, c10 SMALLINT, c11 SMALLINT, b STRING); insert into table part_change_various_various_smallint partition(part=2) - values (5, -30486, 15230, 3117, 1, -117, -7131, 20227, -24858, -28771, 46114, 72909, 'new'); + values (6, -30486, 15230, 3117, 1, -117, -7131, 20227, -24858, -28771, 46114, 72909, 'new'); insert into table part_change_various_various_smallint partition(part=1) - values (6, -10542, -1805, -4844, 15507, 91, 22385, -28, -12268, 0, 66475, 774, 'new'); + values (7, -10542, -1805, -4844, 15507, 91, 22385, -28, -12268, 0, 66475, 774, 'new'); explain select insert_num,part,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,b from part_change_various_various_smallint order by insert_num; @@ -115,14 +119,16 @@ drop table part_change_various_various_smallint; -- -- SUBSECTION: ALTER TABLE CHANGE COLUMNS for Various --> Various: (BOOLEAN, TINYINT, SMALLINT, LONG, FLOAT, DOUBLE, DECIMAL, STRING, CHAR, VARCHAR, TIMESTAMP) --> INT +-- –2147483648 to 2147483647 -- CREATE TABLE part_change_various_various_int(insert_num int, c1 BOOLEAN, c2 TINYINT, c3 SMALLINT, c4 BIGINT, c5 FLOAT, c6 DOUBLE, c7 DECIMAL(38,18), c8 STRING, c9 CHAR(25), c10 VARCHAR(25), c11 TIMESTAMP, b STRING) PARTITIONED BY(part INT); insert into table part_change_various_various_int partition(part=1) values(1, -2999, 200, 72909, 3244222, -29.0764, 470614135, 470614135, '-2999', '-2999', '-2999', '0004-09-22 18:26:29.519542222', 'original'), - (2, 0, 100, 483777, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), - (3, false, 72, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '1', '1', '1', '6229-06-28 02:54:28.970117179', 'original'), - (4, 1, -90, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '5299', '5299', '5299', '2002-05-10 05:29:48.990818073', 'original'); + (2, 0, 100, 2147483647, -23866739993, -3651.672121, -9223372036854775808.0, 9223372036854775807.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, 100, 2147483648, -23866739993, -3651.672121, -9223372036854775809.0, 9223372036854775808.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, 72, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '1', '1', '1', '6229-06-28 02:54:28.970117179', 'original'), + (5, 1, -90, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '5299', '5299', '5299', '2002-05-10 05:29:48.990818073', 'original'); select insert_num,part,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,b from part_change_various_various_int order by insert_num; @@ -146,14 +152,16 @@ drop table part_change_various_various_int; -- -- SUBSECTION: ALTER TABLE CHANGE COLUMNS for Various --> Various: (BOOLEAN, TINYINT, SMALLINT, INT, FLOAT, DOUBLE, DECIMAL, STRING, CHAR, VARCHAR, TIMESTAMP) --> BIGINT +-- -9223372036854775808 to 9223372036854775807 -- CREATE TABLE part_change_various_various_bigint(insert_num int, c1 BOOLEAN, c2 TINYINT, c3 SMALLINT, c4 INT, c5 FLOAT, c6 DOUBLE, c7 DECIMAL(38,18), c8 STRING, c9 CHAR(25), c10 VARCHAR(25), c11 TIMESTAMP, b STRING) PARTITIONED BY(part INT); insert into table part_change_various_various_bigint partition(part=1) values(1, -2999, 200, 72909, 3244222, -29.0764, 470614135, 470614135, '-2999', '-2999', '-2999', '0004-09-22 18:26:29.519542222', 'original'), - (2, 0, 100, 483777, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), - (3, false, 72, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '1', '1', '1', '6229-06-28 02:54:28.970117179', 'original'), - (4, 1, -90, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '1998287.3541', '1998287.3541', '1998287.3541', '2002-05-10 05:29:48.990818073', 'original'); + (2, 0, 100, 32767, -23372036854775, -3651.672121, -9223372036854775808.0, 9223372036854775807.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, 100, -32768, 23372036854775, -3651.672121, -9223372036854775809.0, 9223372036854775808.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, 72, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '1', '1', '1', '6229-06-28 02:54:28.970117179', 'original'), + (5, 1, -90, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '1998287.3541', '1998287.3541', '1998287.3541', '2002-05-10 05:29:48.990818073', 'original'); select insert_num,part,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,b from part_change_various_various_bigint order by insert_num; @@ -161,10 +169,10 @@ select insert_num,part,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,b from part_change_var alter table part_change_various_various_bigint replace columns (insert_num int, c1 BIGINT, c2 BIGINT, c3 BIGINT, c4 BIGINT, c5 BIGINT, c6 BIGINT, c7 BIGINT, c8 BIGINT, c9 BIGINT, c10 BIGINT, c11 BIGINT, b STRING); insert into table part_change_various_various_bigint partition(part=2) - values (5, 5573199346255528403, 71, 151775655, 1, 131, -60, 6275638713485623898, -230, -695025, 519542222, -29.0764, 'new'); + values (6, 5573199346255528403, 71, 151775655, 1, 131, -60, 6275638713485623898, -230, -695025, 519542222, -29.0764, 'new'); insert into table part_change_various_various_bigint partition(part=1) - values (6, -164341325, 9043162437544575070, -126, -6566204574741299000, 91, 113, -28, -63, 0, 3244222, -90, 'new'); + values (7, -164341325, 9043162437544575070, -126, -6566204574741299000, 91, 113, -28, -63, 0, 3244222, -90, 'new'); explain select insert_num,part,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,b from part_change_various_various_bigint order by insert_num; @@ -182,9 +190,10 @@ CREATE TABLE part_change_various_various_float(insert_num int, c1 BOOLEAN, c2 TI insert into table part_change_various_various_float partition(part=1) values(1, -2999, 200, 72909, 3244222, -29.0764, 470614135, 470614135, '-2999', '-2999', '-2999', '0004-09-22 18:26:29.519542222', 'original'), - (2, 0, 100, 483777, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), - (3, false, 72, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '2402.3', '2402.3', '2402.3', '6229-06-28 02:54:28.970117179', 'original'), - (4, 1, -90, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '5299', '5299', '5299', '2002-05-10 05:29:48.990818073', 'original'); + (2, 0, 100, 32767, -23372036854775, -3651.672121, -9223372036854775808.0, 9223372036854775807.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, 100, -32768, 23372036854775, -3651.672121, -9223372036854775809.0, 9223372036854775808.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, 72, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '2402.3', '2402.3', '2402.3', '6229-06-28 02:54:28.970117179', 'original'), + (5, 1, -90, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '5299', '5299', '5299', '2002-05-10 05:29:48.990818073', 'original'); select insert_num,part,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,b from part_change_various_various_float order by insert_num; @@ -192,10 +201,10 @@ select insert_num,part,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,b from part_change_var alter table part_change_various_various_float replace columns (insert_num int, c1 FLOAT, c2 FLOAT, c3 FLOAT, c4 FLOAT, c5 FLOAT, c6 FLOAT, c7 FLOAT, c8 FLOAT, c9 FLOAT, c10 FLOAT, c11 FLOAT, b STRING); insert into table part_change_various_various_float partition(part=2) - values (5, 953967041., 62.0791539559013466, 718.78, 1, 203.199548118, -60, 6275638713485623898, -230, -695025, -3651.67212, 46114.28, 'new'); + values (6, 953967041., 62.0791539559013466, 718.78, 1, 203.199548118, -60, 6275638713485623898, -230, -695025, -3651.67212, 46114.28, 'new'); insert into table part_change_various_various_float partition(part=1) - values (6, -1255178165.77663, 9043162437544575070.974, -4314.7918, -1240033819, 91, 1698.95, -100.3597812, -63, 0, -93222.200, 29.076, 'new'); + values (7, -1255178165.77663, 9043162437544575070.974, -4314.7918, -1240033819, 91, 1698.95, -100.3597812, -63, 0, -93222.200, 29.076, 'new'); explain select insert_num,part,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,b from part_change_various_various_float order by insert_num; @@ -213,9 +222,10 @@ CREATE TABLE part_change_various_various_double(insert_num int, c1 BOOLEAN, c2 T insert into table part_change_various_various_double partition(part=1) values(1, -2999, 200, 72909, 3244222, -29.0764, 470614135, 470614135, '-2999', '-2999', '-2999', '0004-09-22 18:26:29.519542222', 'original'), - (2, 0, 100, 483777, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), - (3, false, 72, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '1', '1', '1', '6229-06-28 02:54:28.970117179', 'original'), - (4, 1, -90, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '5299', '5299', '5299', '2002-05-10 05:29:48.990818073', 'original'); + (2, 0, 100, 32767, -23372036854775, -3651.672121, -9223372036854775808.0, 9223372036854775807.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, 100, -32768, 23372036854775, -3651.672121, -9223372036854775809.0, 9223372036854775808.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, 72, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '1', '1', '1', '6229-06-28 02:54:28.970117179', 'original'), + (5, 1, -90, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '5299', '5299', '5299', '2002-05-10 05:29:48.990818073', 'original'); select insert_num,part,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,b from part_change_various_various_double order by insert_num; @@ -223,10 +233,10 @@ select insert_num,part,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,b from part_change_var alter table part_change_various_various_double replace columns (insert_num int, c1 DOUBLE, c2 DOUBLE, c3 DOUBLE, c4 DOUBLE, c5 DOUBLE, c6 DOUBLE, c7 DOUBLE, c8 DOUBLE, c9 DOUBLE, c10 DOUBLE, c11 DOUBLE, b STRING); insert into table part_change_various_various_double partition(part=2) - values (5, 953967041., 62.0791539559013466, 718.78, 1, 203.199548118, -60, 6275638713485623898, -230, -695025, 0.00007011717, 4.28479948, 'new'); + values (6, 953967041., 62.0791539559013466, 718.78, 1, 203.199548118, -60, 6275638713485623898, -230, -695025, 0.00007011717, 4.28479948, 'new'); insert into table part_change_various_various_double partition(part=1) - values (6, -1255178165.77663, 9043162437544575070.974, -4314.7918, -1240033819, 91, 1698.95, -100.3597812, -63, 0, -66475.0000008, -284799488.1, 'new'); + values (7, -1255178165.77663, 9043162437544575070.974, -4314.7918, -1240033819, 91, 1698.95, -100.3597812, -63, 0, -66475.0000008, -284799488.1, 'new'); explain select insert_num,part,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,b from part_change_various_various_double order by insert_num; @@ -244,9 +254,10 @@ CREATE TABLE part_change_various_various_decimal(insert_num int, c1 BOOLEAN, c2 insert into table part_change_various_various_decimal partition(part=1) values(1, -2999, 200, 72909, 3244222, -29.0764, 470614135, 470614135, '--1551801.09502', '--1551801.09502', '--1551801.09502', '0004-09-22 18:26:29.519542222', 'original'), - (2, 0, 100, 483777, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), - (3, false, 72, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '1', '1', '1', '6229-06-28 02:54:28.970117179', 'original'), - (4, 1, -90, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '2402.3', '2402.3', '2402.3', '2002-05-10 05:29:48.990818073', 'original'); + (2, 0, 100, 32767, -23372036854775, -3651.672121, -9223372036854775808.0, 9223372036854775807.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, 100, -32768, 23372036854775, -3651.672121, -9223372036854775809.0, 9223372036854775808.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, 72, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '1', '1', '1', '6229-06-28 02:54:28.970117179', 'original'), + (5, 1, -90, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '2402.3', '2402.3', '2402.3', '2002-05-10 05:29:48.990818073', 'original'); select insert_num,part,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,b from part_change_various_various_decimal order by insert_num; @@ -254,10 +265,10 @@ select insert_num,part,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,b from part_change_var alter table part_change_various_various_decimal replace columns (insert_num int, c1 DECIMAL(38,18), c2 DECIMAL(38,18), c3 DECIMAL(38,18), c4 DECIMAL(38,18), c5 DECIMAL(38,18), c6 DECIMAL(38,18), c7 DECIMAL(38,18), c8 DECIMAL(38,18), c9 DECIMAL(38,18), c10 DECIMAL(38,18), c11 DECIMAL(38,18), b STRING); insert into table part_change_various_various_decimal partition(part=2) - values (5, 953967041., 62.0791539559013466, 718.78, 1, 203.199548118, -60, 6275638713485623898, -230, -695025, 0.00007011717, 4.28479948, 'new'); + values (6, 953967041., 62.0791539559013466, 718.78, 1, 203.199548118, -60, 6275638713485623898, -230, -695025, 0.00007011717, 4.28479948, 'new'); insert into table part_change_various_various_decimal partition(part=1) - values (6,-1255178165.77663, 9043162437544575070.974, -4314.7918, -1240033819, 91, 1698.95, -100.3597812, -63, 0, -66475.0000008, -284799488.1, 'new'); + values (7,-1255178165.77663, 9043162437544575070.974, -4314.7918, -1240033819, 91, 1698.95, -100.3597812, -63, 0, -66475.0000008, -284799488.1, 'new'); explain select insert_num,part,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,b from part_change_various_various_decimal order by insert_num; @@ -275,9 +286,10 @@ CREATE TABLE part_change_various_various_string(insert_num int, c1 BOOLEAN, c2 T insert into table part_change_various_various_string partition(part=1) values(1, true, 200, 72909, 3244222, -99999999999, -29.0764, 470614135, 470614135, 'dynamic reptile ', 'dynamic reptile ', '0004-09-22 18:26:29.519542222', '2007-02-09', 'binary', 'original'), - (2, 0, 100, 483777, 14, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, ' baffling ', ' baffling ', '2007-02-09 05:17:29.368756876', '0004-09-22', 'binary', 'original'), - (3, false, 72, 3244222, -93222, 30.774, - 66475.561431, -66475.561431, 0.561431, '1', '1', '6229-06-28 02:54:28.970117179', '5966-07-09', 'binary', 'original'), - (4, 1, -90, 754072151, 3289094, 46114.284799488, 9250340.75, 9250340.75, 9250340.75, 'junkyard', 'junkyard', '2002-05-10 05:29:48.990818073', '1815-05-06', 'binary', 'original'); + (2, 0, 100, 32767, -23372036854775, -3651.672121, -9223372036854775808.0, 9223372036854775807.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, 100, -32768, 23372036854775, -3651.672121, -9223372036854775809.0, 9223372036854775808.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, 72, 3244222, -93222, 30.774, - 66475.561431, -66475.561431, 0.561431, '1', '1', '6229-06-28 02:54:28.970117179', '5966-07-09', 'binary', 'original'), + (5, 1, -90, 754072151, 3289094, 46114.284799488, 9250340.75, 9250340.75, 9250340.75, 'junkyard', 'junkyard', '2002-05-10 05:29:48.990818073', '1815-05-06', 'binary', 'original'); select insert_num,part,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,b from part_change_various_various_string order by insert_num; @@ -285,10 +297,10 @@ select insert_num,part,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,b from part_ch alter table part_change_various_various_string replace columns (insert_num int, c1 STRING, c2 STRING, c3 STRING, c4 STRING, c5 STRING, c6 STRING, c7 STRING, c8 STRING, c9 STRING, c10 STRING, c11 STRING, c12 STRING, c13 STRING, b STRING); insert into table part_change_various_various_string partition(part=2) - values (5, 'true', '400', '44388', -'100', '953967041.', '62.079153', '718.78', '1', 'verdict', 'verdict', 'timestamp', 'date', 'binary', 'new'); + values (6, 'true', '400', '44388', -'100', '953967041.', '62.079153', '718.78', '1', 'verdict', 'verdict', 'timestamp', 'date', 'binary', 'new'); insert into table part_change_various_various_string partition(part=1) - values (6,-'false', '-67', '833', '63993', ' 1255178165.77663', '905070.974', '-4314.7918', -'1240033819', 'trial', 'trial', '2016-03-07 03:02:22.0', '2016-03-07', 'binary', 'new'); + values (7,-'false', '-67', '833', '63993', ' 1255178165.77663', '905070.974', '-4314.7918', -'1240033819', 'trial', 'trial', '2016-03-07 03:02:22.0', '2016-03-07', 'binary', 'new'); explain select insert_num,part,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,b from part_change_various_various_string order by insert_num; @@ -306,9 +318,10 @@ CREATE TABLE part_change_various_various_char(insert_num int, c1 BOOLEAN, c2 TIN insert into table part_change_various_various_char partition(part=1) values(1, true, 200, 72909, 3244222, -99999999999, -29.0764, 470614135, 470614135, 'dynamic reptile ', 'dynamic reptile ', '0004-09-22 18:26:29.519542222', '2007-02-09', 'binary', 'original'), - (2, 0, 100, 483777, 14, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, ' baffling ', ' baffling ', '2007-02-09 05:17:29.368756876', '0004-09-22', 'binary', 'original'), - (3, false, 72, 3244222, -93222, 30.774, - 66475.561431, -66475.561431, 0.561431, '1', '1', '6229-06-28 02:54:28.970117179', '5966-07-09', 'binary', 'original'), - (4, 1, -90, 754072151, 3289094, 46114.284799488, 9250340.75, 9250340.75, 9250340.75, 'junkyard', 'junkyard', '2002-05-10 05:29:48.990818073', '1815-05-06', 'binary', 'original'); + (2, 0, 100, 32767, -23372036854775, -3651.672121, -9223372036854775808.0, 9223372036854775807.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, 100, -32768, 23372036854775, -3651.672121, -9223372036854775809.0, 9223372036854775808.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, 72, 3244222, -93222, 30.774, - 66475.561431, -66475.561431, 0.561431, '1', '1', '6229-06-28 02:54:28.970117179', '5966-07-09', 'binary', 'original'), + (5, 1, -90, 754072151, 3289094, 46114.284799488, 9250340.75, 9250340.75, 9250340.75, 'junkyard', 'junkyard', '2002-05-10 05:29:48.990818073', '1815-05-06', 'binary', 'original'); select insert_num,part,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,b from part_change_various_various_char order by insert_num; @@ -316,10 +329,10 @@ select insert_num,part,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,b from part_ch alter table part_change_various_various_char replace columns (insert_num int, c1 CHAR(25), c2 CHAR(25), c3 CHAR(25), c4 CHAR(25), c5 CHAR(25), c6 CHAR(25), c7 CHAR(25), c8 CHAR(25), c9 CHAR(25), c10 CHAR(25), c11 CHAR(25), c12 CHAR(25), c13 CHAR(25), b STRING); insert into table part_change_various_various_char partition(part=2) - values (5, 'true', '400', '44388', -'100', '953967041.', '62.079153', '718.78', '1', 'verdict', 'verdict', 'timestamp', 'date', 'binary', 'new'); + values (6, 'true', '400', '44388', -'100', '953967041.', '62.079153', '718.78', '1', 'verdict', 'verdict', 'timestamp', 'date', 'binary', 'new'); insert into table part_change_various_various_char partition(part=1) - values (6,-'false', '-67', '833', '63993', ' 1255178165.77663', '905070.974', '-4314.7918', -'1240033819', 'trial', 'trial', '2016-03-07 03:02:22.0', '2016-03-07', 'binary', 'new'); + values (7,-'false', '-67', '833', '63993', ' 1255178165.77663', '905070.974', '-4314.7918', -'1240033819', 'trial', 'trial', '2016-03-07 03:02:22.0', '2016-03-07', 'binary', 'new'); explain select insert_num,part,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,b from part_change_various_various_char order by insert_num; @@ -337,9 +350,10 @@ CREATE TABLE part_change_various_various_char_trunc(insert_num int, c1 BOOLEAN, insert into table part_change_various_various_char_trunc partition(part=1) values(1, true, 200, 72909, 3244222, -99999999999, -29.0764, 470614135, 470614135, 'dynamic reptile ', 'dynamic reptile ', '0004-09-22 18:26:29.519542222', '2007-02-09', 'binary', 'original'), - (2, 0, 100, 483777, 14, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, ' baffling ', ' baffling ', '2007-02-09 05:17:29.368756876', '0004-09-22', 'binary', 'original'), - (3, false, 72, 3244222, -93222, 30.774, - 66475.561431, -66475.561431, 0.561431, '1', '1', '6229-06-28 02:54:28.970117179', '5966-07-09', 'binary', 'original'), - (4, 1, -90, 754072151, 3289094, 46114.284799488, 9250340.75, 9250340.75, 9250340.75, 'junkyard', 'junkyard', '2002-05-10 05:29:48.990818073', '1815-05-06', 'binary', 'original'); + (2, 0, 100, 32767, -23372036854775, -3651.672121, -9223372036854775808.0, 9223372036854775807.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, 100, -32768, 23372036854775, -3651.672121, -9223372036854775809.0, 9223372036854775808.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, 72, 3244222, -93222, 30.774, - 66475.561431, -66475.561431, 0.561431, '1', '1', '6229-06-28 02:54:28.970117179', '5966-07-09', 'binary', 'original'), + (5, 1, -90, 754072151, 3289094, 46114.284799488, 9250340.75, 9250340.75, 9250340.75, 'junkyard', 'junkyard', '2002-05-10 05:29:48.990818073', '1815-05-06', 'binary', 'original'); select insert_num,part,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,b from part_change_various_various_char_trunc order by insert_num; @@ -347,10 +361,10 @@ select insert_num,part,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,b from part_ch alter table part_change_various_various_char_trunc replace columns (insert_num int, c1 CHAR(8), c2 CHAR(8), c3 CHAR(8), c4 CHAR(8), c5 CHAR(8), c6 CHAR(8), c7 CHAR(8), c8 CHAR(8), c9 CHAR(8), c10 CHAR(8), c11 CHAR(8), c12 CHAR(8), c13 CHAR(8), b STRING); insert into table part_change_various_various_char_trunc partition(part=2) - values (5, 'true', '400', '44388', -'100', '953967041.', '62.079153', '718.78', '1', 'verdict', 'verdict', 'timestamp', 'date', 'binary', 'new'); + values (6, 'true', '400', '44388', -'100', '953967041.', '62.079153', '718.78', '1', 'verdict', 'verdict', 'timestamp', 'date', 'binary', 'new'); insert into table part_change_various_various_char_trunc partition(part=1) - values (6,-'false', '-67', '833', '63993', ' 1255178165.77663', '905070.974', '-4314.7918', -'1240033819', 'trial', 'trial', '2016-03-07 03:02:22.0', '2016-03-07', 'binary', 'new'); + values (7,-'false', '-67', '833', '63993', ' 1255178165.77663', '905070.974', '-4314.7918', -'1240033819', 'trial', 'trial', '2016-03-07 03:02:22.0', '2016-03-07', 'binary', 'new'); explain select insert_num,part,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,b from part_change_various_various_char_trunc order by insert_num; @@ -368,9 +382,10 @@ CREATE TABLE part_change_various_various_varchar(insert_num int, c1 BOOLEAN, c2 insert into table part_change_various_various_varchar partition(part=1) values(1, true, 200, 72909, 3244222, -99999999999, -29.0764, 470614135, 470614135, 'dynamic reptile ', 'dynamic reptile ', '0004-09-22 18:26:29.519542222', '2007-02-09', 'binary', 'original'), - (2, 0, 100, 483777, 14, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, ' baffling ', ' baffling ', '2007-02-09 05:17:29.368756876', '0004-09-22', 'binary', 'original'), - (3, false, 72, 3244222, -93222, 30.774, - 66475.561431, -66475.561431, 0.561431, '1', '1', '6229-06-28 02:54:28.970117179', '5966-07-09', 'binary', 'original'), - (4, 1, -90, 754072151, 3289094, 46114.284799488, 9250340.75, 9250340.75, 9250340.75, 'junkyard', 'junkyard', '2002-05-10 05:29:48.990818073', '1815-05-06', 'binary', 'original'); + (2, 0, 100, 32767, -23372036854775, -9223372036854775808.0, -9223372036854775808.0, 9223372036854775807.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, 100, -32768, 23372036854775, -9223372036854775809.0, -9223372036854775809.0, 9223372036854775808.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, 72, 3244222, -93222, 30.774, - 66475.561431, -66475.561431, 0.561431, '1', '1', '6229-06-28 02:54:28.970117179', '5966-07-09', 'binary', 'original'), + (5, 1, -90, 754072151, 3289094, 46114.284799488, 9250340.75, 9250340.75, 9250340.75, 'junkyard', 'junkyard', '2002-05-10 05:29:48.990818073', '1815-05-06', 'binary', 'original'); select insert_num,part,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,b from part_change_various_various_varchar order by insert_num; @@ -378,10 +393,10 @@ select insert_num,part,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,b from part_ch alter table part_change_various_various_varchar replace columns (insert_num int, c1 VARCHAR(25), c2 VARCHAR(25), c3 VARCHAR(25), c4 VARCHAR(25), c5 VARCHAR(25), c6 VARCHAR(25), c7 VARCHAR(25), c8 VARCHAR(25), c9 VARCHAR(25), c10 VARCHAR(25), c11 VARCHAR(25), c12 VARCHAR(25), c13 VARCHAR(25), b STRING); insert into table part_change_various_various_varchar partition(part=2) - values (5, 'true', '400', '44388', -'100', '953967041.', '62.079153', '718.78', '1', 'verdict', 'verdict', 'timestamp', 'date', 'binary', 'new'); + values (6, 'true', '400', '44388', -'100', '953967041.', '62.079153', '718.78', '1', 'verdict', 'verdict', 'timestamp', 'date', 'binary', 'new'); insert into table part_change_various_various_varchar partition(part=1) - values (6,-'false', '-67', '833', '63993', ' 1255178165.77663', '905070.974', '-4314.7918', -'1240033819', 'trial', 'trial', '2016-03-07 03:02:22.0', '2016-03-07', 'binary', 'new'); + values (7,-'false', '-67', '833', '63993', ' 1255178165.77663', '905070.974', '-4314.7918', -'1240033819', 'trial', 'trial', '2016-03-07 03:02:22.0', '2016-03-07', 'binary', 'new'); explain select insert_num,part,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,b from part_change_various_various_varchar order by insert_num; @@ -399,7 +414,8 @@ CREATE TABLE part_change_various_various_varchar_trunc(insert_num int, c1 BOOLEA insert into table part_change_various_various_varchar_trunc partition(part=1) values(1, true, 200, 72909, 3244222, -99999999999, -29.0764, 470614135, 470614135, 'dynamic reptile ', 'dynamic reptile ', '0004-09-22 18:26:29.519542222', '2007-02-09', 'binary', 'original'), - (2, 0, 100, 483777, 14, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, ' baffling ', ' baffling ', '2007-02-09 05:17:29.368756876', '0004-09-22', 'binary', 'original'), + (2, 0, 100, 32767, -23372036854775, -9223372036854775808.0, -9223372036854775808.0, 9223372036854775807.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, 100, -32768, 23372036854775, -9223372036854775809.0, -9223372036854775809.0, 9223372036854775808.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), (3, false, 72, 3244222, -93222, 30.774, - 66475.561431, -66475.561431, 0.561431, '1', '1', '6229-06-28 02:54:28.970117179', '5966-07-09', 'binary', 'original'), (4, 1, -90, 754072151, 3289094, 46114.284799488, 9250340.75, 9250340.75, 9250340.75, 'junkyard', 'junkyard', '2002-05-10 05:29:48.990818073', '1815-05-06', 'binary', 'original'); @@ -430,9 +446,10 @@ CREATE TABLE part_change_various_various_timestamp(insert_num int, c1 BOOLEAN, c insert into table part_change_various_various_timestamp partition(part=1) values(1, true, 200, 72909, 3244222, -99999999999, -29.0764, 470614135, 470614135, '0004-09-22 18:26:29.519542222', '0004-09-22 18:26:29.519542222', '0004-09-22 18:26:29.519542222', '2007-02-09', 'original'), - (2, 0, 100, 483777, 14, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, '2007-02-09 05:17:29.368756876', '2007-02-09 05:17:29.368756876', '2007-02-09 05:17:29.368756876', '0004-09-22', 'original'), - (3, false, 72, 3244222, -93222, 30.774, - 66475.561431, -66475.561431, 0.561431, '6229-06-28 02:54:28.970117179', '6229-06-28 02:54:28.970117179', '6229-06-28 02:54:28.970117179', '5966-07-09', 'original'), - (4, 1, -90, 754072151, 3289094, 46114.284799488, 9250340.75, 9250340.75, 9250340.75, '2002-05-10 05:29:48.990818073', '2002-05-10 05:29:48.990818073', '2002-05-10 05:29:48.990818073', '1815-05-06', 'original'); + (2, 0, 100, 32767, -23372036854775, -9223372036854775808.0, -9223372036854775808.0, 9223372036854775807.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, 100, -32768, 23372036854775, -9223372036854775809.0, -9223372036854775809.0, 9223372036854775808.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, 72, 3244222, -93222, 30.774, - 66475.561431, -66475.561431, 0.561431, '6229-06-28 02:54:28.970117179', '6229-06-28 02:54:28.970117179', '6229-06-28 02:54:28.970117179', '5966-07-09', 'original'), + (5, 1, -90, 754072151, 3289094, 46114.284799488, 9250340.75, 9250340.75, 9250340.75, '2002-05-10 05:29:48.990818073', '2002-05-10 05:29:48.990818073', '2002-05-10 05:29:48.990818073', '1815-05-06', 'original'); select insert_num,part,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,b from part_change_various_various_timestamp order by insert_num; @@ -440,10 +457,10 @@ select insert_num,part,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,b from part_change alter table part_change_various_various_timestamp replace columns (insert_num int, c1 TIMESTAMP, c2 TIMESTAMP, c3 TIMESTAMP, c4 TIMESTAMP, c5 TIMESTAMP, c6 TIMESTAMP, c7 TIMESTAMP, c8 TIMESTAMP, c9 TIMESTAMP, c10 TIMESTAMP, c11 TIMESTAMP, c12 TIMESTAMP, b STRING); insert into table part_change_various_various_timestamp partition(part=2) - values (5, 'true', '400', '44388', -'100', '953967041.', '62.079153', '718.78', '1', 'timestamp', 'timestamp', 'timestamp', 'date', 'new'); + values (6, 'true', '400', '44388', -'100', '953967041.', '62.079153', '718.78', '1', 'timestamp', 'timestamp', 'timestamp', 'date', 'new'); insert into table part_change_various_various_timestamp partition(part=1) - values (6,-'false', '-67', '833', '63993', ' 1255178165.77663', '905070.974', '-4314.7918', -'1240033819', '2016-03-07 03:02:22.0', '2016-03-07 03:02:22.0', '2016-03-07 03:02:22.0', '2016-03-07', 'new'); + values (7,-'false', '-67', '833', '63993', ' 1255178165.77663', '905070.974', '-4314.7918', -'1240033819', '2016-03-07 03:02:22.0', '2016-03-07 03:02:22.0', '2016-03-07 03:02:22.0', '2016-03-07', 'new'); explain select insert_num,part,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,b from part_change_various_various_timestamp order by insert_num; @@ -481,34 +498,3 @@ select insert_num,part,c1,c2,c3,c4,b from part_change_various_various_date order select insert_num,part,c1,c2,c3,c4,b from part_change_various_various_date order by insert_num; drop table part_change_various_various_date; - - - --- --- SUBSECTION: ALTER TABLE CHANGE COLUMNS for Various --> Various: (STRING, CHAR, VARCHAR) --> BINARY --- -CREATE TABLE part_change_various_various_binary(insert_num int, c1 STRING, c2 CHAR(25), c3 VARCHAR(25), b STRING) PARTITIONED BY(part INT); - -insert into table part_change_various_various_binary partition(part=1) - values(1, 'binary', 'binary', 'binary', 'original'), - (2, 'binary', 'binary', 'binary', 'original'), - (3, 'binary', 'binary', 'binary', 'original'), - (4, 'binary', 'binary', 'binary', 'original'); - -select insert_num,part,c1,c2,c3,b from part_change_various_various_binary order by insert_num; - --- Table-Non-Cascade CHANGE COLUMNS ... -alter table part_change_various_various_binary replace columns (insert_num int, c1 BINARY, c2 BINARY, c3 BINARY, b STRING); - -insert into table part_change_various_various_binary partition(part=2) - values (5, 'binary', 'binary', 'binary', 'new'); - -insert into table part_change_various_various_binary partition(part=1) - values (6,-'binary', 'binary', 'binary', 'new'); - -explain -select insert_num,part,c1,c2,c3,b from part_change_various_various_binary order by insert_num; - -select insert_num,part,c1,c2,c3,b from part_change_various_various_binary order by insert_num; - -drop table part_change_various_various_binary; diff --git ql/src/test/results/clientpositive/schema_evol_orc_nonvec_mapwork_part_all_primitive.q.out ql/src/test/results/clientpositive/schema_evol_orc_nonvec_mapwork_part_all_primitive.q.out index b0874ad..a0159a4 100644 --- ql/src/test/results/clientpositive/schema_evol_orc_nonvec_mapwork_part_all_primitive.q.out +++ ql/src/test/results/clientpositive/schema_evol_orc_nonvec_mapwork_part_all_primitive.q.out @@ -200,6 +200,7 @@ POSTHOOK: Input: default@part_change_various_various_boolean POSTHOOK: Output: default@part_change_various_various_boolean PREHOOK: query: -- -- SUBSECTION: ALTER TABLE CHANGE COLUMNS for Various --> Various: (BOOLEAN, SHORT, INT, LONG, FLOAT, DOUBLE, DECIMAL, STRING, CHAR, VARCHAR, TIMESTAMP) --> BYTE +-- -128 and a maximum value of 127 -- CREATE TABLE part_change_various_various_tinyint(insert_num int, c1 BOOLEAN, c2 SMALLINT, c3 INT, c4 BIGINT, c5 FLOAT, c6 DOUBLE, c7 DECIMAL(38,18), c8 STRING, c9 CHAR(25), c10 VARCHAR(25), c11 TIMESTAMP, b STRING) PARTITIONED BY(part INT) PREHOOK: type: CREATETABLE @@ -207,24 +208,27 @@ PREHOOK: Output: database:default PREHOOK: Output: default@part_change_various_various_tinyint POSTHOOK: query: -- -- SUBSECTION: ALTER TABLE CHANGE COLUMNS for Various --> Various: (BOOLEAN, SHORT, INT, LONG, FLOAT, DOUBLE, DECIMAL, STRING, CHAR, VARCHAR, TIMESTAMP) --> BYTE +-- -128 and a maximum value of 127 -- CREATE TABLE part_change_various_various_tinyint(insert_num int, c1 BOOLEAN, c2 SMALLINT, c3 INT, c4 BIGINT, c5 FLOAT, c6 DOUBLE, c7 DECIMAL(38,18), c8 STRING, c9 CHAR(25), c10 VARCHAR(25), c11 TIMESTAMP, b STRING) PARTITIONED BY(part INT) POSTHOOK: type: CREATETABLE POSTHOOK: Output: database:default POSTHOOK: Output: default@part_change_various_various_tinyint PREHOOK: query: insert into table part_change_various_various_tinyint partition(part=1) - values(1, true, 2000, 72909, 3244222, -29.0764, 470614135, 470614135, '-2999', '-2999', '-2999', '0004-09-22 18:26:29.519542222', 'original'), - (2, 0, 1000, 483777, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), - (3, false, 72909, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '1', '1', '1', '6229-06-28 02:54:28.970117179', 'original'), - (4, 1, 90000, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '5299', '5299', '5299', '2002-05-10 05:29:48.990818073', 'original') + values(1, true, 2000, 72909, 3244222, -29.0764, 470614135, 470614135, '129', '-128', '-2999', '0004-09-22 18:26:29.519542222', 'original'), + (2, 0, -128, -48, -20, -9223372036854775808.0, -9223372036854775808.0, 9223372036854775807.0, '128', '-99', '40', '2007-02-09 05:17:29.368756876', 'original'), + (3, -1, -129, 100, 499, -9223372036854775809.0, -9223372036854775809.0, 9223372036854775808.0, '128', '-99', '40', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, -72, -127, 127, 30.774, 127.561431, -106.561431, '90.284799488', '90.284799488', '1', '6229-06-28 02:54:28.970117179', 'original'), + (5, 1, -90, 75, -38, 109.284799488 ,-128.75, 98.75, '120.4', '33.333', '0.45', '2002-05-10 05:29:48.990818073', 'original') PREHOOK: type: QUERY PREHOOK: Input: default@values__tmp__table__4 PREHOOK: Output: default@part_change_various_various_tinyint@part=1 POSTHOOK: query: insert into table part_change_various_various_tinyint partition(part=1) - values(1, true, 2000, 72909, 3244222, -29.0764, 470614135, 470614135, '-2999', '-2999', '-2999', '0004-09-22 18:26:29.519542222', 'original'), - (2, 0, 1000, 483777, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), - (3, false, 72909, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '1', '1', '1', '6229-06-28 02:54:28.970117179', 'original'), - (4, 1, 90000, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '5299', '5299', '5299', '2002-05-10 05:29:48.990818073', 'original') + values(1, true, 2000, 72909, 3244222, -29.0764, 470614135, 470614135, '129', '-128', '-2999', '0004-09-22 18:26:29.519542222', 'original'), + (2, 0, -128, -48, -20, -9223372036854775808.0, -9223372036854775808.0, 9223372036854775807.0, '128', '-99', '40', '2007-02-09 05:17:29.368756876', 'original'), + (3, -1, -129, 100, 499, -9223372036854775809.0, -9223372036854775809.0, 9223372036854775808.0, '128', '-99', '40', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, -72, -127, 127, 30.774, 127.561431, -106.561431, '90.284799488', '90.284799488', '1', '6229-06-28 02:54:28.970117179', 'original'), + (5, 1, -90, 75, -38, 109.284799488 ,-128.75, 98.75, '120.4', '33.333', '0.45', '2002-05-10 05:29:48.990818073', 'original') POSTHOOK: type: QUERY POSTHOOK: Input: default@values__tmp__table__4 POSTHOOK: Output: default@part_change_various_various_tinyint@part=1 @@ -253,10 +257,11 @@ POSTHOOK: Input: default@part_change_various_various_tinyint POSTHOOK: Input: default@part_change_various_various_tinyint@part=1 #### A masked pattern was here #### insert_num part c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 b -1 1 true 2000 72909 3244222 -29.0764 4.70614135E8 470614135.000000000000000000 -2999 -2999 -2999 0004-09-22 18:26:29.519542222 original -2 1 true 1000 483777 -23866739993 -3651.672 46114.284799488 46114.284799488000000000 2007-02-09 05:17:29.368756876 original -3 1 false NULL 3244222 -93222 30.774 -66475.561431 -66475.561431000000000000 1 1 1 6229-06-28 02:54:28.970117179 original -4 1 true NULL 754072151 3289094 46114.285 9250340.75 9250340.750000000000000000 5299 5299 5299 2002-05-10 05:29:48.990818073 original +1 1 true 2000 72909 3244222 -29.0764 4.70614135E8 470614135.000000000000000000 129 -128 -2999 0004-09-22 18:26:29.519542222 original +2 1 true -128 -48 -20 -9.223372E18 -9.223372036854776E18 9223372036854775807.000000000000000000 128 -99 40 2007-02-09 05:17:29.368756876 original +3 1 true -129 100 499 -9.223372E18 -9.223372036854776E18 9223372036854775808.000000000000000000 128 -99 40 2007-02-09 05:17:29.368756876 original +4 1 false -72 -127 127 30.774 127.561431 -106.561431000000000000 90.284799488 90.284799488 1 6229-06-28 02:54:28.970117179 original +5 1 true -90 75 -38 109.2848 -128.75 98.750000000000000000 120.4 33.333 0.45 2002-05-10 05:29:48.990818073 original PREHOOK: query: -- Table-Non-Cascade CHANGE COLUMNS ... alter table part_change_various_various_tinyint replace columns (insert_num int, c1 TINYINT, c2 TINYINT, c3 TINYINT, c4 TINYINT, c5 TINYINT, c6 TINYINT, c7 TINYINT, c8 TINYINT, c9 TINYINT, c10 TINYINT, c11 TINYINT, b STRING) PREHOOK: type: ALTERTABLE_REPLACECOLS @@ -268,12 +273,12 @@ POSTHOOK: type: ALTERTABLE_REPLACECOLS POSTHOOK: Input: default@part_change_various_various_tinyint POSTHOOK: Output: default@part_change_various_various_tinyint PREHOOK: query: insert into table part_change_various_various_tinyint partition(part=2) - values (5, 23, 71, 127, 1, 131, -60, 68, -230, -182, 40, 93, 'new') + values (6, 23, 71, 127, 1, 131, -60, 68, -230, -182, 40, 93, 'new') PREHOOK: type: QUERY PREHOOK: Input: default@values__tmp__table__5 PREHOOK: Output: default@part_change_various_various_tinyint@part=2 POSTHOOK: query: insert into table part_change_various_various_tinyint partition(part=2) - values (5, 23, 71, 127, 1, 131, -60, 68, -230, -182, 40, 93, 'new') + values (6, 23, 71, 127, 1, 131, -60, 68, -230, -182, 40, 93, 'new') POSTHOOK: type: QUERY POSTHOOK: Input: default@values__tmp__table__5 POSTHOOK: Output: default@part_change_various_various_tinyint@part=2 @@ -292,12 +297,12 @@ POSTHOOK: Lineage: part_change_various_various_tinyint PARTITION(part=2).c9 EXPR POSTHOOK: Lineage: part_change_various_various_tinyint PARTITION(part=2).insert_num EXPRESSION [(values__tmp__table__5)values__tmp__table__5.FieldSchema(name:tmp_values_col1, type:string, comment:), ] _col0 _col1 _col2 _col3 _col4 _col5 _col6 _col7 _col8 _col9 _col10 _col11 _col12 PREHOOK: query: insert into table part_change_various_various_tinyint partition(part=1) - values (6, -248, 85, -126, -167, 91, 113, -28, -63, 0, 8, 237, 'new') + values (7, -120, 85, -126, -167, 91, 113, -28, -63, 0, 8, 237, 'new') PREHOOK: type: QUERY PREHOOK: Input: default@values__tmp__table__6 PREHOOK: Output: default@part_change_various_various_tinyint@part=1 POSTHOOK: query: insert into table part_change_various_various_tinyint partition(part=1) - values (6, -248, 85, -126, -167, 91, 113, -28, -63, 0, 8, 237, 'new') + values (7, -120, 85, -126, -167, 91, 113, -28, -63, 0, 8, 237, 'new') POSTHOOK: type: QUERY POSTHOOK: Input: default@values__tmp__table__6 POSTHOOK: Output: default@part_change_various_various_tinyint@part=1 @@ -332,24 +337,24 @@ STAGE PLANS: Map Operator Tree: TableScan alias: part_change_various_various_tinyint - Statistics: Num rows: 6 Data size: 2482 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 3070 Basic stats: COMPLETE Column stats: NONE Select Operator expressions: insert_num (type: int), part (type: int), c1 (type: tinyint), c2 (type: tinyint), c3 (type: tinyint), c4 (type: tinyint), c5 (type: tinyint), c6 (type: tinyint), c7 (type: tinyint), c8 (type: tinyint), c9 (type: tinyint), c10 (type: tinyint), c11 (type: tinyint), b (type: string) outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6, _col7, _col8, _col9, _col10, _col11, _col12, _col13 - Statistics: Num rows: 6 Data size: 2482 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 3070 Basic stats: COMPLETE Column stats: NONE Reduce Output Operator key expressions: _col0 (type: int) sort order: + - Statistics: Num rows: 6 Data size: 2482 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 3070 Basic stats: COMPLETE Column stats: NONE value expressions: _col1 (type: int), _col2 (type: tinyint), _col3 (type: tinyint), _col4 (type: tinyint), _col5 (type: tinyint), _col6 (type: tinyint), _col7 (type: tinyint), _col8 (type: tinyint), _col9 (type: tinyint), _col10 (type: tinyint), _col11 (type: tinyint), _col12 (type: tinyint), _col13 (type: string) Reduce Operator Tree: Select Operator expressions: KEY.reducesinkkey0 (type: int), VALUE._col0 (type: int), VALUE._col1 (type: tinyint), VALUE._col2 (type: tinyint), VALUE._col3 (type: tinyint), VALUE._col4 (type: tinyint), VALUE._col5 (type: tinyint), VALUE._col6 (type: tinyint), VALUE._col7 (type: tinyint), VALUE._col8 (type: tinyint), VALUE._col9 (type: tinyint), VALUE._col10 (type: tinyint), VALUE._col11 (type: tinyint), VALUE._col12 (type: string) outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6, _col7, _col8, _col9, _col10, _col11, _col12, _col13 - Statistics: Num rows: 6 Data size: 2482 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 3070 Basic stats: COMPLETE Column stats: NONE File Output Operator compressed: false - Statistics: Num rows: 6 Data size: 2482 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 3070 Basic stats: COMPLETE Column stats: NONE table: input format: org.apache.hadoop.mapred.SequenceFileInputFormat output format: org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat @@ -374,12 +379,13 @@ POSTHOOK: Input: default@part_change_various_various_tinyint@part=1 POSTHOOK: Input: default@part_change_various_various_tinyint@part=2 #### A masked pattern was here #### insert_num part c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 b -1 1 1 -48 -51 -66 -29 119 119 73 73 73 -43 original -2 1 1 -24 -63 -25 -67 34 34 NULL NULL NULL 105 original -3 1 0 NULL -66 -38 30 85 85 1 1 1 84 original -4 1 1 NULL 87 6 34 36 36 -77 -77 -77 60 original -5 2 23 71 127 1 NULL -60 68 NULL NULL 40 93 new -6 1 NULL 85 -126 NULL 91 113 -28 -63 0 8 NULL new +1 1 1 NULL NULL NULL -29 NULL NULL NULL -128 NULL NULL original +2 1 1 -128 -48 -20 NULL NULL NULL NULL -99 40 NULL original +3 1 1 NULL 100 NULL NULL NULL NULL NULL -99 40 NULL original +4 1 0 -72 -127 127 30 127 -106 NULL NULL 1 NULL original +5 1 1 -90 75 -38 109 -128 98 NULL NULL NULL NULL original +6 2 23 71 127 1 NULL -60 68 NULL NULL 40 93 new +7 1 -120 85 -126 NULL 91 113 -28 -63 0 8 NULL new PREHOOK: query: drop table part_change_various_various_tinyint PREHOOK: type: DROPTABLE PREHOOK: Input: default@part_change_various_various_tinyint @@ -390,6 +396,7 @@ POSTHOOK: Input: default@part_change_various_various_tinyint POSTHOOK: Output: default@part_change_various_various_tinyint PREHOOK: query: -- -- SUBSECTION: ALTER TABLE CHANGE COLUMNS for Various --> Various: (BOOLEAN, TINYINT, INT, LONG, FLOAT, DOUBLE, DECIMAL, STRING, CHAR, VARCHAR, TIMESTAMP) --> SMALLINT +-- -32768 and a maximum value of 32767 -- CREATE TABLE part_change_various_various_smallint(insert_num int, c1 BOOLEAN, c2 TINYINT, c3 INT, c4 BIGINT, c5 FLOAT, c6 DOUBLE, c7 DECIMAL(38,18), c8 STRING, c9 CHAR(25), c10 VARCHAR(25), c11 TIMESTAMP, b STRING) PARTITIONED BY(part INT) PREHOOK: type: CREATETABLE @@ -397,6 +404,7 @@ PREHOOK: Output: database:default PREHOOK: Output: default@part_change_various_various_smallint POSTHOOK: query: -- -- SUBSECTION: ALTER TABLE CHANGE COLUMNS for Various --> Various: (BOOLEAN, TINYINT, INT, LONG, FLOAT, DOUBLE, DECIMAL, STRING, CHAR, VARCHAR, TIMESTAMP) --> SMALLINT +-- -32768 and a maximum value of 32767 -- CREATE TABLE part_change_various_various_smallint(insert_num int, c1 BOOLEAN, c2 TINYINT, c3 INT, c4 BIGINT, c5 FLOAT, c6 DOUBLE, c7 DECIMAL(38,18), c8 STRING, c9 CHAR(25), c10 VARCHAR(25), c11 TIMESTAMP, b STRING) PARTITIONED BY(part INT) POSTHOOK: type: CREATETABLE @@ -404,17 +412,19 @@ POSTHOOK: Output: database:default POSTHOOK: Output: default@part_change_various_various_smallint PREHOOK: query: insert into table part_change_various_various_smallint partition(part=1) values(1, -2999, 200, 72909, 3244222, -29.0764, 470614135, 470614135, '-2999', '-2999', '-2999', '0004-09-22 18:26:29.519542222', 'original'), - (2, 0, 100, 483777, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), - (3, false, 72, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '1', '1', '1', '6229-06-28 02:54:28.970117179', 'original'), - (4, 1, -90, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '5299', '5299', '5299', '2002-05-10 05:29:48.990818073', 'original') + (2, 0, 100, -32768 , 32767, -3651.672121, -9223372036854775808.0, 9223372036854775807.0, '9000', '32767', '-32768', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, -127, -40000 , 32768, -3651.672121, -9223372036854775809.0, 9223372036854775808.0, '9000', '32767', '-32768', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, 72, 32422, -9322, 30.774, -6675.561431, -6675.561431, '1', '1', '1', '6229-06-28 02:54:28.970117179', 'original'), + (5, 1, -90, 7151, 3094, 30000.284799488 ,-9000.75, 0.75, '5299', '5299', '5299', '2002-05-10 05:29:48.990818073', 'original') PREHOOK: type: QUERY PREHOOK: Input: default@values__tmp__table__7 PREHOOK: Output: default@part_change_various_various_smallint@part=1 POSTHOOK: query: insert into table part_change_various_various_smallint partition(part=1) values(1, -2999, 200, 72909, 3244222, -29.0764, 470614135, 470614135, '-2999', '-2999', '-2999', '0004-09-22 18:26:29.519542222', 'original'), - (2, 0, 100, 483777, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), - (3, false, 72, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '1', '1', '1', '6229-06-28 02:54:28.970117179', 'original'), - (4, 1, -90, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '5299', '5299', '5299', '2002-05-10 05:29:48.990818073', 'original') + (2, 0, 100, -32768 , 32767, -3651.672121, -9223372036854775808.0, 9223372036854775807.0, '9000', '32767', '-32768', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, -127, -40000 , 32768, -3651.672121, -9223372036854775809.0, 9223372036854775808.0, '9000', '32767', '-32768', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, 72, 32422, -9322, 30.774, -6675.561431, -6675.561431, '1', '1', '1', '6229-06-28 02:54:28.970117179', 'original'), + (5, 1, -90, 7151, 3094, 30000.284799488 ,-9000.75, 0.75, '5299', '5299', '5299', '2002-05-10 05:29:48.990818073', 'original') POSTHOOK: type: QUERY POSTHOOK: Input: default@values__tmp__table__7 POSTHOOK: Output: default@part_change_various_various_smallint@part=1 @@ -444,9 +454,10 @@ POSTHOOK: Input: default@part_change_various_various_smallint@part=1 #### A masked pattern was here #### insert_num part c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 b 1 1 true NULL 72909 3244222 -29.0764 4.70614135E8 470614135.000000000000000000 -2999 -2999 -2999 0004-09-22 18:26:29.519542222 original -2 1 true 100 483777 -23866739993 -3651.672 46114.284799488 46114.284799488000000000 2007-02-09 05:17:29.368756876 original -3 1 false 72 3244222 -93222 30.774 -66475.561431 -66475.561431000000000000 1 1 1 6229-06-28 02:54:28.970117179 original -4 1 true -90 754072151 3289094 46114.285 9250340.75 9250340.750000000000000000 5299 5299 5299 2002-05-10 05:29:48.990818073 original +2 1 true 100 -32768 32767 -3651.672 -9.223372036854776E18 9223372036854775807.000000000000000000 9000 32767 -32768 2007-02-09 05:17:29.368756876 original +3 1 true -127 -40000 32768 -3651.672 -9.223372036854776E18 9223372036854775808.000000000000000000 9000 32767 -32768 2007-02-09 05:17:29.368756876 original +4 1 false 72 32422 -9322 30.774 -6675.561431 -6675.561431000000000000 1 1 1 6229-06-28 02:54:28.970117179 original +5 1 true -90 7151 3094 30000.285 -9000.75 0.750000000000000000 5299 5299 5299 2002-05-10 05:29:48.990818073 original PREHOOK: query: -- Table-Non-Cascade CHANGE COLUMNS ... alter table part_change_various_various_smallint replace columns (insert_num int, c1 SMALLINT, c2 SMALLINT, c3 SMALLINT, c4 SMALLINT, c5 SMALLINT, c6 SMALLINT, c7 SMALLINT, c8 SMALLINT, c9 SMALLINT, c10 SMALLINT, c11 SMALLINT, b STRING) PREHOOK: type: ALTERTABLE_REPLACECOLS @@ -458,12 +469,12 @@ POSTHOOK: type: ALTERTABLE_REPLACECOLS POSTHOOK: Input: default@part_change_various_various_smallint POSTHOOK: Output: default@part_change_various_various_smallint PREHOOK: query: insert into table part_change_various_various_smallint partition(part=2) - values (5, -30486, 15230, 3117, 1, -117, -7131, 20227, -24858, -28771, 46114, 72909, 'new') + values (6, -30486, 15230, 3117, 1, -117, -7131, 20227, -24858, -28771, 46114, 72909, 'new') PREHOOK: type: QUERY PREHOOK: Input: default@values__tmp__table__8 PREHOOK: Output: default@part_change_various_various_smallint@part=2 POSTHOOK: query: insert into table part_change_various_various_smallint partition(part=2) - values (5, -30486, 15230, 3117, 1, -117, -7131, 20227, -24858, -28771, 46114, 72909, 'new') + values (6, -30486, 15230, 3117, 1, -117, -7131, 20227, -24858, -28771, 46114, 72909, 'new') POSTHOOK: type: QUERY POSTHOOK: Input: default@values__tmp__table__8 POSTHOOK: Output: default@part_change_various_various_smallint@part=2 @@ -482,12 +493,12 @@ POSTHOOK: Lineage: part_change_various_various_smallint PARTITION(part=2).c9 EXP POSTHOOK: Lineage: part_change_various_various_smallint PARTITION(part=2).insert_num EXPRESSION [(values__tmp__table__8)values__tmp__table__8.FieldSchema(name:tmp_values_col1, type:string, comment:), ] _col0 _col1 _col2 _col3 _col4 _col5 _col6 _col7 _col8 _col9 _col10 _col11 _col12 PREHOOK: query: insert into table part_change_various_various_smallint partition(part=1) - values (6, -10542, -1805, -4844, 15507, 91, 22385, -28, -12268, 0, 66475, 774, 'new') + values (7, -10542, -1805, -4844, 15507, 91, 22385, -28, -12268, 0, 66475, 774, 'new') PREHOOK: type: QUERY PREHOOK: Input: default@values__tmp__table__9 PREHOOK: Output: default@part_change_various_various_smallint@part=1 POSTHOOK: query: insert into table part_change_various_various_smallint partition(part=1) - values (6, -10542, -1805, -4844, 15507, 91, 22385, -28, -12268, 0, 66475, 774, 'new') + values (7, -10542, -1805, -4844, 15507, 91, 22385, -28, -12268, 0, 66475, 774, 'new') POSTHOOK: type: QUERY POSTHOOK: Input: default@values__tmp__table__9 POSTHOOK: Output: default@part_change_various_various_smallint@part=1 @@ -522,24 +533,24 @@ STAGE PLANS: Map Operator Tree: TableScan alias: part_change_various_various_smallint - Statistics: Num rows: 6 Data size: 2498 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 3074 Basic stats: COMPLETE Column stats: NONE Select Operator expressions: insert_num (type: int), part (type: int), c1 (type: smallint), c2 (type: smallint), c3 (type: smallint), c4 (type: smallint), c5 (type: smallint), c6 (type: smallint), c7 (type: smallint), c8 (type: smallint), c9 (type: smallint), c10 (type: smallint), c11 (type: smallint), b (type: string) outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6, _col7, _col8, _col9, _col10, _col11, _col12, _col13 - Statistics: Num rows: 6 Data size: 2498 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 3074 Basic stats: COMPLETE Column stats: NONE Reduce Output Operator key expressions: _col0 (type: int) sort order: + - Statistics: Num rows: 6 Data size: 2498 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 3074 Basic stats: COMPLETE Column stats: NONE value expressions: _col1 (type: int), _col2 (type: smallint), _col3 (type: smallint), _col4 (type: smallint), _col5 (type: smallint), _col6 (type: smallint), _col7 (type: smallint), _col8 (type: smallint), _col9 (type: smallint), _col10 (type: smallint), _col11 (type: smallint), _col12 (type: smallint), _col13 (type: string) Reduce Operator Tree: Select Operator expressions: KEY.reducesinkkey0 (type: int), VALUE._col0 (type: int), VALUE._col1 (type: smallint), VALUE._col2 (type: smallint), VALUE._col3 (type: smallint), VALUE._col4 (type: smallint), VALUE._col5 (type: smallint), VALUE._col6 (type: smallint), VALUE._col7 (type: smallint), VALUE._col8 (type: smallint), VALUE._col9 (type: smallint), VALUE._col10 (type: smallint), VALUE._col11 (type: smallint), VALUE._col12 (type: string) outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6, _col7, _col8, _col9, _col10, _col11, _col12, _col13 - Statistics: Num rows: 6 Data size: 2498 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 3074 Basic stats: COMPLETE Column stats: NONE File Output Operator compressed: false - Statistics: Num rows: 6 Data size: 2498 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 3074 Basic stats: COMPLETE Column stats: NONE table: input format: org.apache.hadoop.mapred.SequenceFileInputFormat output format: org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat @@ -564,12 +575,13 @@ POSTHOOK: Input: default@part_change_various_various_smallint@part=1 POSTHOOK: Input: default@part_change_various_various_smallint@part=2 #### A masked pattern was here #### insert_num part c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 b -1 1 1 NULL 7373 -32578 -29 119 119 -2999 -2999 -2999 -11819 original -2 1 1 100 25025 29415 -3651 -19422 -19422 NULL NULL NULL 29801 original -3 1 0 72 -32578 -27686 30 -939 -939 1 1 1 -8620 original -4 1 1 -90 14935 12294 -19422 9764 9764 5299 5299 5299 -17092 original -5 2 -30486 15230 3117 1 -117 -7131 20227 -24858 -28771 NULL NULL new -6 1 -10542 -1805 -4844 15507 91 22385 -28 -12268 0 NULL 774 new +1 1 1 NULL NULL NULL -29 NULL NULL -2999 -2999 -2999 NULL original +2 1 1 100 -32768 32767 -3651 NULL NULL 9000 32767 -32768 NULL original +3 1 1 -127 NULL NULL -3651 NULL NULL 9000 32767 -32768 NULL original +4 1 0 72 32422 -9322 30 -6675 -6675 1 1 1 NULL original +5 1 1 -90 7151 3094 30000 -9000 0 5299 5299 5299 NULL original +6 2 -30486 15230 3117 1 -117 -7131 20227 -24858 -28771 NULL NULL new +7 1 -10542 -1805 -4844 15507 91 22385 -28 -12268 0 NULL 774 new PREHOOK: query: drop table part_change_various_various_smallint PREHOOK: type: DROPTABLE PREHOOK: Input: default@part_change_various_various_smallint @@ -580,6 +592,7 @@ POSTHOOK: Input: default@part_change_various_various_smallint POSTHOOK: Output: default@part_change_various_various_smallint PREHOOK: query: -- -- SUBSECTION: ALTER TABLE CHANGE COLUMNS for Various --> Various: (BOOLEAN, TINYINT, SMALLINT, LONG, FLOAT, DOUBLE, DECIMAL, STRING, CHAR, VARCHAR, TIMESTAMP) --> INT +-- –2147483648 to 2147483647 -- CREATE TABLE part_change_various_various_int(insert_num int, c1 BOOLEAN, c2 TINYINT, c3 SMALLINT, c4 BIGINT, c5 FLOAT, c6 DOUBLE, c7 DECIMAL(38,18), c8 STRING, c9 CHAR(25), c10 VARCHAR(25), c11 TIMESTAMP, b STRING) PARTITIONED BY(part INT) PREHOOK: type: CREATETABLE @@ -587,6 +600,7 @@ PREHOOK: Output: database:default PREHOOK: Output: default@part_change_various_various_int POSTHOOK: query: -- -- SUBSECTION: ALTER TABLE CHANGE COLUMNS for Various --> Various: (BOOLEAN, TINYINT, SMALLINT, LONG, FLOAT, DOUBLE, DECIMAL, STRING, CHAR, VARCHAR, TIMESTAMP) --> INT +-- –2147483648 to 2147483647 -- CREATE TABLE part_change_various_various_int(insert_num int, c1 BOOLEAN, c2 TINYINT, c3 SMALLINT, c4 BIGINT, c5 FLOAT, c6 DOUBLE, c7 DECIMAL(38,18), c8 STRING, c9 CHAR(25), c10 VARCHAR(25), c11 TIMESTAMP, b STRING) PARTITIONED BY(part INT) POSTHOOK: type: CREATETABLE @@ -594,17 +608,19 @@ POSTHOOK: Output: database:default POSTHOOK: Output: default@part_change_various_various_int PREHOOK: query: insert into table part_change_various_various_int partition(part=1) values(1, -2999, 200, 72909, 3244222, -29.0764, 470614135, 470614135, '-2999', '-2999', '-2999', '0004-09-22 18:26:29.519542222', 'original'), - (2, 0, 100, 483777, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), - (3, false, 72, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '1', '1', '1', '6229-06-28 02:54:28.970117179', 'original'), - (4, 1, -90, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '5299', '5299', '5299', '2002-05-10 05:29:48.990818073', 'original') + (2, 0, 100, 2147483647, -23866739993, -3651.672121, -9223372036854775808.0, 9223372036854775807.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, 100, 2147483648, -23866739993, -3651.672121, -9223372036854775809.0, 9223372036854775808.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, 72, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '1', '1', '1', '6229-06-28 02:54:28.970117179', 'original'), + (5, 1, -90, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '5299', '5299', '5299', '2002-05-10 05:29:48.990818073', 'original') PREHOOK: type: QUERY PREHOOK: Input: default@values__tmp__table__10 PREHOOK: Output: default@part_change_various_various_int@part=1 POSTHOOK: query: insert into table part_change_various_various_int partition(part=1) values(1, -2999, 200, 72909, 3244222, -29.0764, 470614135, 470614135, '-2999', '-2999', '-2999', '0004-09-22 18:26:29.519542222', 'original'), - (2, 0, 100, 483777, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), - (3, false, 72, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '1', '1', '1', '6229-06-28 02:54:28.970117179', 'original'), - (4, 1, -90, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '5299', '5299', '5299', '2002-05-10 05:29:48.990818073', 'original') + (2, 0, 100, 2147483647, -23866739993, -3651.672121, -9223372036854775808.0, 9223372036854775807.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, 100, 2147483648, -23866739993, -3651.672121, -9223372036854775809.0, 9223372036854775808.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, 72, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '1', '1', '1', '6229-06-28 02:54:28.970117179', 'original'), + (5, 1, -90, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '5299', '5299', '5299', '2002-05-10 05:29:48.990818073', 'original') POSTHOOK: type: QUERY POSTHOOK: Input: default@values__tmp__table__10 POSTHOOK: Output: default@part_change_various_various_int@part=1 @@ -634,9 +650,10 @@ POSTHOOK: Input: default@part_change_various_various_int@part=1 #### A masked pattern was here #### insert_num part c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 b 1 1 true NULL NULL 3244222 -29.0764 4.70614135E8 470614135.000000000000000000 -2999 -2999 -2999 0004-09-22 18:26:29.519542222 original -2 1 true 100 NULL -23866739993 -3651.672 46114.284799488 46114.284799488000000000 2007-02-09 05:17:29.368756876 original -3 1 false 72 NULL -93222 30.774 -66475.561431 -66475.561431000000000000 1 1 1 6229-06-28 02:54:28.970117179 original -4 1 true -90 NULL 3289094 46114.285 9250340.75 9250340.750000000000000000 5299 5299 5299 2002-05-10 05:29:48.990818073 original +2 1 true 100 NULL -23866739993 -3651.672 -9.223372036854776E18 9223372036854775807.000000000000000000 2007-02-09 05:17:29.368756876 original +3 1 true 100 NULL -23866739993 -3651.672 -9.223372036854776E18 9223372036854775808.000000000000000000 2007-02-09 05:17:29.368756876 original +4 1 false 72 NULL -93222 30.774 -66475.561431 -66475.561431000000000000 1 1 1 6229-06-28 02:54:28.970117179 original +5 1 true -90 NULL 3289094 46114.285 9250340.75 9250340.750000000000000000 5299 5299 5299 2002-05-10 05:29:48.990818073 original PREHOOK: query: -- Table-Non-Cascade CHANGE COLUMNS ... alter table part_change_various_various_int replace columns (insert_num int, c1 INT, c2 INT, c3 INT, c4 INT, c5 INT, c6 INT, c7 INT, c8 INT, c9 INT, c10 INT, c11 INT, b STRING) PREHOOK: type: ALTERTABLE_REPLACECOLS @@ -712,24 +729,24 @@ STAGE PLANS: Map Operator Tree: TableScan alias: part_change_various_various_int - Statistics: Num rows: 6 Data size: 2494 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 3051 Basic stats: COMPLETE Column stats: NONE Select Operator expressions: insert_num (type: int), part (type: int), c1 (type: int), c2 (type: int), c3 (type: int), c4 (type: int), c5 (type: int), c6 (type: int), c7 (type: int), c8 (type: int), c9 (type: int), c10 (type: int), c11 (type: int), b (type: string) outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6, _col7, _col8, _col9, _col10, _col11, _col12, _col13 - Statistics: Num rows: 6 Data size: 2494 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 3051 Basic stats: COMPLETE Column stats: NONE Reduce Output Operator key expressions: _col0 (type: int) sort order: + - Statistics: Num rows: 6 Data size: 2494 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 3051 Basic stats: COMPLETE Column stats: NONE value expressions: _col1 (type: int), _col2 (type: int), _col3 (type: int), _col4 (type: int), _col5 (type: int), _col6 (type: int), _col7 (type: int), _col8 (type: int), _col9 (type: int), _col10 (type: int), _col11 (type: int), _col12 (type: int), _col13 (type: string) Reduce Operator Tree: Select Operator expressions: KEY.reducesinkkey0 (type: int), VALUE._col0 (type: int), VALUE._col1 (type: int), VALUE._col2 (type: int), VALUE._col3 (type: int), VALUE._col4 (type: int), VALUE._col5 (type: int), VALUE._col6 (type: int), VALUE._col7 (type: int), VALUE._col8 (type: int), VALUE._col9 (type: int), VALUE._col10 (type: int), VALUE._col11 (type: int), VALUE._col12 (type: string) outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6, _col7, _col8, _col9, _col10, _col11, _col12, _col13 - Statistics: Num rows: 6 Data size: 2494 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 3051 Basic stats: COMPLETE Column stats: NONE File Output Operator compressed: false - Statistics: Num rows: 6 Data size: 2494 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 3051 Basic stats: COMPLETE Column stats: NONE table: input format: org.apache.hadoop.mapred.SequenceFileInputFormat output format: org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat @@ -754,10 +771,11 @@ POSTHOOK: Input: default@part_change_various_various_int@part=1 POSTHOOK: Input: default@part_change_various_various_int@part=2 #### A masked pattern was here #### insert_num part c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 b -1 1 1 NULL NULL 3244222 -29 470614135 470614135 -2999 -2999 -2999 -1888628267 original -2 1 1 100 NULL 1903063783 -3651 46114 46114 NULL NULL NULL 1171027049 original -3 1 0 72 NULL -93222 30 -66475 -66475 1 1 1 1272503892 original -4 1 1 -90 NULL 3289094 46114 9250340 9250340 5299 5299 5299 1021033788 original +1 1 1 NULL NULL 3244222 -29 470614135 470614135 -2999 -2999 -2999 NULL original +2 1 1 100 NULL NULL -3651 NULL NULL NULL NULL NULL 1171027049 original +3 1 1 100 NULL NULL -3651 NULL NULL NULL NULL NULL 1171027049 original +4 1 0 72 NULL -93222 30 -66475 -66475 1 1 1 NULL original +5 1 1 -90 NULL 3289094 46114 9250340 9250340 5299 5299 5299 1021033788 original 5 2 560930 -1281818 127 1 84269672 -60 27094665 -36016110 -182 3244222 561431 new 6 1 -1928921 695025 -151775655 -167 91 113 -164341325 -134237413 0 6229 4422 new PREHOOK: query: drop table part_change_various_various_int @@ -770,6 +788,7 @@ POSTHOOK: Input: default@part_change_various_various_int POSTHOOK: Output: default@part_change_various_various_int PREHOOK: query: -- -- SUBSECTION: ALTER TABLE CHANGE COLUMNS for Various --> Various: (BOOLEAN, TINYINT, SMALLINT, INT, FLOAT, DOUBLE, DECIMAL, STRING, CHAR, VARCHAR, TIMESTAMP) --> BIGINT +-- -9223372036854775808 to 9223372036854775807 -- CREATE TABLE part_change_various_various_bigint(insert_num int, c1 BOOLEAN, c2 TINYINT, c3 SMALLINT, c4 INT, c5 FLOAT, c6 DOUBLE, c7 DECIMAL(38,18), c8 STRING, c9 CHAR(25), c10 VARCHAR(25), c11 TIMESTAMP, b STRING) PARTITIONED BY(part INT) PREHOOK: type: CREATETABLE @@ -777,6 +796,7 @@ PREHOOK: Output: database:default PREHOOK: Output: default@part_change_various_various_bigint POSTHOOK: query: -- -- SUBSECTION: ALTER TABLE CHANGE COLUMNS for Various --> Various: (BOOLEAN, TINYINT, SMALLINT, INT, FLOAT, DOUBLE, DECIMAL, STRING, CHAR, VARCHAR, TIMESTAMP) --> BIGINT +-- -9223372036854775808 to 9223372036854775807 -- CREATE TABLE part_change_various_various_bigint(insert_num int, c1 BOOLEAN, c2 TINYINT, c3 SMALLINT, c4 INT, c5 FLOAT, c6 DOUBLE, c7 DECIMAL(38,18), c8 STRING, c9 CHAR(25), c10 VARCHAR(25), c11 TIMESTAMP, b STRING) PARTITIONED BY(part INT) POSTHOOK: type: CREATETABLE @@ -784,17 +804,19 @@ POSTHOOK: Output: database:default POSTHOOK: Output: default@part_change_various_various_bigint PREHOOK: query: insert into table part_change_various_various_bigint partition(part=1) values(1, -2999, 200, 72909, 3244222, -29.0764, 470614135, 470614135, '-2999', '-2999', '-2999', '0004-09-22 18:26:29.519542222', 'original'), - (2, 0, 100, 483777, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), - (3, false, 72, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '1', '1', '1', '6229-06-28 02:54:28.970117179', 'original'), - (4, 1, -90, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '1998287.3541', '1998287.3541', '1998287.3541', '2002-05-10 05:29:48.990818073', 'original') + (2, 0, 100, 32767, -23372036854775, -3651.672121, -9223372036854775808.0, 9223372036854775807.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, 100, -32768, 23372036854775, -3651.672121, -9223372036854775809.0, 9223372036854775808.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, 72, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '1', '1', '1', '6229-06-28 02:54:28.970117179', 'original'), + (5, 1, -90, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '1998287.3541', '1998287.3541', '1998287.3541', '2002-05-10 05:29:48.990818073', 'original') PREHOOK: type: QUERY PREHOOK: Input: default@values__tmp__table__13 PREHOOK: Output: default@part_change_various_various_bigint@part=1 POSTHOOK: query: insert into table part_change_various_various_bigint partition(part=1) values(1, -2999, 200, 72909, 3244222, -29.0764, 470614135, 470614135, '-2999', '-2999', '-2999', '0004-09-22 18:26:29.519542222', 'original'), - (2, 0, 100, 483777, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), - (3, false, 72, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '1', '1', '1', '6229-06-28 02:54:28.970117179', 'original'), - (4, 1, -90, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '1998287.3541', '1998287.3541', '1998287.3541', '2002-05-10 05:29:48.990818073', 'original') + (2, 0, 100, 32767, -23372036854775, -3651.672121, -9223372036854775808.0, 9223372036854775807.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, 100, -32768, 23372036854775, -3651.672121, -9223372036854775809.0, 9223372036854775808.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, 72, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '1', '1', '1', '6229-06-28 02:54:28.970117179', 'original'), + (5, 1, -90, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '1998287.3541', '1998287.3541', '1998287.3541', '2002-05-10 05:29:48.990818073', 'original') POSTHOOK: type: QUERY POSTHOOK: Input: default@values__tmp__table__13 POSTHOOK: Output: default@part_change_various_various_bigint@part=1 @@ -824,9 +846,10 @@ POSTHOOK: Input: default@part_change_various_various_bigint@part=1 #### A masked pattern was here #### insert_num part c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 b 1 1 true NULL NULL 3244222 -29.0764 4.70614135E8 470614135.000000000000000000 -2999 -2999 -2999 0004-09-22 18:26:29.519542222 original -2 1 true 100 NULL NULL -3651.672 46114.284799488 46114.284799488000000000 2007-02-09 05:17:29.368756876 original -3 1 false 72 NULL -93222 30.774 -66475.561431 -66475.561431000000000000 1 1 1 6229-06-28 02:54:28.970117179 original -4 1 true -90 NULL 3289094 46114.285 9250340.75 9250340.750000000000000000 1998287.3541 1998287.3541 1998287.3541 2002-05-10 05:29:48.990818073 original +2 1 true 100 32767 NULL -3651.672 -9.223372036854776E18 9223372036854775807.000000000000000000 2007-02-09 05:17:29.368756876 original +3 1 true 100 -32768 NULL -3651.672 -9.223372036854776E18 9223372036854775808.000000000000000000 2007-02-09 05:17:29.368756876 original +4 1 false 72 NULL -93222 30.774 -66475.561431 -66475.561431000000000000 1 1 1 6229-06-28 02:54:28.970117179 original +5 1 true -90 NULL 3289094 46114.285 9250340.75 9250340.750000000000000000 1998287.3541 1998287.3541 1998287.3541 2002-05-10 05:29:48.990818073 original PREHOOK: query: -- Table-Non-Cascade CHANGE COLUMNS ... alter table part_change_various_various_bigint replace columns (insert_num int, c1 BIGINT, c2 BIGINT, c3 BIGINT, c4 BIGINT, c5 BIGINT, c6 BIGINT, c7 BIGINT, c8 BIGINT, c9 BIGINT, c10 BIGINT, c11 BIGINT, b STRING) PREHOOK: type: ALTERTABLE_REPLACECOLS @@ -838,12 +861,12 @@ POSTHOOK: type: ALTERTABLE_REPLACECOLS POSTHOOK: Input: default@part_change_various_various_bigint POSTHOOK: Output: default@part_change_various_various_bigint PREHOOK: query: insert into table part_change_various_various_bigint partition(part=2) - values (5, 5573199346255528403, 71, 151775655, 1, 131, -60, 6275638713485623898, -230, -695025, 519542222, -29.0764, 'new') + values (6, 5573199346255528403, 71, 151775655, 1, 131, -60, 6275638713485623898, -230, -695025, 519542222, -29.0764, 'new') PREHOOK: type: QUERY PREHOOK: Input: default@values__tmp__table__14 PREHOOK: Output: default@part_change_various_various_bigint@part=2 POSTHOOK: query: insert into table part_change_various_various_bigint partition(part=2) - values (5, 5573199346255528403, 71, 151775655, 1, 131, -60, 6275638713485623898, -230, -695025, 519542222, -29.0764, 'new') + values (6, 5573199346255528403, 71, 151775655, 1, 131, -60, 6275638713485623898, -230, -695025, 519542222, -29.0764, 'new') POSTHOOK: type: QUERY POSTHOOK: Input: default@values__tmp__table__14 POSTHOOK: Output: default@part_change_various_various_bigint@part=2 @@ -862,12 +885,12 @@ POSTHOOK: Lineage: part_change_various_various_bigint PARTITION(part=2).c9 EXPRE POSTHOOK: Lineage: part_change_various_various_bigint PARTITION(part=2).insert_num EXPRESSION [(values__tmp__table__14)values__tmp__table__14.FieldSchema(name:tmp_values_col1, type:string, comment:), ] _col0 _col1 _col2 _col3 _col4 _col5 _col6 _col7 _col8 _col9 _col10 _col11 _col12 PREHOOK: query: insert into table part_change_various_various_bigint partition(part=1) - values (6, -164341325, 9043162437544575070, -126, -6566204574741299000, 91, 113, -28, -63, 0, 3244222, -90, 'new') + values (7, -164341325, 9043162437544575070, -126, -6566204574741299000, 91, 113, -28, -63, 0, 3244222, -90, 'new') PREHOOK: type: QUERY PREHOOK: Input: default@values__tmp__table__15 PREHOOK: Output: default@part_change_various_various_bigint@part=1 POSTHOOK: query: insert into table part_change_various_various_bigint partition(part=1) - values (6, -164341325, 9043162437544575070, -126, -6566204574741299000, 91, 113, -28, -63, 0, 3244222, -90, 'new') + values (7, -164341325, 9043162437544575070, -126, -6566204574741299000, 91, 113, -28, -63, 0, 3244222, -90, 'new') POSTHOOK: type: QUERY POSTHOOK: Input: default@values__tmp__table__15 POSTHOOK: Output: default@part_change_various_various_bigint@part=1 @@ -902,24 +925,24 @@ STAGE PLANS: Map Operator Tree: TableScan alias: part_change_various_various_bigint - Statistics: Num rows: 6 Data size: 2578 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 3129 Basic stats: COMPLETE Column stats: NONE Select Operator expressions: insert_num (type: int), part (type: int), c1 (type: bigint), c2 (type: bigint), c3 (type: bigint), c4 (type: bigint), c5 (type: bigint), c6 (type: bigint), c7 (type: bigint), c8 (type: bigint), c9 (type: bigint), c10 (type: bigint), c11 (type: bigint), b (type: string) outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6, _col7, _col8, _col9, _col10, _col11, _col12, _col13 - Statistics: Num rows: 6 Data size: 2578 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 3129 Basic stats: COMPLETE Column stats: NONE Reduce Output Operator key expressions: _col0 (type: int) sort order: + - Statistics: Num rows: 6 Data size: 2578 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 3129 Basic stats: COMPLETE Column stats: NONE value expressions: _col1 (type: int), _col2 (type: bigint), _col3 (type: bigint), _col4 (type: bigint), _col5 (type: bigint), _col6 (type: bigint), _col7 (type: bigint), _col8 (type: bigint), _col9 (type: bigint), _col10 (type: bigint), _col11 (type: bigint), _col12 (type: bigint), _col13 (type: string) Reduce Operator Tree: Select Operator expressions: KEY.reducesinkkey0 (type: int), VALUE._col0 (type: int), VALUE._col1 (type: bigint), VALUE._col2 (type: bigint), VALUE._col3 (type: bigint), VALUE._col4 (type: bigint), VALUE._col5 (type: bigint), VALUE._col6 (type: bigint), VALUE._col7 (type: bigint), VALUE._col8 (type: bigint), VALUE._col9 (type: bigint), VALUE._col10 (type: bigint), VALUE._col11 (type: bigint), VALUE._col12 (type: string) outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6, _col7, _col8, _col9, _col10, _col11, _col12, _col13 - Statistics: Num rows: 6 Data size: 2578 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 3129 Basic stats: COMPLETE Column stats: NONE File Output Operator compressed: false - Statistics: Num rows: 6 Data size: 2578 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 3129 Basic stats: COMPLETE Column stats: NONE table: input format: org.apache.hadoop.mapred.SequenceFileInputFormat output format: org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat @@ -945,11 +968,12 @@ POSTHOOK: Input: default@part_change_various_various_bigint@part=2 #### A masked pattern was here #### insert_num part c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 b 1 1 1 NULL NULL 3244222 -29 470614135 470614135 -2999 -2999 -2999 -62018170411 original -2 1 1 100 NULL NULL -3651 46114 46114 NULL NULL NULL 1171027049 original -3 1 0 72 NULL -93222 30 -66475 -66475 1 1 1 134416490068 original -4 1 1 -90 NULL 3289094 46114 9250340 9250340 NULL NULL NULL 1021033788 original -5 2 5573199346255528403 71 151775655 1 131 -60 6275638713485623898 -230 -695025 519542222 -29 new -6 1 -164341325 9043162437544575070 -126 -6566204574741299000 91 113 -28 -63 0 3244222 -90 new +2 1 1 100 32767 NULL -3651 -9223372036854775808 9223372036854775807 NULL NULL NULL 1171027049 original +3 1 1 100 -32768 NULL -3651 -9223372036854775808 NULL NULL NULL NULL 1171027049 original +4 1 0 72 NULL -93222 30 -66475 -66475 1 1 1 134416490068 original +5 1 1 -90 NULL 3289094 46114 9250340 9250340 NULL NULL NULL 1021033788 original +6 2 5573199346255528403 71 151775655 1 131 -60 6275638713485623898 -230 -695025 519542222 -29 new +7 1 -164341325 9043162437544575070 -126 -6566204574741299000 91 113 -28 -63 0 3244222 -90 new PREHOOK: query: drop table part_change_various_various_bigint PREHOOK: type: DROPTABLE PREHOOK: Input: default@part_change_various_various_bigint @@ -974,17 +998,19 @@ POSTHOOK: Output: database:default POSTHOOK: Output: default@part_change_various_various_float PREHOOK: query: insert into table part_change_various_various_float partition(part=1) values(1, -2999, 200, 72909, 3244222, -29.0764, 470614135, 470614135, '-2999', '-2999', '-2999', '0004-09-22 18:26:29.519542222', 'original'), - (2, 0, 100, 483777, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), - (3, false, 72, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '2402.3', '2402.3', '2402.3', '6229-06-28 02:54:28.970117179', 'original'), - (4, 1, -90, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '5299', '5299', '5299', '2002-05-10 05:29:48.990818073', 'original') + (2, 0, 100, 32767, -23372036854775, -3651.672121, -9223372036854775808.0, 9223372036854775807.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, 100, -32768, 23372036854775, -3651.672121, -9223372036854775809.0, 9223372036854775808.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, 72, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '2402.3', '2402.3', '2402.3', '6229-06-28 02:54:28.970117179', 'original'), + (5, 1, -90, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '5299', '5299', '5299', '2002-05-10 05:29:48.990818073', 'original') PREHOOK: type: QUERY PREHOOK: Input: default@values__tmp__table__16 PREHOOK: Output: default@part_change_various_various_float@part=1 POSTHOOK: query: insert into table part_change_various_various_float partition(part=1) values(1, -2999, 200, 72909, 3244222, -29.0764, 470614135, 470614135, '-2999', '-2999', '-2999', '0004-09-22 18:26:29.519542222', 'original'), - (2, 0, 100, 483777, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), - (3, false, 72, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '2402.3', '2402.3', '2402.3', '6229-06-28 02:54:28.970117179', 'original'), - (4, 1, -90, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '5299', '5299', '5299', '2002-05-10 05:29:48.990818073', 'original') + (2, 0, 100, 32767, -23372036854775, -3651.672121, -9223372036854775808.0, 9223372036854775807.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, 100, -32768, 23372036854775, -3651.672121, -9223372036854775809.0, 9223372036854775808.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, 72, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '2402.3', '2402.3', '2402.3', '6229-06-28 02:54:28.970117179', 'original'), + (5, 1, -90, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '5299', '5299', '5299', '2002-05-10 05:29:48.990818073', 'original') POSTHOOK: type: QUERY POSTHOOK: Input: default@values__tmp__table__16 POSTHOOK: Output: default@part_change_various_various_float@part=1 @@ -1014,9 +1040,10 @@ POSTHOOK: Input: default@part_change_various_various_float@part=1 #### A masked pattern was here #### insert_num part c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 b 1 1 true NULL NULL 3244222 -29 4.70614135E8 470614135.000000000000000000 -2999 -2999 -2999 0004-09-22 18:26:29.519542222 original -2 1 true 100 NULL NULL -3651 46114.284799488 46114.284799488000000000 2007-02-09 05:17:29.368756876 original -3 1 false 72 NULL -93222 30 -66475.561431 -66475.561431000000000000 2402.3 2402.3 2402.3 6229-06-28 02:54:28.970117179 original -4 1 true -90 NULL 3289094 46114 9250340.75 9250340.750000000000000000 5299 5299 5299 2002-05-10 05:29:48.990818073 original +2 1 true 100 32767 NULL -3651 -9.223372036854776E18 9223372036854775807.000000000000000000 2007-02-09 05:17:29.368756876 original +3 1 true 100 -32768 NULL -3651 -9.223372036854776E18 9223372036854775808.000000000000000000 2007-02-09 05:17:29.368756876 original +4 1 false 72 NULL -93222 30 -66475.561431 -66475.561431000000000000 2402.3 2402.3 2402.3 6229-06-28 02:54:28.970117179 original +5 1 true -90 NULL 3289094 46114 9250340.75 9250340.750000000000000000 5299 5299 5299 2002-05-10 05:29:48.990818073 original PREHOOK: query: -- Table-Non-Cascade CHANGE COLUMNS ... alter table part_change_various_various_float replace columns (insert_num int, c1 FLOAT, c2 FLOAT, c3 FLOAT, c4 FLOAT, c5 FLOAT, c6 FLOAT, c7 FLOAT, c8 FLOAT, c9 FLOAT, c10 FLOAT, c11 FLOAT, b STRING) PREHOOK: type: ALTERTABLE_REPLACECOLS @@ -1028,12 +1055,12 @@ POSTHOOK: type: ALTERTABLE_REPLACECOLS POSTHOOK: Input: default@part_change_various_various_float POSTHOOK: Output: default@part_change_various_various_float PREHOOK: query: insert into table part_change_various_various_float partition(part=2) - values (5, 953967041., 62.0791539559013466, 718.78, 1, 203.199548118, -60, 6275638713485623898, -230, -695025, -3651.67212, 46114.28, 'new') + values (6, 953967041., 62.0791539559013466, 718.78, 1, 203.199548118, -60, 6275638713485623898, -230, -695025, -3651.67212, 46114.28, 'new') PREHOOK: type: QUERY PREHOOK: Input: default@values__tmp__table__17 PREHOOK: Output: default@part_change_various_various_float@part=2 POSTHOOK: query: insert into table part_change_various_various_float partition(part=2) - values (5, 953967041., 62.0791539559013466, 718.78, 1, 203.199548118, -60, 6275638713485623898, -230, -695025, -3651.67212, 46114.28, 'new') + values (6, 953967041., 62.0791539559013466, 718.78, 1, 203.199548118, -60, 6275638713485623898, -230, -695025, -3651.67212, 46114.28, 'new') POSTHOOK: type: QUERY POSTHOOK: Input: default@values__tmp__table__17 POSTHOOK: Output: default@part_change_various_various_float@part=2 @@ -1052,12 +1079,12 @@ POSTHOOK: Lineage: part_change_various_various_float PARTITION(part=2).c9 EXPRES POSTHOOK: Lineage: part_change_various_various_float PARTITION(part=2).insert_num EXPRESSION [(values__tmp__table__17)values__tmp__table__17.FieldSchema(name:tmp_values_col1, type:string, comment:), ] _col0 _col1 _col2 _col3 _col4 _col5 _col6 _col7 _col8 _col9 _col10 _col11 _col12 PREHOOK: query: insert into table part_change_various_various_float partition(part=1) - values (6, -1255178165.77663, 9043162437544575070.974, -4314.7918, -1240033819, 91, 1698.95, -100.3597812, -63, 0, -93222.200, 29.076, 'new') + values (7, -1255178165.77663, 9043162437544575070.974, -4314.7918, -1240033819, 91, 1698.95, -100.3597812, -63, 0, -93222.200, 29.076, 'new') PREHOOK: type: QUERY PREHOOK: Input: default@values__tmp__table__18 PREHOOK: Output: default@part_change_various_various_float@part=1 POSTHOOK: query: insert into table part_change_various_various_float partition(part=1) - values (6, -1255178165.77663, 9043162437544575070.974, -4314.7918, -1240033819, 91, 1698.95, -100.3597812, -63, 0, -93222.200, 29.076, 'new') + values (7, -1255178165.77663, 9043162437544575070.974, -4314.7918, -1240033819, 91, 1698.95, -100.3597812, -63, 0, -93222.200, 29.076, 'new') POSTHOOK: type: QUERY POSTHOOK: Input: default@values__tmp__table__18 POSTHOOK: Output: default@part_change_various_various_float@part=1 @@ -1092,24 +1119,24 @@ STAGE PLANS: Map Operator Tree: TableScan alias: part_change_various_various_float - Statistics: Num rows: 6 Data size: 2498 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 3061 Basic stats: COMPLETE Column stats: NONE Select Operator expressions: insert_num (type: int), part (type: int), c1 (type: float), c2 (type: float), c3 (type: float), c4 (type: float), c5 (type: float), c6 (type: float), c7 (type: float), c8 (type: float), c9 (type: float), c10 (type: float), c11 (type: float), b (type: string) outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6, _col7, _col8, _col9, _col10, _col11, _col12, _col13 - Statistics: Num rows: 6 Data size: 2498 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 3061 Basic stats: COMPLETE Column stats: NONE Reduce Output Operator key expressions: _col0 (type: int) sort order: + - Statistics: Num rows: 6 Data size: 2498 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 3061 Basic stats: COMPLETE Column stats: NONE value expressions: _col1 (type: int), _col2 (type: float), _col3 (type: float), _col4 (type: float), _col5 (type: float), _col6 (type: float), _col7 (type: float), _col8 (type: float), _col9 (type: float), _col10 (type: float), _col11 (type: float), _col12 (type: float), _col13 (type: string) Reduce Operator Tree: Select Operator expressions: KEY.reducesinkkey0 (type: int), VALUE._col0 (type: int), VALUE._col1 (type: float), VALUE._col2 (type: float), VALUE._col3 (type: float), VALUE._col4 (type: float), VALUE._col5 (type: float), VALUE._col6 (type: float), VALUE._col7 (type: float), VALUE._col8 (type: float), VALUE._col9 (type: float), VALUE._col10 (type: float), VALUE._col11 (type: float), VALUE._col12 (type: string) outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6, _col7, _col8, _col9, _col10, _col11, _col12, _col13 - Statistics: Num rows: 6 Data size: 2498 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 3061 Basic stats: COMPLETE Column stats: NONE File Output Operator compressed: false - Statistics: Num rows: 6 Data size: 2498 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 3061 Basic stats: COMPLETE Column stats: NONE table: input format: org.apache.hadoop.mapred.SequenceFileInputFormat output format: org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat @@ -1135,11 +1162,12 @@ POSTHOOK: Input: default@part_change_various_various_float@part=2 #### A masked pattern was here #### insert_num part c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 b 1 1 1.0 NULL NULL 3244222.0 -29.0 4.70614144E8 4.70614144E8 -2999.0 -2999.0 -2999.0 -6.2018171E10 original -2 1 1.0 100.0 NULL NULL -3651.0 46114.285 46114.285 NULL NULL NULL 1.17102707E9 original -3 1 0.0 72.0 NULL -93222.0 30.0 -66475.56 -66475.56 2402.3 2402.3 2402.3 1.3441649E11 original -4 1 1.0 -90.0 NULL 3289094.0 46114.0 9250341.0 9250341.0 5299.0 5299.0 5299.0 1.02103379E9 original -5 2 9.5396704E8 62.079155 718.78 1.0 203.19955 -60.0 6.2756385E18 -230.0 -695025.0 -3651.672 46114.28 new -6 1 -1.25517811E9 9.0431626E18 -4314.792 -1.24003379E9 91.0 1698.95 -100.35978 -63.0 0.0 -93222.2 29.076 new +2 1 1.0 100.0 32767.0 NULL -3651.0 -9.223372E18 9.223372E18 NULL NULL NULL 1.17102707E9 original +3 1 1.0 100.0 -32768.0 NULL -3651.0 -9.223372E18 9.223372E18 NULL NULL NULL 1.17102707E9 original +4 1 0.0 72.0 NULL -93222.0 30.0 -66475.56 -66475.56 2402.3 2402.3 2402.3 1.3441649E11 original +5 1 1.0 -90.0 NULL 3289094.0 46114.0 9250341.0 9250341.0 5299.0 5299.0 5299.0 1.02103379E9 original +6 2 9.5396704E8 62.079155 718.78 1.0 203.19955 -60.0 6.2756385E18 -230.0 -695025.0 -3651.672 46114.28 new +7 1 -1.25517811E9 9.0431626E18 -4314.792 -1.24003379E9 91.0 1698.95 -100.35978 -63.0 0.0 -93222.2 29.076 new PREHOOK: query: drop table part_change_various_various_float PREHOOK: type: DROPTABLE PREHOOK: Input: default@part_change_various_various_float @@ -1164,17 +1192,19 @@ POSTHOOK: Output: database:default POSTHOOK: Output: default@part_change_various_various_double PREHOOK: query: insert into table part_change_various_various_double partition(part=1) values(1, -2999, 200, 72909, 3244222, -29.0764, 470614135, 470614135, '-2999', '-2999', '-2999', '0004-09-22 18:26:29.519542222', 'original'), - (2, 0, 100, 483777, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), - (3, false, 72, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '1', '1', '1', '6229-06-28 02:54:28.970117179', 'original'), - (4, 1, -90, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '5299', '5299', '5299', '2002-05-10 05:29:48.990818073', 'original') + (2, 0, 100, 32767, -23372036854775, -3651.672121, -9223372036854775808.0, 9223372036854775807.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, 100, -32768, 23372036854775, -3651.672121, -9223372036854775809.0, 9223372036854775808.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, 72, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '1', '1', '1', '6229-06-28 02:54:28.970117179', 'original'), + (5, 1, -90, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '5299', '5299', '5299', '2002-05-10 05:29:48.990818073', 'original') PREHOOK: type: QUERY PREHOOK: Input: default@values__tmp__table__19 PREHOOK: Output: default@part_change_various_various_double@part=1 POSTHOOK: query: insert into table part_change_various_various_double partition(part=1) values(1, -2999, 200, 72909, 3244222, -29.0764, 470614135, 470614135, '-2999', '-2999', '-2999', '0004-09-22 18:26:29.519542222', 'original'), - (2, 0, 100, 483777, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), - (3, false, 72, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '1', '1', '1', '6229-06-28 02:54:28.970117179', 'original'), - (4, 1, -90, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '5299', '5299', '5299', '2002-05-10 05:29:48.990818073', 'original') + (2, 0, 100, 32767, -23372036854775, -3651.672121, -9223372036854775808.0, 9223372036854775807.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, 100, -32768, 23372036854775, -3651.672121, -9223372036854775809.0, 9223372036854775808.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, 72, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '1', '1', '1', '6229-06-28 02:54:28.970117179', 'original'), + (5, 1, -90, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '5299', '5299', '5299', '2002-05-10 05:29:48.990818073', 'original') POSTHOOK: type: QUERY POSTHOOK: Input: default@values__tmp__table__19 POSTHOOK: Output: default@part_change_various_various_double@part=1 @@ -1204,9 +1234,10 @@ POSTHOOK: Input: default@part_change_various_various_double@part=1 #### A masked pattern was here #### insert_num part c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 b 1 1 true NULL NULL 3244222 -29 4.70614135E8 470614135.000000000000000000 -2999 -2999 -2999 0004-09-22 18:26:29.519542222 original -2 1 true 100 NULL NULL -3651 46114.284799488 46114.284799488000000000 2007-02-09 05:17:29.368756876 original -3 1 false 72 NULL -93222 30 -66475.561431 -66475.561431000000000000 1 1 1 6229-06-28 02:54:28.970117179 original -4 1 true -90 NULL 3289094 46114 9250340.75 9250340.750000000000000000 5299 5299 5299 2002-05-10 05:29:48.990818073 original +2 1 true 100 32767 NULL -3651 -9.223372036854776E18 9223372036854775807.000000000000000000 2007-02-09 05:17:29.368756876 original +3 1 true 100 -32768 NULL -3651 -9.223372036854776E18 9223372036854775808.000000000000000000 2007-02-09 05:17:29.368756876 original +4 1 false 72 NULL -93222 30 -66475.561431 -66475.561431000000000000 1 1 1 6229-06-28 02:54:28.970117179 original +5 1 true -90 NULL 3289094 46114 9250340.75 9250340.750000000000000000 5299 5299 5299 2002-05-10 05:29:48.990818073 original PREHOOK: query: -- Table-Non-Cascade CHANGE COLUMNS ... alter table part_change_various_various_double replace columns (insert_num int, c1 DOUBLE, c2 DOUBLE, c3 DOUBLE, c4 DOUBLE, c5 DOUBLE, c6 DOUBLE, c7 DOUBLE, c8 DOUBLE, c9 DOUBLE, c10 DOUBLE, c11 DOUBLE, b STRING) PREHOOK: type: ALTERTABLE_REPLACECOLS @@ -1218,12 +1249,12 @@ POSTHOOK: type: ALTERTABLE_REPLACECOLS POSTHOOK: Input: default@part_change_various_various_double POSTHOOK: Output: default@part_change_various_various_double PREHOOK: query: insert into table part_change_various_various_double partition(part=2) - values (5, 953967041., 62.0791539559013466, 718.78, 1, 203.199548118, -60, 6275638713485623898, -230, -695025, 0.00007011717, 4.28479948, 'new') + values (6, 953967041., 62.0791539559013466, 718.78, 1, 203.199548118, -60, 6275638713485623898, -230, -695025, 0.00007011717, 4.28479948, 'new') PREHOOK: type: QUERY PREHOOK: Input: default@values__tmp__table__20 PREHOOK: Output: default@part_change_various_various_double@part=2 POSTHOOK: query: insert into table part_change_various_various_double partition(part=2) - values (5, 953967041., 62.0791539559013466, 718.78, 1, 203.199548118, -60, 6275638713485623898, -230, -695025, 0.00007011717, 4.28479948, 'new') + values (6, 953967041., 62.0791539559013466, 718.78, 1, 203.199548118, -60, 6275638713485623898, -230, -695025, 0.00007011717, 4.28479948, 'new') POSTHOOK: type: QUERY POSTHOOK: Input: default@values__tmp__table__20 POSTHOOK: Output: default@part_change_various_various_double@part=2 @@ -1242,12 +1273,12 @@ POSTHOOK: Lineage: part_change_various_various_double PARTITION(part=2).c9 EXPRE POSTHOOK: Lineage: part_change_various_various_double PARTITION(part=2).insert_num EXPRESSION [(values__tmp__table__20)values__tmp__table__20.FieldSchema(name:tmp_values_col1, type:string, comment:), ] _col0 _col1 _col2 _col3 _col4 _col5 _col6 _col7 _col8 _col9 _col10 _col11 _col12 PREHOOK: query: insert into table part_change_various_various_double partition(part=1) - values (6, -1255178165.77663, 9043162437544575070.974, -4314.7918, -1240033819, 91, 1698.95, -100.3597812, -63, 0, -66475.0000008, -284799488.1, 'new') + values (7, -1255178165.77663, 9043162437544575070.974, -4314.7918, -1240033819, 91, 1698.95, -100.3597812, -63, 0, -66475.0000008, -284799488.1, 'new') PREHOOK: type: QUERY PREHOOK: Input: default@values__tmp__table__21 PREHOOK: Output: default@part_change_various_various_double@part=1 POSTHOOK: query: insert into table part_change_various_various_double partition(part=1) - values (6, -1255178165.77663, 9043162437544575070.974, -4314.7918, -1240033819, 91, 1698.95, -100.3597812, -63, 0, -66475.0000008, -284799488.1, 'new') + values (7, -1255178165.77663, 9043162437544575070.974, -4314.7918, -1240033819, 91, 1698.95, -100.3597812, -63, 0, -66475.0000008, -284799488.1, 'new') POSTHOOK: type: QUERY POSTHOOK: Input: default@values__tmp__table__21 POSTHOOK: Output: default@part_change_various_various_double@part=1 @@ -1282,24 +1313,24 @@ STAGE PLANS: Map Operator Tree: TableScan alias: part_change_various_various_double - Statistics: Num rows: 6 Data size: 2578 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 3139 Basic stats: COMPLETE Column stats: NONE Select Operator expressions: insert_num (type: int), part (type: int), c1 (type: double), c2 (type: double), c3 (type: double), c4 (type: double), c5 (type: double), c6 (type: double), c7 (type: double), c8 (type: double), c9 (type: double), c10 (type: double), c11 (type: double), b (type: string) outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6, _col7, _col8, _col9, _col10, _col11, _col12, _col13 - Statistics: Num rows: 6 Data size: 2578 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 3139 Basic stats: COMPLETE Column stats: NONE Reduce Output Operator key expressions: _col0 (type: int) sort order: + - Statistics: Num rows: 6 Data size: 2578 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 3139 Basic stats: COMPLETE Column stats: NONE value expressions: _col1 (type: int), _col2 (type: double), _col3 (type: double), _col4 (type: double), _col5 (type: double), _col6 (type: double), _col7 (type: double), _col8 (type: double), _col9 (type: double), _col10 (type: double), _col11 (type: double), _col12 (type: double), _col13 (type: string) Reduce Operator Tree: Select Operator expressions: KEY.reducesinkkey0 (type: int), VALUE._col0 (type: int), VALUE._col1 (type: double), VALUE._col2 (type: double), VALUE._col3 (type: double), VALUE._col4 (type: double), VALUE._col5 (type: double), VALUE._col6 (type: double), VALUE._col7 (type: double), VALUE._col8 (type: double), VALUE._col9 (type: double), VALUE._col10 (type: double), VALUE._col11 (type: double), VALUE._col12 (type: string) outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6, _col7, _col8, _col9, _col10, _col11, _col12, _col13 - Statistics: Num rows: 6 Data size: 2578 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 3139 Basic stats: COMPLETE Column stats: NONE File Output Operator compressed: false - Statistics: Num rows: 6 Data size: 2578 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 3139 Basic stats: COMPLETE Column stats: NONE table: input format: org.apache.hadoop.mapred.SequenceFileInputFormat output format: org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat @@ -1325,11 +1356,12 @@ POSTHOOK: Input: default@part_change_various_various_double@part=2 #### A masked pattern was here #### insert_num part c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 b 1 1 1.0 NULL NULL 3244222.0 -29.0 4.70614135E8 4.70614135E8 -2999.0 -2999.0 -2999.0 -6.201817041048046E10 original -2 1 1.0 100.0 NULL NULL -3651.0 46114.284799488 46114.284799488 NULL NULL NULL 1.1710270493687568E9 original -3 1 0.0 72.0 NULL -93222.0 30.0 -66475.561431 -66475.561431 1.0 1.0 1.0 1.3441649006897012E11 original -4 1 1.0 -90.0 NULL 3289094.0 46114.0 9250340.75 9250340.75 5299.0 5299.0 5299.0 1.021033788990818E9 original -5 2 9.53967041E8 62.07915395590135 718.78 1.0 203.199548118 -60.0 6.2756387134856243E18 -230.0 -695025.0 7.011717E-5 4.28479948 new -6 1 -1.25517816577663E9 9.043162437544575E18 -4314.7918 -1.240033819E9 91.0 1698.95 -100.3597812 -63.0 0.0 -66475.0000008 -2.847994881E8 new +2 1 1.0 100.0 32767.0 NULL -3651.0 -9.223372036854776E18 9.223372036854776E18 NULL NULL NULL 1.1710270493687568E9 original +3 1 1.0 100.0 -32768.0 NULL -3651.0 -9.223372036854776E18 9.223372036854776E18 NULL NULL NULL 1.1710270493687568E9 original +4 1 0.0 72.0 NULL -93222.0 30.0 -66475.561431 -66475.561431 1.0 1.0 1.0 1.3441649006897012E11 original +5 1 1.0 -90.0 NULL 3289094.0 46114.0 9250340.75 9250340.75 5299.0 5299.0 5299.0 1.021033788990818E9 original +6 2 9.53967041E8 62.07915395590135 718.78 1.0 203.199548118 -60.0 6.2756387134856243E18 -230.0 -695025.0 7.011717E-5 4.28479948 new +7 1 -1.25517816577663E9 9.043162437544575E18 -4314.7918 -1.240033819E9 91.0 1698.95 -100.3597812 -63.0 0.0 -66475.0000008 -2.847994881E8 new PREHOOK: query: drop table part_change_various_various_double PREHOOK: type: DROPTABLE PREHOOK: Input: default@part_change_various_various_double @@ -1354,17 +1386,19 @@ POSTHOOK: Output: database:default POSTHOOK: Output: default@part_change_various_various_decimal PREHOOK: query: insert into table part_change_various_various_decimal partition(part=1) values(1, -2999, 200, 72909, 3244222, -29.0764, 470614135, 470614135, '--1551801.09502', '--1551801.09502', '--1551801.09502', '0004-09-22 18:26:29.519542222', 'original'), - (2, 0, 100, 483777, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), - (3, false, 72, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '1', '1', '1', '6229-06-28 02:54:28.970117179', 'original'), - (4, 1, -90, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '2402.3', '2402.3', '2402.3', '2002-05-10 05:29:48.990818073', 'original') + (2, 0, 100, 32767, -23372036854775, -3651.672121, -9223372036854775808.0, 9223372036854775807.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, 100, -32768, 23372036854775, -3651.672121, -9223372036854775809.0, 9223372036854775808.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, 72, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '1', '1', '1', '6229-06-28 02:54:28.970117179', 'original'), + (5, 1, -90, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '2402.3', '2402.3', '2402.3', '2002-05-10 05:29:48.990818073', 'original') PREHOOK: type: QUERY PREHOOK: Input: default@values__tmp__table__22 PREHOOK: Output: default@part_change_various_various_decimal@part=1 POSTHOOK: query: insert into table part_change_various_various_decimal partition(part=1) values(1, -2999, 200, 72909, 3244222, -29.0764, 470614135, 470614135, '--1551801.09502', '--1551801.09502', '--1551801.09502', '0004-09-22 18:26:29.519542222', 'original'), - (2, 0, 100, 483777, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), - (3, false, 72, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '1', '1', '1', '6229-06-28 02:54:28.970117179', 'original'), - (4, 1, -90, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '2402.3', '2402.3', '2402.3', '2002-05-10 05:29:48.990818073', 'original') + (2, 0, 100, 32767, -23372036854775, -3651.672121, -9223372036854775808.0, 9223372036854775807.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, 100, -32768, 23372036854775, -3651.672121, -9223372036854775809.0, 9223372036854775808.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, 72, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '1', '1', '1', '6229-06-28 02:54:28.970117179', 'original'), + (5, 1, -90, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '2402.3', '2402.3', '2402.3', '2002-05-10 05:29:48.990818073', 'original') POSTHOOK: type: QUERY POSTHOOK: Input: default@values__tmp__table__22 POSTHOOK: Output: default@part_change_various_various_decimal@part=1 @@ -1394,9 +1428,10 @@ POSTHOOK: Input: default@part_change_various_various_decimal@part=1 #### A masked pattern was here #### insert_num part c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 b 1 1 true NULL NULL 3244222 -29 4.70614144E8 4.70614135E8 --1551801.09502 --1551801.09502 --1551801.09502 0004-09-22 18:26:29.519542222 original -2 1 true 100 NULL NULL -3651 46114.285 46114.284799488 2007-02-09 05:17:29.368756876 original -3 1 false 72 NULL -93222 30 -66475.56 -66475.561431 1 1 1 6229-06-28 02:54:28.970117179 original -4 1 true -90 NULL 3289094 46114 9250341.0 9250340.75 2402.3 2402.3 2402.3 2002-05-10 05:29:48.990818073 original +2 1 true 100 32767 NULL -3651 -9.223372E18 9.223372036854776E18 2007-02-09 05:17:29.368756876 original +3 1 true 100 -32768 NULL -3651 -9.223372E18 9.223372036854776E18 2007-02-09 05:17:29.368756876 original +4 1 false 72 NULL -93222 30 -66475.56 -66475.561431 1 1 1 6229-06-28 02:54:28.970117179 original +5 1 true -90 NULL 3289094 46114 9250341.0 9250340.75 2402.3 2402.3 2402.3 2002-05-10 05:29:48.990818073 original PREHOOK: query: -- Table-Non-Cascade CHANGE COLUMNS ... alter table part_change_various_various_decimal replace columns (insert_num int, c1 DECIMAL(38,18), c2 DECIMAL(38,18), c3 DECIMAL(38,18), c4 DECIMAL(38,18), c5 DECIMAL(38,18), c6 DECIMAL(38,18), c7 DECIMAL(38,18), c8 DECIMAL(38,18), c9 DECIMAL(38,18), c10 DECIMAL(38,18), c11 DECIMAL(38,18), b STRING) PREHOOK: type: ALTERTABLE_REPLACECOLS @@ -1408,12 +1443,12 @@ POSTHOOK: type: ALTERTABLE_REPLACECOLS POSTHOOK: Input: default@part_change_various_various_decimal POSTHOOK: Output: default@part_change_various_various_decimal PREHOOK: query: insert into table part_change_various_various_decimal partition(part=2) - values (5, 953967041., 62.0791539559013466, 718.78, 1, 203.199548118, -60, 6275638713485623898, -230, -695025, 0.00007011717, 4.28479948, 'new') + values (6, 953967041., 62.0791539559013466, 718.78, 1, 203.199548118, -60, 6275638713485623898, -230, -695025, 0.00007011717, 4.28479948, 'new') PREHOOK: type: QUERY PREHOOK: Input: default@values__tmp__table__23 PREHOOK: Output: default@part_change_various_various_decimal@part=2 POSTHOOK: query: insert into table part_change_various_various_decimal partition(part=2) - values (5, 953967041., 62.0791539559013466, 718.78, 1, 203.199548118, -60, 6275638713485623898, -230, -695025, 0.00007011717, 4.28479948, 'new') + values (6, 953967041., 62.0791539559013466, 718.78, 1, 203.199548118, -60, 6275638713485623898, -230, -695025, 0.00007011717, 4.28479948, 'new') POSTHOOK: type: QUERY POSTHOOK: Input: default@values__tmp__table__23 POSTHOOK: Output: default@part_change_various_various_decimal@part=2 @@ -1432,12 +1467,12 @@ POSTHOOK: Lineage: part_change_various_various_decimal PARTITION(part=2).c9 EXPR POSTHOOK: Lineage: part_change_various_various_decimal PARTITION(part=2).insert_num EXPRESSION [(values__tmp__table__23)values__tmp__table__23.FieldSchema(name:tmp_values_col1, type:string, comment:), ] _col0 _col1 _col2 _col3 _col4 _col5 _col6 _col7 _col8 _col9 _col10 _col11 _col12 PREHOOK: query: insert into table part_change_various_various_decimal partition(part=1) - values (6,-1255178165.77663, 9043162437544575070.974, -4314.7918, -1240033819, 91, 1698.95, -100.3597812, -63, 0, -66475.0000008, -284799488.1, 'new') + values (7,-1255178165.77663, 9043162437544575070.974, -4314.7918, -1240033819, 91, 1698.95, -100.3597812, -63, 0, -66475.0000008, -284799488.1, 'new') PREHOOK: type: QUERY PREHOOK: Input: default@values__tmp__table__24 PREHOOK: Output: default@part_change_various_various_decimal@part=1 POSTHOOK: query: insert into table part_change_various_various_decimal partition(part=1) - values (6,-1255178165.77663, 9043162437544575070.974, -4314.7918, -1240033819, 91, 1698.95, -100.3597812, -63, 0, -66475.0000008, -284799488.1, 'new') + values (7,-1255178165.77663, 9043162437544575070.974, -4314.7918, -1240033819, 91, 1698.95, -100.3597812, -63, 0, -66475.0000008, -284799488.1, 'new') POSTHOOK: type: QUERY POSTHOOK: Input: default@values__tmp__table__24 POSTHOOK: Output: default@part_change_various_various_decimal@part=1 @@ -1472,24 +1507,24 @@ STAGE PLANS: Map Operator Tree: TableScan alias: part_change_various_various_decimal - Statistics: Num rows: 6 Data size: 4458 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 4907 Basic stats: COMPLETE Column stats: NONE Select Operator expressions: insert_num (type: int), part (type: int), c1 (type: decimal(38,18)), c2 (type: decimal(38,18)), c3 (type: decimal(38,18)), c4 (type: decimal(38,18)), c5 (type: decimal(38,18)), c6 (type: decimal(38,18)), c7 (type: decimal(38,18)), c8 (type: decimal(38,18)), c9 (type: decimal(38,18)), c10 (type: decimal(38,18)), c11 (type: decimal(38,18)), b (type: string) outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6, _col7, _col8, _col9, _col10, _col11, _col12, _col13 - Statistics: Num rows: 6 Data size: 4458 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 4907 Basic stats: COMPLETE Column stats: NONE Reduce Output Operator key expressions: _col0 (type: int) sort order: + - Statistics: Num rows: 6 Data size: 4458 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 4907 Basic stats: COMPLETE Column stats: NONE value expressions: _col1 (type: int), _col2 (type: decimal(38,18)), _col3 (type: decimal(38,18)), _col4 (type: decimal(38,18)), _col5 (type: decimal(38,18)), _col6 (type: decimal(38,18)), _col7 (type: decimal(38,18)), _col8 (type: decimal(38,18)), _col9 (type: decimal(38,18)), _col10 (type: decimal(38,18)), _col11 (type: decimal(38,18)), _col12 (type: decimal(38,18)), _col13 (type: string) Reduce Operator Tree: Select Operator expressions: KEY.reducesinkkey0 (type: int), VALUE._col0 (type: int), VALUE._col1 (type: decimal(38,18)), VALUE._col2 (type: decimal(38,18)), VALUE._col3 (type: decimal(38,18)), VALUE._col4 (type: decimal(38,18)), VALUE._col5 (type: decimal(38,18)), VALUE._col6 (type: decimal(38,18)), VALUE._col7 (type: decimal(38,18)), VALUE._col8 (type: decimal(38,18)), VALUE._col9 (type: decimal(38,18)), VALUE._col10 (type: decimal(38,18)), VALUE._col11 (type: decimal(38,18)), VALUE._col12 (type: string) outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6, _col7, _col8, _col9, _col10, _col11, _col12, _col13 - Statistics: Num rows: 6 Data size: 4458 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 4907 Basic stats: COMPLETE Column stats: NONE File Output Operator compressed: false - Statistics: Num rows: 6 Data size: 4458 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 4907 Basic stats: COMPLETE Column stats: NONE table: input format: org.apache.hadoop.mapred.SequenceFileInputFormat output format: org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat @@ -1515,11 +1550,12 @@ POSTHOOK: Input: default@part_change_various_various_decimal@part=2 #### A masked pattern was here #### insert_num part c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 b 1 1 1.000000000000000000 NULL NULL 3244222.000000000000000000 -29.000000000000000000 470614144.000000000000000000 470614135.000000000000000000 NULL NULL NULL -62018170410.480460000000000000 original -2 1 1.000000000000000000 100.000000000000000000 NULL NULL -3651.000000000000000000 46114.285000000000000000 46114.284799488000000000 NULL NULL NULL 1171027049.368756800000000000 original -3 1 0.000000000000000000 72.000000000000000000 NULL -93222.000000000000000000 30.000000000000000000 -66475.560000000000000000 -66475.561431000000000000 1.000000000000000000 1.000000000000000000 1.000000000000000000 134416490068.970120000000000000 original -4 1 1.000000000000000000 -90.000000000000000000 NULL 3289094.000000000000000000 46114.000000000000000000 9250341.000000000000000000 9250340.750000000000000000 2402.300000000000000000 2402.300000000000000000 2402.300000000000000000 1021033788.990818000000000000 original -5 2 953967041.000000000000000000 62.079153955901346600 718.780000000000000000 1.000000000000000000 203.199548118000000000 -60.000000000000000000 6275638713485623898.000000000000000000 -230.000000000000000000 -695025.000000000000000000 0.000070117170000000 4.284799480000000000 new -6 1 -1255178165.776630000000000000 9043162437544575070.974000000000000000 -4314.791800000000000000 -1240033819.000000000000000000 91.000000000000000000 1698.950000000000000000 -100.359781200000000000 -63.000000000000000000 0.000000000000000000 -66475.000000800000000000 -284799488.100000000000000000 new +2 1 1.000000000000000000 100.000000000000000000 32767.000000000000000000 NULL -3651.000000000000000000 -9223372000000000000.000000000000000000 9223372036854776000.000000000000000000 NULL NULL NULL 1171027049.368756800000000000 original +3 1 1.000000000000000000 100.000000000000000000 -32768.000000000000000000 NULL -3651.000000000000000000 -9223372000000000000.000000000000000000 9223372036854776000.000000000000000000 NULL NULL NULL 1171027049.368756800000000000 original +4 1 0.000000000000000000 72.000000000000000000 NULL -93222.000000000000000000 30.000000000000000000 -66475.560000000000000000 -66475.561431000000000000 1.000000000000000000 1.000000000000000000 1.000000000000000000 134416490068.970120000000000000 original +5 1 1.000000000000000000 -90.000000000000000000 NULL 3289094.000000000000000000 46114.000000000000000000 9250341.000000000000000000 9250340.750000000000000000 2402.300000000000000000 2402.300000000000000000 2402.300000000000000000 1021033788.990818000000000000 original +6 2 953967041.000000000000000000 62.079153955901346600 718.780000000000000000 1.000000000000000000 203.199548118000000000 -60.000000000000000000 6275638713485623898.000000000000000000 -230.000000000000000000 -695025.000000000000000000 0.000070117170000000 4.284799480000000000 new +7 1 -1255178165.776630000000000000 9043162437544575070.974000000000000000 -4314.791800000000000000 -1240033819.000000000000000000 91.000000000000000000 1698.950000000000000000 -100.359781200000000000 -63.000000000000000000 0.000000000000000000 -66475.000000800000000000 -284799488.100000000000000000 new PREHOOK: query: drop table part_change_various_various_decimal PREHOOK: type: DROPTABLE PREHOOK: Input: default@part_change_various_various_decimal @@ -1544,17 +1580,19 @@ POSTHOOK: Output: database:default POSTHOOK: Output: default@part_change_various_various_string PREHOOK: query: insert into table part_change_various_various_string partition(part=1) values(1, true, 200, 72909, 3244222, -99999999999, -29.0764, 470614135, 470614135, 'dynamic reptile ', 'dynamic reptile ', '0004-09-22 18:26:29.519542222', '2007-02-09', 'binary', 'original'), - (2, 0, 100, 483777, 14, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, ' baffling ', ' baffling ', '2007-02-09 05:17:29.368756876', '0004-09-22', 'binary', 'original'), - (3, false, 72, 3244222, -93222, 30.774, - 66475.561431, -66475.561431, 0.561431, '1', '1', '6229-06-28 02:54:28.970117179', '5966-07-09', 'binary', 'original'), - (4, 1, -90, 754072151, 3289094, 46114.284799488, 9250340.75, 9250340.75, 9250340.75, 'junkyard', 'junkyard', '2002-05-10 05:29:48.990818073', '1815-05-06', 'binary', 'original') + (2, 0, 100, 32767, -23372036854775, -3651.672121, -9223372036854775808.0, 9223372036854775807.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, 100, -32768, 23372036854775, -3651.672121, -9223372036854775809.0, 9223372036854775808.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, 72, 3244222, -93222, 30.774, - 66475.561431, -66475.561431, 0.561431, '1', '1', '6229-06-28 02:54:28.970117179', '5966-07-09', 'binary', 'original'), + (5, 1, -90, 754072151, 3289094, 46114.284799488, 9250340.75, 9250340.75, 9250340.75, 'junkyard', 'junkyard', '2002-05-10 05:29:48.990818073', '1815-05-06', 'binary', 'original') PREHOOK: type: QUERY PREHOOK: Input: default@values__tmp__table__25 PREHOOK: Output: default@part_change_various_various_string@part=1 POSTHOOK: query: insert into table part_change_various_various_string partition(part=1) values(1, true, 200, 72909, 3244222, -99999999999, -29.0764, 470614135, 470614135, 'dynamic reptile ', 'dynamic reptile ', '0004-09-22 18:26:29.519542222', '2007-02-09', 'binary', 'original'), - (2, 0, 100, 483777, 14, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, ' baffling ', ' baffling ', '2007-02-09 05:17:29.368756876', '0004-09-22', 'binary', 'original'), - (3, false, 72, 3244222, -93222, 30.774, - 66475.561431, -66475.561431, 0.561431, '1', '1', '6229-06-28 02:54:28.970117179', '5966-07-09', 'binary', 'original'), - (4, 1, -90, 754072151, 3289094, 46114.284799488, 9250340.75, 9250340.75, 9250340.75, 'junkyard', 'junkyard', '2002-05-10 05:29:48.990818073', '1815-05-06', 'binary', 'original') + (2, 0, 100, 32767, -23372036854775, -3651.672121, -9223372036854775808.0, 9223372036854775807.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, 100, -32768, 23372036854775, -3651.672121, -9223372036854775809.0, 9223372036854775808.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, 72, 3244222, -93222, 30.774, - 66475.561431, -66475.561431, 0.561431, '1', '1', '6229-06-28 02:54:28.970117179', '5966-07-09', 'binary', 'original'), + (5, 1, -90, 754072151, 3289094, 46114.284799488, 9250340.75, 9250340.75, 9250340.75, 'junkyard', 'junkyard', '2002-05-10 05:29:48.990818073', '1815-05-06', 'binary', 'original') POSTHOOK: type: QUERY POSTHOOK: Input: default@values__tmp__table__25 POSTHOOK: Output: default@part_change_various_various_string@part=1 @@ -1586,9 +1624,10 @@ POSTHOOK: Input: default@part_change_various_various_string@part=1 #### A masked pattern was here #### insert_num part c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 c12 c13 b 1 1 true NULL NULL 3244222 -99999999999 -29.0764 4.70614135E8 470614135.000000000000000000 dynamic reptile dynamic reptile 0004-09-22 18:26:29.519542222 2007-02-09 binary original -2 1 true 100 NULL 14 -23866739993 -3651.672 46114.284799488 46114.284799488000000000 baffling baffling 2007-02-09 05:17:29.368756876 0004-09-22 binary original -3 1 false 72 NULL -93222 30 -66475.56 -66475.561431 0.561431000000000000 1 1 6229-06-28 02:54:28.970117179 5966-07-09 binary original -4 1 true -90 NULL 3289094 46114 9250341.0 9250340.75 9250340.750000000000000000 junkyard junkyard 2002-05-10 05:29:48.990818073 1815-05-06 binary original +2 1 true 100 32767 NULL -3651 -9.223372E18 9.223372036854776E18 NULL 2007-02-09 05:17:29.368756876 NULL NULL NULL +3 1 true 100 -32768 NULL -3651 -9.223372E18 9.223372036854776E18 NULL 2007-02-09 05:17:29.368756876 NULL NULL NULL +4 1 false 72 NULL -93222 30 -66475.56 -66475.561431 0.561431000000000000 1 1 6229-06-28 02:54:28.970117179 5966-07-09 binary original +5 1 true -90 NULL 3289094 46114 9250341.0 9250340.75 9250340.750000000000000000 junkyard junkyard 2002-05-10 05:29:48.990818073 1815-05-06 binary original PREHOOK: query: -- Table-Non-Cascade CHANGE COLUMNS ... alter table part_change_various_various_string replace columns (insert_num int, c1 STRING, c2 STRING, c3 STRING, c4 STRING, c5 STRING, c6 STRING, c7 STRING, c8 STRING, c9 STRING, c10 STRING, c11 STRING, c12 STRING, c13 STRING, b STRING) PREHOOK: type: ALTERTABLE_REPLACECOLS @@ -1600,12 +1639,12 @@ POSTHOOK: type: ALTERTABLE_REPLACECOLS POSTHOOK: Input: default@part_change_various_various_string POSTHOOK: Output: default@part_change_various_various_string PREHOOK: query: insert into table part_change_various_various_string partition(part=2) - values (5, 'true', '400', '44388', -'100', '953967041.', '62.079153', '718.78', '1', 'verdict', 'verdict', 'timestamp', 'date', 'binary', 'new') + values (6, 'true', '400', '44388', -'100', '953967041.', '62.079153', '718.78', '1', 'verdict', 'verdict', 'timestamp', 'date', 'binary', 'new') PREHOOK: type: QUERY PREHOOK: Input: default@values__tmp__table__26 PREHOOK: Output: default@part_change_various_various_string@part=2 POSTHOOK: query: insert into table part_change_various_various_string partition(part=2) - values (5, 'true', '400', '44388', -'100', '953967041.', '62.079153', '718.78', '1', 'verdict', 'verdict', 'timestamp', 'date', 'binary', 'new') + values (6, 'true', '400', '44388', -'100', '953967041.', '62.079153', '718.78', '1', 'verdict', 'verdict', 'timestamp', 'date', 'binary', 'new') POSTHOOK: type: QUERY POSTHOOK: Input: default@values__tmp__table__26 POSTHOOK: Output: default@part_change_various_various_string@part=2 @@ -1626,12 +1665,12 @@ POSTHOOK: Lineage: part_change_various_various_string PARTITION(part=2).c9 SIMPL POSTHOOK: Lineage: part_change_various_various_string PARTITION(part=2).insert_num EXPRESSION [(values__tmp__table__26)values__tmp__table__26.FieldSchema(name:tmp_values_col1, type:string, comment:), ] _col0 _col1 _col2 _col3 _col4 _col5 _col6 _col7 _col8 _col9 _col10 _col11 _col12 _col13 _col14 PREHOOK: query: insert into table part_change_various_various_string partition(part=1) - values (6,-'false', '-67', '833', '63993', ' 1255178165.77663', '905070.974', '-4314.7918', -'1240033819', 'trial', 'trial', '2016-03-07 03:02:22.0', '2016-03-07', 'binary', 'new') + values (7,-'false', '-67', '833', '63993', ' 1255178165.77663', '905070.974', '-4314.7918', -'1240033819', 'trial', 'trial', '2016-03-07 03:02:22.0', '2016-03-07', 'binary', 'new') PREHOOK: type: QUERY PREHOOK: Input: default@values__tmp__table__27 PREHOOK: Output: default@part_change_various_various_string@part=1 POSTHOOK: query: insert into table part_change_various_various_string partition(part=1) - values (6,-'false', '-67', '833', '63993', ' 1255178165.77663', '905070.974', '-4314.7918', -'1240033819', 'trial', 'trial', '2016-03-07 03:02:22.0', '2016-03-07', 'binary', 'new') + values (7,-'false', '-67', '833', '63993', ' 1255178165.77663', '905070.974', '-4314.7918', -'1240033819', 'trial', 'trial', '2016-03-07 03:02:22.0', '2016-03-07', 'binary', 'new') POSTHOOK: type: QUERY POSTHOOK: Input: default@values__tmp__table__27 POSTHOOK: Output: default@part_change_various_various_string@part=1 @@ -1668,24 +1707,24 @@ STAGE PLANS: Map Operator Tree: TableScan alias: part_change_various_various_string - Statistics: Num rows: 6 Data size: 4729 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 4717 Basic stats: COMPLETE Column stats: NONE Select Operator expressions: insert_num (type: int), part (type: int), c1 (type: string), c2 (type: string), c3 (type: string), c4 (type: string), c5 (type: string), c6 (type: string), c7 (type: string), c8 (type: string), c9 (type: string), c10 (type: string), c11 (type: string), c12 (type: string), c13 (type: string), b (type: string) outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6, _col7, _col8, _col9, _col10, _col11, _col12, _col13, _col14, _col15 - Statistics: Num rows: 6 Data size: 4729 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 4717 Basic stats: COMPLETE Column stats: NONE Reduce Output Operator key expressions: _col0 (type: int) sort order: + - Statistics: Num rows: 6 Data size: 4729 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 4717 Basic stats: COMPLETE Column stats: NONE value expressions: _col1 (type: int), _col2 (type: string), _col3 (type: string), _col4 (type: string), _col5 (type: string), _col6 (type: string), _col7 (type: string), _col8 (type: string), _col9 (type: string), _col10 (type: string), _col11 (type: string), _col12 (type: string), _col13 (type: string), _col14 (type: string), _col15 (type: string) Reduce Operator Tree: Select Operator expressions: KEY.reducesinkkey0 (type: int), VALUE._col0 (type: int), VALUE._col1 (type: string), VALUE._col2 (type: string), VALUE._col3 (type: string), VALUE._col4 (type: string), VALUE._col5 (type: string), VALUE._col6 (type: string), VALUE._col7 (type: string), VALUE._col8 (type: string), VALUE._col9 (type: string), VALUE._col10 (type: string), VALUE._col11 (type: string), VALUE._col12 (type: string), VALUE._col13 (type: string), VALUE._col14 (type: string) outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6, _col7, _col8, _col9, _col10, _col11, _col12, _col13, _col14, _col15 - Statistics: Num rows: 6 Data size: 4729 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 4717 Basic stats: COMPLETE Column stats: NONE File Output Operator compressed: false - Statistics: Num rows: 6 Data size: 4729 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 4717 Basic stats: COMPLETE Column stats: NONE table: input format: org.apache.hadoop.mapred.SequenceFileInputFormat output format: org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat @@ -1711,11 +1750,12 @@ POSTHOOK: Input: default@part_change_various_various_string@part=2 #### A masked pattern was here #### insert_num part c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 c12 c13 b 1 1 TRUE NULL NULL 3244222 -99999999999 -29.0764 4.70614135E8 470614135 dynamic reptile dynamic reptile 0004-09-22 18:26:29.519542222 2007-02-09 62 69 6e 61 72 79 original -2 1 TRUE 100 NULL 14 -23866739993 -3651.672 46114.284799488 46114.284799488 baffling baffling 2007-02-09 05:17:29.368756876 0004-09-22 62 69 6e 61 72 79 original -3 1 FALSE 72 NULL -93222 30 -66475.56 -66475.561431 0.561431 1 1 6229-06-28 02:54:28.970117179 5966-07-09 62 69 6e 61 72 79 original -4 1 TRUE -90 NULL 3289094 46114 9250341.0 9250340.75 9250340.75 junkyard junkyard 2002-05-10 05:29:48.990818073 1815-05-06 62 69 6e 61 72 79 original -5 2 true 400 44388 -100 953967041. 62.079153 718.78 1 verdict verdict timestamp date binary new -6 1 -false -67 833 63993 1255178165.77663 905070.974 -4314.7918 -1240033819 trial trial 2016-03-07 03:02:22.0 2016-03-07 binary new +2 1 TRUE 100 32767 NULL -3651 -9.223372E18 9.223372036854776E18 NULL 2007-02-09 05:17:29.368756876 NULL NULL NULL +3 1 TRUE 100 -32768 NULL -3651 -9.223372E18 9.223372036854776E18 NULL 2007-02-09 05:17:29.368756876 NULL NULL NULL +4 1 FALSE 72 NULL -93222 30 -66475.56 -66475.561431 0.561431 1 1 6229-06-28 02:54:28.970117179 5966-07-09 62 69 6e 61 72 79 original +5 1 TRUE -90 NULL 3289094 46114 9250341.0 9250340.75 9250340.75 junkyard junkyard 2002-05-10 05:29:48.990818073 1815-05-06 62 69 6e 61 72 79 original +6 2 true 400 44388 -100 953967041. 62.079153 718.78 1 verdict verdict timestamp date binary new +7 1 -false -67 833 63993 1255178165.77663 905070.974 -4314.7918 -1240033819 trial trial 2016-03-07 03:02:22.0 2016-03-07 binary new PREHOOK: query: drop table part_change_various_various_string PREHOOK: type: DROPTABLE PREHOOK: Input: default@part_change_various_various_string @@ -1740,17 +1780,19 @@ POSTHOOK: Output: database:default POSTHOOK: Output: default@part_change_various_various_char PREHOOK: query: insert into table part_change_various_various_char partition(part=1) values(1, true, 200, 72909, 3244222, -99999999999, -29.0764, 470614135, 470614135, 'dynamic reptile ', 'dynamic reptile ', '0004-09-22 18:26:29.519542222', '2007-02-09', 'binary', 'original'), - (2, 0, 100, 483777, 14, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, ' baffling ', ' baffling ', '2007-02-09 05:17:29.368756876', '0004-09-22', 'binary', 'original'), - (3, false, 72, 3244222, -93222, 30.774, - 66475.561431, -66475.561431, 0.561431, '1', '1', '6229-06-28 02:54:28.970117179', '5966-07-09', 'binary', 'original'), - (4, 1, -90, 754072151, 3289094, 46114.284799488, 9250340.75, 9250340.75, 9250340.75, 'junkyard', 'junkyard', '2002-05-10 05:29:48.990818073', '1815-05-06', 'binary', 'original') + (2, 0, 100, 32767, -23372036854775, -3651.672121, -9223372036854775808.0, 9223372036854775807.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, 100, -32768, 23372036854775, -3651.672121, -9223372036854775809.0, 9223372036854775808.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, 72, 3244222, -93222, 30.774, - 66475.561431, -66475.561431, 0.561431, '1', '1', '6229-06-28 02:54:28.970117179', '5966-07-09', 'binary', 'original'), + (5, 1, -90, 754072151, 3289094, 46114.284799488, 9250340.75, 9250340.75, 9250340.75, 'junkyard', 'junkyard', '2002-05-10 05:29:48.990818073', '1815-05-06', 'binary', 'original') PREHOOK: type: QUERY PREHOOK: Input: default@values__tmp__table__28 PREHOOK: Output: default@part_change_various_various_char@part=1 POSTHOOK: query: insert into table part_change_various_various_char partition(part=1) values(1, true, 200, 72909, 3244222, -99999999999, -29.0764, 470614135, 470614135, 'dynamic reptile ', 'dynamic reptile ', '0004-09-22 18:26:29.519542222', '2007-02-09', 'binary', 'original'), - (2, 0, 100, 483777, 14, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, ' baffling ', ' baffling ', '2007-02-09 05:17:29.368756876', '0004-09-22', 'binary', 'original'), - (3, false, 72, 3244222, -93222, 30.774, - 66475.561431, -66475.561431, 0.561431, '1', '1', '6229-06-28 02:54:28.970117179', '5966-07-09', 'binary', 'original'), - (4, 1, -90, 754072151, 3289094, 46114.284799488, 9250340.75, 9250340.75, 9250340.75, 'junkyard', 'junkyard', '2002-05-10 05:29:48.990818073', '1815-05-06', 'binary', 'original') + (2, 0, 100, 32767, -23372036854775, -3651.672121, -9223372036854775808.0, 9223372036854775807.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, 100, -32768, 23372036854775, -3651.672121, -9223372036854775809.0, 9223372036854775808.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, 72, 3244222, -93222, 30.774, - 66475.561431, -66475.561431, 0.561431, '1', '1', '6229-06-28 02:54:28.970117179', '5966-07-09', 'binary', 'original'), + (5, 1, -90, 754072151, 3289094, 46114.284799488, 9250340.75, 9250340.75, 9250340.75, 'junkyard', 'junkyard', '2002-05-10 05:29:48.990818073', '1815-05-06', 'binary', 'original') POSTHOOK: type: QUERY POSTHOOK: Input: default@values__tmp__table__28 POSTHOOK: Output: default@part_change_various_various_char@part=1 @@ -1782,9 +1824,10 @@ POSTHOOK: Input: default@part_change_various_various_char@part=1 #### A masked pattern was here #### insert_num part c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 c12 c13 b 1 1 true NULL NULL 3244222 -99999999999 -29.0764 4.70614135E8 470614135.000000000000000000 dynamic reptile dynamic reptile 0004-09-22 18:26:29.519542222 2007-02-09 binary original -2 1 true 100 NULL 14 -23866739993 -3651.672 46114.284799488 46114.284799488000000000 baffling baffling 2007-02-09 05:17:29.368756876 0004-09-22 binary original -3 1 false 72 NULL -93222 30 -66475.56 -66475.561431 0.561431000000000000 1 1 6229-06-28 02:54:28.970117179 5966-07-09 binary original -4 1 true -90 NULL 3289094 46114 9250341.0 9250340.75 9250340.750000000000000000 junkyard junkyard 2002-05-10 05:29:48.990818073 1815-05-06 binary original +2 1 true 100 32767 NULL -3651 -9.223372E18 9.223372036854776E18 NULL 2007-02-09 05:17:29.368756876 NULL NULL NULL +3 1 true 100 -32768 NULL -3651 -9.223372E18 9.223372036854776E18 NULL 2007-02-09 05:17:29.368756876 NULL NULL NULL +4 1 false 72 NULL -93222 30 -66475.56 -66475.561431 0.561431000000000000 1 1 6229-06-28 02:54:28.970117179 5966-07-09 binary original +5 1 true -90 NULL 3289094 46114 9250341.0 9250340.75 9250340.750000000000000000 junkyard junkyard 2002-05-10 05:29:48.990818073 1815-05-06 binary original PREHOOK: query: -- Table-Non-Cascade CHANGE COLUMNS ... alter table part_change_various_various_char replace columns (insert_num int, c1 CHAR(25), c2 CHAR(25), c3 CHAR(25), c4 CHAR(25), c5 CHAR(25), c6 CHAR(25), c7 CHAR(25), c8 CHAR(25), c9 CHAR(25), c10 CHAR(25), c11 CHAR(25), c12 CHAR(25), c13 CHAR(25), b STRING) PREHOOK: type: ALTERTABLE_REPLACECOLS @@ -1796,12 +1839,12 @@ POSTHOOK: type: ALTERTABLE_REPLACECOLS POSTHOOK: Input: default@part_change_various_various_char POSTHOOK: Output: default@part_change_various_various_char PREHOOK: query: insert into table part_change_various_various_char partition(part=2) - values (5, 'true', '400', '44388', -'100', '953967041.', '62.079153', '718.78', '1', 'verdict', 'verdict', 'timestamp', 'date', 'binary', 'new') + values (6, 'true', '400', '44388', -'100', '953967041.', '62.079153', '718.78', '1', 'verdict', 'verdict', 'timestamp', 'date', 'binary', 'new') PREHOOK: type: QUERY PREHOOK: Input: default@values__tmp__table__29 PREHOOK: Output: default@part_change_various_various_char@part=2 POSTHOOK: query: insert into table part_change_various_various_char partition(part=2) - values (5, 'true', '400', '44388', -'100', '953967041.', '62.079153', '718.78', '1', 'verdict', 'verdict', 'timestamp', 'date', 'binary', 'new') + values (6, 'true', '400', '44388', -'100', '953967041.', '62.079153', '718.78', '1', 'verdict', 'verdict', 'timestamp', 'date', 'binary', 'new') POSTHOOK: type: QUERY POSTHOOK: Input: default@values__tmp__table__29 POSTHOOK: Output: default@part_change_various_various_char@part=2 @@ -1822,12 +1865,12 @@ POSTHOOK: Lineage: part_change_various_various_char PARTITION(part=2).c9 EXPRESS POSTHOOK: Lineage: part_change_various_various_char PARTITION(part=2).insert_num EXPRESSION [(values__tmp__table__29)values__tmp__table__29.FieldSchema(name:tmp_values_col1, type:string, comment:), ] _col0 _col1 _col2 _col3 _col4 _col5 _col6 _col7 _col8 _col9 _col10 _col11 _col12 _col13 _col14 PREHOOK: query: insert into table part_change_various_various_char partition(part=1) - values (6,-'false', '-67', '833', '63993', ' 1255178165.77663', '905070.974', '-4314.7918', -'1240033819', 'trial', 'trial', '2016-03-07 03:02:22.0', '2016-03-07', 'binary', 'new') + values (7,-'false', '-67', '833', '63993', ' 1255178165.77663', '905070.974', '-4314.7918', -'1240033819', 'trial', 'trial', '2016-03-07 03:02:22.0', '2016-03-07', 'binary', 'new') PREHOOK: type: QUERY PREHOOK: Input: default@values__tmp__table__30 PREHOOK: Output: default@part_change_various_various_char@part=1 POSTHOOK: query: insert into table part_change_various_various_char partition(part=1) - values (6,-'false', '-67', '833', '63993', ' 1255178165.77663', '905070.974', '-4314.7918', -'1240033819', 'trial', 'trial', '2016-03-07 03:02:22.0', '2016-03-07', 'binary', 'new') + values (7,-'false', '-67', '833', '63993', ' 1255178165.77663', '905070.974', '-4314.7918', -'1240033819', 'trial', 'trial', '2016-03-07 03:02:22.0', '2016-03-07', 'binary', 'new') POSTHOOK: type: QUERY POSTHOOK: Input: default@values__tmp__table__30 POSTHOOK: Output: default@part_change_various_various_char@part=1 @@ -1864,24 +1907,24 @@ STAGE PLANS: Map Operator Tree: TableScan alias: part_change_various_various_char - Statistics: Num rows: 6 Data size: 5132 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 5080 Basic stats: COMPLETE Column stats: NONE Select Operator expressions: insert_num (type: int), part (type: int), c1 (type: char(25)), c2 (type: char(25)), c3 (type: char(25)), c4 (type: char(25)), c5 (type: char(25)), c6 (type: char(25)), c7 (type: char(25)), c8 (type: char(25)), c9 (type: char(25)), c10 (type: char(25)), c11 (type: char(25)), c12 (type: char(25)), c13 (type: char(25)), b (type: string) outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6, _col7, _col8, _col9, _col10, _col11, _col12, _col13, _col14, _col15 - Statistics: Num rows: 6 Data size: 5132 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 5080 Basic stats: COMPLETE Column stats: NONE Reduce Output Operator key expressions: _col0 (type: int) sort order: + - Statistics: Num rows: 6 Data size: 5132 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 5080 Basic stats: COMPLETE Column stats: NONE value expressions: _col1 (type: int), _col2 (type: char(25)), _col3 (type: char(25)), _col4 (type: char(25)), _col5 (type: char(25)), _col6 (type: char(25)), _col7 (type: char(25)), _col8 (type: char(25)), _col9 (type: char(25)), _col10 (type: char(25)), _col11 (type: char(25)), _col12 (type: char(25)), _col13 (type: char(25)), _col14 (type: char(25)), _col15 (type: string) Reduce Operator Tree: Select Operator expressions: KEY.reducesinkkey0 (type: int), VALUE._col0 (type: int), VALUE._col1 (type: char(25)), VALUE._col2 (type: char(25)), VALUE._col3 (type: char(25)), VALUE._col4 (type: char(25)), VALUE._col5 (type: char(25)), VALUE._col6 (type: char(25)), VALUE._col7 (type: char(25)), VALUE._col8 (type: char(25)), VALUE._col9 (type: char(25)), VALUE._col10 (type: char(25)), VALUE._col11 (type: char(25)), VALUE._col12 (type: char(25)), VALUE._col13 (type: char(25)), VALUE._col14 (type: string) outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6, _col7, _col8, _col9, _col10, _col11, _col12, _col13, _col14, _col15 - Statistics: Num rows: 6 Data size: 5132 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 5080 Basic stats: COMPLETE Column stats: NONE File Output Operator compressed: false - Statistics: Num rows: 6 Data size: 5132 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 5080 Basic stats: COMPLETE Column stats: NONE table: input format: org.apache.hadoop.mapred.SequenceFileInputFormat output format: org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat @@ -1907,11 +1950,12 @@ POSTHOOK: Input: default@part_change_various_various_char@part=2 #### A masked pattern was here #### insert_num part c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 c12 c13 b 1 1 TRUE NULL NULL 3244222 -99999999999 -29.0764 4.70614135E8 470614135 dynamic reptile dynamic reptile 0004-09-22 18:26:29.51954 2007-02-09 62 69 6e 61 72 79 original -2 1 TRUE 100 NULL 14 -23866739993 -3651.672 46114.284799488 46114.284799488 baffling baffling 2007-02-09 05:17:29.36875 0004-09-22 62 69 6e 61 72 79 original -3 1 FALSE 72 NULL -93222 30 -66475.56 -66475.561431 0.561431 1 1 6229-06-28 02:54:28.97011 5966-07-09 62 69 6e 61 72 79 original -4 1 TRUE -90 NULL 3289094 46114 9250341.0 9250340.75 9250340.75 junkyard junkyard 2002-05-10 05:29:48.99081 1815-05-06 62 69 6e 61 72 79 original -5 2 true 400 44388 -100 953967041. 62.079153 718.78 1 verdict verdict timestamp date binary new -6 1 -false -67 833 63993 1255178165.77663 905070.974 -4314.7918 -1240033819 trial trial 2016-03-07 03:02:22.0 2016-03-07 binary new +2 1 TRUE 100 32767 NULL -3651 -9.223372E18 9.223372036854776E18 NULL 2007-02-09 05:17:29.36875 NULL NULL NULL +3 1 TRUE 100 -32768 NULL -3651 -9.223372E18 9.223372036854776E18 NULL 2007-02-09 05:17:29.36875 NULL NULL NULL +4 1 FALSE 72 NULL -93222 30 -66475.56 -66475.561431 0.561431 1 1 6229-06-28 02:54:28.97011 5966-07-09 62 69 6e 61 72 79 original +5 1 TRUE -90 NULL 3289094 46114 9250341.0 9250340.75 9250340.75 junkyard junkyard 2002-05-10 05:29:48.99081 1815-05-06 62 69 6e 61 72 79 original +6 2 true 400 44388 -100 953967041. 62.079153 718.78 1 verdict verdict timestamp date binary new +7 1 -false -67 833 63993 1255178165.77663 905070.974 -4314.7918 -1240033819 trial trial 2016-03-07 03:02:22.0 2016-03-07 binary new PREHOOK: query: drop table part_change_various_various_char PREHOOK: type: DROPTABLE PREHOOK: Input: default@part_change_various_various_char @@ -1936,17 +1980,19 @@ POSTHOOK: Output: database:default POSTHOOK: Output: default@part_change_various_various_char_trunc PREHOOK: query: insert into table part_change_various_various_char_trunc partition(part=1) values(1, true, 200, 72909, 3244222, -99999999999, -29.0764, 470614135, 470614135, 'dynamic reptile ', 'dynamic reptile ', '0004-09-22 18:26:29.519542222', '2007-02-09', 'binary', 'original'), - (2, 0, 100, 483777, 14, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, ' baffling ', ' baffling ', '2007-02-09 05:17:29.368756876', '0004-09-22', 'binary', 'original'), - (3, false, 72, 3244222, -93222, 30.774, - 66475.561431, -66475.561431, 0.561431, '1', '1', '6229-06-28 02:54:28.970117179', '5966-07-09', 'binary', 'original'), - (4, 1, -90, 754072151, 3289094, 46114.284799488, 9250340.75, 9250340.75, 9250340.75, 'junkyard', 'junkyard', '2002-05-10 05:29:48.990818073', '1815-05-06', 'binary', 'original') + (2, 0, 100, 32767, -23372036854775, -3651.672121, -9223372036854775808.0, 9223372036854775807.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, 100, -32768, 23372036854775, -3651.672121, -9223372036854775809.0, 9223372036854775808.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, 72, 3244222, -93222, 30.774, - 66475.561431, -66475.561431, 0.561431, '1', '1', '6229-06-28 02:54:28.970117179', '5966-07-09', 'binary', 'original'), + (5, 1, -90, 754072151, 3289094, 46114.284799488, 9250340.75, 9250340.75, 9250340.75, 'junkyard', 'junkyard', '2002-05-10 05:29:48.990818073', '1815-05-06', 'binary', 'original') PREHOOK: type: QUERY PREHOOK: Input: default@values__tmp__table__31 PREHOOK: Output: default@part_change_various_various_char_trunc@part=1 POSTHOOK: query: insert into table part_change_various_various_char_trunc partition(part=1) values(1, true, 200, 72909, 3244222, -99999999999, -29.0764, 470614135, 470614135, 'dynamic reptile ', 'dynamic reptile ', '0004-09-22 18:26:29.519542222', '2007-02-09', 'binary', 'original'), - (2, 0, 100, 483777, 14, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, ' baffling ', ' baffling ', '2007-02-09 05:17:29.368756876', '0004-09-22', 'binary', 'original'), - (3, false, 72, 3244222, -93222, 30.774, - 66475.561431, -66475.561431, 0.561431, '1', '1', '6229-06-28 02:54:28.970117179', '5966-07-09', 'binary', 'original'), - (4, 1, -90, 754072151, 3289094, 46114.284799488, 9250340.75, 9250340.75, 9250340.75, 'junkyard', 'junkyard', '2002-05-10 05:29:48.990818073', '1815-05-06', 'binary', 'original') + (2, 0, 100, 32767, -23372036854775, -3651.672121, -9223372036854775808.0, 9223372036854775807.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, 100, -32768, 23372036854775, -3651.672121, -9223372036854775809.0, 9223372036854775808.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, 72, 3244222, -93222, 30.774, - 66475.561431, -66475.561431, 0.561431, '1', '1', '6229-06-28 02:54:28.970117179', '5966-07-09', 'binary', 'original'), + (5, 1, -90, 754072151, 3289094, 46114.284799488, 9250340.75, 9250340.75, 9250340.75, 'junkyard', 'junkyard', '2002-05-10 05:29:48.990818073', '1815-05-06', 'binary', 'original') POSTHOOK: type: QUERY POSTHOOK: Input: default@values__tmp__table__31 POSTHOOK: Output: default@part_change_various_various_char_trunc@part=1 @@ -1978,9 +2024,10 @@ POSTHOOK: Input: default@part_change_various_various_char_trunc@part=1 #### A masked pattern was here #### insert_num part c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 c12 c13 b 1 1 true NULL NULL 3244222 -99999999999 -29.0764 4.70614135E8 470614135.000000000000000000 dynamic reptile dynamic 0004-09-22 18:26:29.519542222 2007-02-09 binary original -2 1 true 100 NULL 14 -23866739993 -3651.672 46114.284799488 46114.284799488000000000 baffling baffli 2007-02-09 05:17:29.368756876 0004-09-22 binary original -3 1 false 72 NULL -93222 30 -66475.56 -66475.561431 0.561431000000000000 1 1 6229-06-28 02:54:28.970117179 5966-07-09 binary original -4 1 true -90 NULL 3289094 46114 9250341.0 9250340.75 9250340.750000000000000000 junkyard junkyard 2002-05-10 05:29:48.990818073 1815-05-06 binary original +2 1 true 100 32767 NULL -3651 -9.223372E18 9.223372036854776E18 NULL 2007-02-09 05:17:29.368756876 NULL NULL NULL +3 1 true 100 -32768 NULL -3651 -9.223372E18 9.223372036854776E18 NULL 2007-02-09 05:17:29.368756876 NULL NULL NULL +4 1 false 72 NULL -93222 30 -66475.56 -66475.561431 0.561431000000000000 1 1 6229-06-28 02:54:28.970117179 5966-07-09 binary original +5 1 true -90 NULL 3289094 46114 9250341.0 9250340.75 9250340.750000000000000000 junkyard junkyard 2002-05-10 05:29:48.990818073 1815-05-06 binary original PREHOOK: query: -- Table-Non-Cascade CHANGE COLUMNS ... alter table part_change_various_various_char_trunc replace columns (insert_num int, c1 CHAR(8), c2 CHAR(8), c3 CHAR(8), c4 CHAR(8), c5 CHAR(8), c6 CHAR(8), c7 CHAR(8), c8 CHAR(8), c9 CHAR(8), c10 CHAR(8), c11 CHAR(8), c12 CHAR(8), c13 CHAR(8), b STRING) PREHOOK: type: ALTERTABLE_REPLACECOLS @@ -1992,12 +2039,12 @@ POSTHOOK: type: ALTERTABLE_REPLACECOLS POSTHOOK: Input: default@part_change_various_various_char_trunc POSTHOOK: Output: default@part_change_various_various_char_trunc PREHOOK: query: insert into table part_change_various_various_char_trunc partition(part=2) - values (5, 'true', '400', '44388', -'100', '953967041.', '62.079153', '718.78', '1', 'verdict', 'verdict', 'timestamp', 'date', 'binary', 'new') + values (6, 'true', '400', '44388', -'100', '953967041.', '62.079153', '718.78', '1', 'verdict', 'verdict', 'timestamp', 'date', 'binary', 'new') PREHOOK: type: QUERY PREHOOK: Input: default@values__tmp__table__32 PREHOOK: Output: default@part_change_various_various_char_trunc@part=2 POSTHOOK: query: insert into table part_change_various_various_char_trunc partition(part=2) - values (5, 'true', '400', '44388', -'100', '953967041.', '62.079153', '718.78', '1', 'verdict', 'verdict', 'timestamp', 'date', 'binary', 'new') + values (6, 'true', '400', '44388', -'100', '953967041.', '62.079153', '718.78', '1', 'verdict', 'verdict', 'timestamp', 'date', 'binary', 'new') POSTHOOK: type: QUERY POSTHOOK: Input: default@values__tmp__table__32 POSTHOOK: Output: default@part_change_various_various_char_trunc@part=2 @@ -2018,12 +2065,12 @@ POSTHOOK: Lineage: part_change_various_various_char_trunc PARTITION(part=2).c9 E POSTHOOK: Lineage: part_change_various_various_char_trunc PARTITION(part=2).insert_num EXPRESSION [(values__tmp__table__32)values__tmp__table__32.FieldSchema(name:tmp_values_col1, type:string, comment:), ] _col0 _col1 _col2 _col3 _col4 _col5 _col6 _col7 _col8 _col9 _col10 _col11 _col12 _col13 _col14 PREHOOK: query: insert into table part_change_various_various_char_trunc partition(part=1) - values (6,-'false', '-67', '833', '63993', ' 1255178165.77663', '905070.974', '-4314.7918', -'1240033819', 'trial', 'trial', '2016-03-07 03:02:22.0', '2016-03-07', 'binary', 'new') + values (7,-'false', '-67', '833', '63993', ' 1255178165.77663', '905070.974', '-4314.7918', -'1240033819', 'trial', 'trial', '2016-03-07 03:02:22.0', '2016-03-07', 'binary', 'new') PREHOOK: type: QUERY PREHOOK: Input: default@values__tmp__table__33 PREHOOK: Output: default@part_change_various_various_char_trunc@part=1 POSTHOOK: query: insert into table part_change_various_various_char_trunc partition(part=1) - values (6,-'false', '-67', '833', '63993', ' 1255178165.77663', '905070.974', '-4314.7918', -'1240033819', 'trial', 'trial', '2016-03-07 03:02:22.0', '2016-03-07', 'binary', 'new') + values (7,-'false', '-67', '833', '63993', ' 1255178165.77663', '905070.974', '-4314.7918', -'1240033819', 'trial', 'trial', '2016-03-07 03:02:22.0', '2016-03-07', 'binary', 'new') POSTHOOK: type: QUERY POSTHOOK: Input: default@values__tmp__table__33 POSTHOOK: Output: default@part_change_various_various_char_trunc@part=1 @@ -2060,24 +2107,24 @@ STAGE PLANS: Map Operator Tree: TableScan alias: part_change_various_various_char_trunc - Statistics: Num rows: 6 Data size: 4674 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 4628 Basic stats: COMPLETE Column stats: NONE Select Operator expressions: insert_num (type: int), part (type: int), c1 (type: char(8)), c2 (type: char(8)), c3 (type: char(8)), c4 (type: char(8)), c5 (type: char(8)), c6 (type: char(8)), c7 (type: char(8)), c8 (type: char(8)), c9 (type: char(8)), c10 (type: char(8)), c11 (type: char(8)), c12 (type: char(8)), c13 (type: char(8)), b (type: string) outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6, _col7, _col8, _col9, _col10, _col11, _col12, _col13, _col14, _col15 - Statistics: Num rows: 6 Data size: 4674 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 4628 Basic stats: COMPLETE Column stats: NONE Reduce Output Operator key expressions: _col0 (type: int) sort order: + - Statistics: Num rows: 6 Data size: 4674 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 4628 Basic stats: COMPLETE Column stats: NONE value expressions: _col1 (type: int), _col2 (type: char(8)), _col3 (type: char(8)), _col4 (type: char(8)), _col5 (type: char(8)), _col6 (type: char(8)), _col7 (type: char(8)), _col8 (type: char(8)), _col9 (type: char(8)), _col10 (type: char(8)), _col11 (type: char(8)), _col12 (type: char(8)), _col13 (type: char(8)), _col14 (type: char(8)), _col15 (type: string) Reduce Operator Tree: Select Operator expressions: KEY.reducesinkkey0 (type: int), VALUE._col0 (type: int), VALUE._col1 (type: char(8)), VALUE._col2 (type: char(8)), VALUE._col3 (type: char(8)), VALUE._col4 (type: char(8)), VALUE._col5 (type: char(8)), VALUE._col6 (type: char(8)), VALUE._col7 (type: char(8)), VALUE._col8 (type: char(8)), VALUE._col9 (type: char(8)), VALUE._col10 (type: char(8)), VALUE._col11 (type: char(8)), VALUE._col12 (type: char(8)), VALUE._col13 (type: char(8)), VALUE._col14 (type: string) outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6, _col7, _col8, _col9, _col10, _col11, _col12, _col13, _col14, _col15 - Statistics: Num rows: 6 Data size: 4674 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 4628 Basic stats: COMPLETE Column stats: NONE File Output Operator compressed: false - Statistics: Num rows: 6 Data size: 4674 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 4628 Basic stats: COMPLETE Column stats: NONE table: input format: org.apache.hadoop.mapred.SequenceFileInputFormat output format: org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat @@ -2103,11 +2150,12 @@ POSTHOOK: Input: default@part_change_various_various_char_trunc@part=2 #### A masked pattern was here #### insert_num part c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 c12 c13 b 1 1 TRUE NULL NULL 3244222 -9999999 -29.0764 4.706141 47061413 dynamic dynamic 0004-09- 2007-02- 62 69 6e original -2 1 TRUE 100 NULL 14 -2386673 -3651.67 46114.28 46114.28 baffli baffli 2007-02- 0004-09- 62 69 6e original -3 1 FALSE 72 NULL -93222 30 -66475.5 -66475.5 0.561431 1 1 6229-06- 5966-07- 62 69 6e original -4 1 TRUE -90 NULL 3289094 46114 9250341. 9250340. 9250340. junkyard junkyard 2002-05- 1815-05- 62 69 6e original -5 2 true 400 44388 -100 95396704 62.07915 718.78 1 verdict verdict timestam date binary new -6 1 -false -67 833 63993 1255178 905070.9 -4314.79 -1240033 trial trial 2016-03- 2016-03- binary new +2 1 TRUE 100 32767 NULL -3651 -9.22337 9.223372 NULL 2007-02- NULL NULL NULL +3 1 TRUE 100 -32768 NULL -3651 -9.22337 9.223372 NULL 2007-02- NULL NULL NULL +4 1 FALSE 72 NULL -93222 30 -66475.5 -66475.5 0.561431 1 1 6229-06- 5966-07- 62 69 6e original +5 1 TRUE -90 NULL 3289094 46114 9250341. 9250340. 9250340. junkyard junkyard 2002-05- 1815-05- 62 69 6e original +6 2 true 400 44388 -100 95396704 62.07915 718.78 1 verdict verdict timestam date binary new +7 1 -false -67 833 63993 1255178 905070.9 -4314.79 -1240033 trial trial 2016-03- 2016-03- binary new PREHOOK: query: drop table part_change_various_various_char_trunc PREHOOK: type: DROPTABLE PREHOOK: Input: default@part_change_various_various_char_trunc @@ -2132,17 +2180,19 @@ POSTHOOK: Output: database:default POSTHOOK: Output: default@part_change_various_various_varchar PREHOOK: query: insert into table part_change_various_various_varchar partition(part=1) values(1, true, 200, 72909, 3244222, -99999999999, -29.0764, 470614135, 470614135, 'dynamic reptile ', 'dynamic reptile ', '0004-09-22 18:26:29.519542222', '2007-02-09', 'binary', 'original'), - (2, 0, 100, 483777, 14, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, ' baffling ', ' baffling ', '2007-02-09 05:17:29.368756876', '0004-09-22', 'binary', 'original'), - (3, false, 72, 3244222, -93222, 30.774, - 66475.561431, -66475.561431, 0.561431, '1', '1', '6229-06-28 02:54:28.970117179', '5966-07-09', 'binary', 'original'), - (4, 1, -90, 754072151, 3289094, 46114.284799488, 9250340.75, 9250340.75, 9250340.75, 'junkyard', 'junkyard', '2002-05-10 05:29:48.990818073', '1815-05-06', 'binary', 'original') + (2, 0, 100, 32767, -23372036854775, -9223372036854775808.0, -9223372036854775808.0, 9223372036854775807.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, 100, -32768, 23372036854775, -9223372036854775809.0, -9223372036854775809.0, 9223372036854775808.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, 72, 3244222, -93222, 30.774, - 66475.561431, -66475.561431, 0.561431, '1', '1', '6229-06-28 02:54:28.970117179', '5966-07-09', 'binary', 'original'), + (5, 1, -90, 754072151, 3289094, 46114.284799488, 9250340.75, 9250340.75, 9250340.75, 'junkyard', 'junkyard', '2002-05-10 05:29:48.990818073', '1815-05-06', 'binary', 'original') PREHOOK: type: QUERY PREHOOK: Input: default@values__tmp__table__34 PREHOOK: Output: default@part_change_various_various_varchar@part=1 POSTHOOK: query: insert into table part_change_various_various_varchar partition(part=1) values(1, true, 200, 72909, 3244222, -99999999999, -29.0764, 470614135, 470614135, 'dynamic reptile ', 'dynamic reptile ', '0004-09-22 18:26:29.519542222', '2007-02-09', 'binary', 'original'), - (2, 0, 100, 483777, 14, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, ' baffling ', ' baffling ', '2007-02-09 05:17:29.368756876', '0004-09-22', 'binary', 'original'), - (3, false, 72, 3244222, -93222, 30.774, - 66475.561431, -66475.561431, 0.561431, '1', '1', '6229-06-28 02:54:28.970117179', '5966-07-09', 'binary', 'original'), - (4, 1, -90, 754072151, 3289094, 46114.284799488, 9250340.75, 9250340.75, 9250340.75, 'junkyard', 'junkyard', '2002-05-10 05:29:48.990818073', '1815-05-06', 'binary', 'original') + (2, 0, 100, 32767, -23372036854775, -9223372036854775808.0, -9223372036854775808.0, 9223372036854775807.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, 100, -32768, 23372036854775, -9223372036854775809.0, -9223372036854775809.0, 9223372036854775808.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, 72, 3244222, -93222, 30.774, - 66475.561431, -66475.561431, 0.561431, '1', '1', '6229-06-28 02:54:28.970117179', '5966-07-09', 'binary', 'original'), + (5, 1, -90, 754072151, 3289094, 46114.284799488, 9250340.75, 9250340.75, 9250340.75, 'junkyard', 'junkyard', '2002-05-10 05:29:48.990818073', '1815-05-06', 'binary', 'original') POSTHOOK: type: QUERY POSTHOOK: Input: default@values__tmp__table__34 POSTHOOK: Output: default@part_change_various_various_varchar@part=1 @@ -2174,9 +2224,10 @@ POSTHOOK: Input: default@part_change_various_various_varchar@part=1 #### A masked pattern was here #### insert_num part c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 c12 c13 b 1 1 true NULL NULL 3244222 -99999999999 -29.0764 4.70614135E8 470614135.000000000000000000 dynamic reptile dynamic reptile 0004-09-22 18:26:29.519542222 2007-02-09 binary original -2 1 true 100 NULL 14 -23866739993 -3651.672 46114.284799488 46114.284799488000000000 baffling baffling 2007-02-09 05:17:29.368756876 0004-09-22 binary original -3 1 false 72 NULL -93222 30 -66475.56 -66475.561431 0.561431000000000000 1 1 6229-06-28 02:54:28.970117179 5966-07-09 binary original -4 1 true -90 NULL 3289094 46114 9250341.0 9250340.75 9250340.750000000000000000 junkyard junkyard 2002-05-10 05:29:48.990818073 1815-05-06 binary original +2 1 true 100 32767 NULL -9223372036854775808 -9.223372E18 9.223372036854776E18 NULL 2007-02-09 05:17:29.368756876 NULL NULL NULL +3 1 true 100 -32768 NULL NULL -9.223372E18 9.223372036854776E18 NULL 2007-02-09 05:17:29.368756876 NULL NULL NULL +4 1 false 72 NULL -93222 30 -66475.56 -66475.561431 0.561431000000000000 1 1 6229-06-28 02:54:28.970117179 5966-07-09 binary original +5 1 true -90 NULL 3289094 46114 9250341.0 9250340.75 9250340.750000000000000000 junkyard junkyard 2002-05-10 05:29:48.990818073 1815-05-06 binary original PREHOOK: query: -- Table-Non-Cascade CHANGE COLUMNS ... alter table part_change_various_various_varchar replace columns (insert_num int, c1 VARCHAR(25), c2 VARCHAR(25), c3 VARCHAR(25), c4 VARCHAR(25), c5 VARCHAR(25), c6 VARCHAR(25), c7 VARCHAR(25), c8 VARCHAR(25), c9 VARCHAR(25), c10 VARCHAR(25), c11 VARCHAR(25), c12 VARCHAR(25), c13 VARCHAR(25), b STRING) PREHOOK: type: ALTERTABLE_REPLACECOLS @@ -2188,12 +2239,12 @@ POSTHOOK: type: ALTERTABLE_REPLACECOLS POSTHOOK: Input: default@part_change_various_various_varchar POSTHOOK: Output: default@part_change_various_various_varchar PREHOOK: query: insert into table part_change_various_various_varchar partition(part=2) - values (5, 'true', '400', '44388', -'100', '953967041.', '62.079153', '718.78', '1', 'verdict', 'verdict', 'timestamp', 'date', 'binary', 'new') + values (6, 'true', '400', '44388', -'100', '953967041.', '62.079153', '718.78', '1', 'verdict', 'verdict', 'timestamp', 'date', 'binary', 'new') PREHOOK: type: QUERY PREHOOK: Input: default@values__tmp__table__35 PREHOOK: Output: default@part_change_various_various_varchar@part=2 POSTHOOK: query: insert into table part_change_various_various_varchar partition(part=2) - values (5, 'true', '400', '44388', -'100', '953967041.', '62.079153', '718.78', '1', 'verdict', 'verdict', 'timestamp', 'date', 'binary', 'new') + values (6, 'true', '400', '44388', -'100', '953967041.', '62.079153', '718.78', '1', 'verdict', 'verdict', 'timestamp', 'date', 'binary', 'new') POSTHOOK: type: QUERY POSTHOOK: Input: default@values__tmp__table__35 POSTHOOK: Output: default@part_change_various_various_varchar@part=2 @@ -2214,12 +2265,12 @@ POSTHOOK: Lineage: part_change_various_various_varchar PARTITION(part=2).c9 EXPR POSTHOOK: Lineage: part_change_various_various_varchar PARTITION(part=2).insert_num EXPRESSION [(values__tmp__table__35)values__tmp__table__35.FieldSchema(name:tmp_values_col1, type:string, comment:), ] _col0 _col1 _col2 _col3 _col4 _col5 _col6 _col7 _col8 _col9 _col10 _col11 _col12 _col13 _col14 PREHOOK: query: insert into table part_change_various_various_varchar partition(part=1) - values (6,-'false', '-67', '833', '63993', ' 1255178165.77663', '905070.974', '-4314.7918', -'1240033819', 'trial', 'trial', '2016-03-07 03:02:22.0', '2016-03-07', 'binary', 'new') + values (7,-'false', '-67', '833', '63993', ' 1255178165.77663', '905070.974', '-4314.7918', -'1240033819', 'trial', 'trial', '2016-03-07 03:02:22.0', '2016-03-07', 'binary', 'new') PREHOOK: type: QUERY PREHOOK: Input: default@values__tmp__table__36 PREHOOK: Output: default@part_change_various_various_varchar@part=1 POSTHOOK: query: insert into table part_change_various_various_varchar partition(part=1) - values (6,-'false', '-67', '833', '63993', ' 1255178165.77663', '905070.974', '-4314.7918', -'1240033819', 'trial', 'trial', '2016-03-07 03:02:22.0', '2016-03-07', 'binary', 'new') + values (7,-'false', '-67', '833', '63993', ' 1255178165.77663', '905070.974', '-4314.7918', -'1240033819', 'trial', 'trial', '2016-03-07 03:02:22.0', '2016-03-07', 'binary', 'new') POSTHOOK: type: QUERY POSTHOOK: Input: default@values__tmp__table__36 POSTHOOK: Output: default@part_change_various_various_varchar@part=1 @@ -2256,24 +2307,24 @@ STAGE PLANS: Map Operator Tree: TableScan alias: part_change_various_various_varchar - Statistics: Num rows: 6 Data size: 4729 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 4709 Basic stats: COMPLETE Column stats: NONE Select Operator expressions: insert_num (type: int), part (type: int), c1 (type: varchar(25)), c2 (type: varchar(25)), c3 (type: varchar(25)), c4 (type: varchar(25)), c5 (type: varchar(25)), c6 (type: varchar(25)), c7 (type: varchar(25)), c8 (type: varchar(25)), c9 (type: varchar(25)), c10 (type: varchar(25)), c11 (type: varchar(25)), c12 (type: varchar(25)), c13 (type: varchar(25)), b (type: string) outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6, _col7, _col8, _col9, _col10, _col11, _col12, _col13, _col14, _col15 - Statistics: Num rows: 6 Data size: 4729 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 4709 Basic stats: COMPLETE Column stats: NONE Reduce Output Operator key expressions: _col0 (type: int) sort order: + - Statistics: Num rows: 6 Data size: 4729 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 4709 Basic stats: COMPLETE Column stats: NONE value expressions: _col1 (type: int), _col2 (type: varchar(25)), _col3 (type: varchar(25)), _col4 (type: varchar(25)), _col5 (type: varchar(25)), _col6 (type: varchar(25)), _col7 (type: varchar(25)), _col8 (type: varchar(25)), _col9 (type: varchar(25)), _col10 (type: varchar(25)), _col11 (type: varchar(25)), _col12 (type: varchar(25)), _col13 (type: varchar(25)), _col14 (type: varchar(25)), _col15 (type: string) Reduce Operator Tree: Select Operator expressions: KEY.reducesinkkey0 (type: int), VALUE._col0 (type: int), VALUE._col1 (type: varchar(25)), VALUE._col2 (type: varchar(25)), VALUE._col3 (type: varchar(25)), VALUE._col4 (type: varchar(25)), VALUE._col5 (type: varchar(25)), VALUE._col6 (type: varchar(25)), VALUE._col7 (type: varchar(25)), VALUE._col8 (type: varchar(25)), VALUE._col9 (type: varchar(25)), VALUE._col10 (type: varchar(25)), VALUE._col11 (type: varchar(25)), VALUE._col12 (type: varchar(25)), VALUE._col13 (type: varchar(25)), VALUE._col14 (type: string) outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6, _col7, _col8, _col9, _col10, _col11, _col12, _col13, _col14, _col15 - Statistics: Num rows: 6 Data size: 4729 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 4709 Basic stats: COMPLETE Column stats: NONE File Output Operator compressed: false - Statistics: Num rows: 6 Data size: 4729 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 4709 Basic stats: COMPLETE Column stats: NONE table: input format: org.apache.hadoop.mapred.SequenceFileInputFormat output format: org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat @@ -2299,11 +2350,12 @@ POSTHOOK: Input: default@part_change_various_various_varchar@part=2 #### A masked pattern was here #### insert_num part c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 c12 c13 b 1 1 TRUE NULL NULL 3244222 -99999999999 -29.0764 4.70614135E8 470614135 dynamic reptile dynamic reptile 0004-09-22 18:26:29.51954 2007-02-09 62 69 6e 61 72 79 original -2 1 TRUE 100 NULL 14 -23866739993 -3651.672 46114.284799488 46114.284799488 baffling baffling 2007-02-09 05:17:29.36875 0004-09-22 62 69 6e 61 72 79 original -3 1 FALSE 72 NULL -93222 30 -66475.56 -66475.561431 0.561431 1 1 6229-06-28 02:54:28.97011 5966-07-09 62 69 6e 61 72 79 original -4 1 TRUE -90 NULL 3289094 46114 9250341.0 9250340.75 9250340.75 junkyard junkyard 2002-05-10 05:29:48.99081 1815-05-06 62 69 6e 61 72 79 original -5 2 true 400 44388 -100 953967041. 62.079153 718.78 1 verdict verdict timestamp date binary new -6 1 -false -67 833 63993 1255178165.77663 905070.974 -4314.7918 -1240033819 trial trial 2016-03-07 03:02:22.0 2016-03-07 binary new +2 1 TRUE 100 32767 NULL -9223372036854775808 -9.223372E18 9.223372036854776E18 NULL 2007-02-09 05:17:29.36875 NULL NULL NULL +3 1 TRUE 100 -32768 NULL NULL -9.223372E18 9.223372036854776E18 NULL 2007-02-09 05:17:29.36875 NULL NULL NULL +4 1 FALSE 72 NULL -93222 30 -66475.56 -66475.561431 0.561431 1 1 6229-06-28 02:54:28.97011 5966-07-09 62 69 6e 61 72 79 original +5 1 TRUE -90 NULL 3289094 46114 9250341.0 9250340.75 9250340.75 junkyard junkyard 2002-05-10 05:29:48.99081 1815-05-06 62 69 6e 61 72 79 original +6 2 true 400 44388 -100 953967041. 62.079153 718.78 1 verdict verdict timestamp date binary new +7 1 -false -67 833 63993 1255178165.77663 905070.974 -4314.7918 -1240033819 trial trial 2016-03-07 03:02:22.0 2016-03-07 binary new PREHOOK: query: drop table part_change_various_various_varchar PREHOOK: type: DROPTABLE PREHOOK: Input: default@part_change_various_various_varchar @@ -2328,7 +2380,8 @@ POSTHOOK: Output: database:default POSTHOOK: Output: default@part_change_various_various_varchar_trunc PREHOOK: query: insert into table part_change_various_various_varchar_trunc partition(part=1) values(1, true, 200, 72909, 3244222, -99999999999, -29.0764, 470614135, 470614135, 'dynamic reptile ', 'dynamic reptile ', '0004-09-22 18:26:29.519542222', '2007-02-09', 'binary', 'original'), - (2, 0, 100, 483777, 14, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, ' baffling ', ' baffling ', '2007-02-09 05:17:29.368756876', '0004-09-22', 'binary', 'original'), + (2, 0, 100, 32767, -23372036854775, -9223372036854775808.0, -9223372036854775808.0, 9223372036854775807.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, 100, -32768, 23372036854775, -9223372036854775809.0, -9223372036854775809.0, 9223372036854775808.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), (3, false, 72, 3244222, -93222, 30.774, - 66475.561431, -66475.561431, 0.561431, '1', '1', '6229-06-28 02:54:28.970117179', '5966-07-09', 'binary', 'original'), (4, 1, -90, 754072151, 3289094, 46114.284799488, 9250340.75, 9250340.75, 9250340.75, 'junkyard', 'junkyard', '2002-05-10 05:29:48.990818073', '1815-05-06', 'binary', 'original') PREHOOK: type: QUERY @@ -2336,7 +2389,8 @@ PREHOOK: Input: default@values__tmp__table__37 PREHOOK: Output: default@part_change_various_various_varchar_trunc@part=1 POSTHOOK: query: insert into table part_change_various_various_varchar_trunc partition(part=1) values(1, true, 200, 72909, 3244222, -99999999999, -29.0764, 470614135, 470614135, 'dynamic reptile ', 'dynamic reptile ', '0004-09-22 18:26:29.519542222', '2007-02-09', 'binary', 'original'), - (2, 0, 100, 483777, 14, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, ' baffling ', ' baffling ', '2007-02-09 05:17:29.368756876', '0004-09-22', 'binary', 'original'), + (2, 0, 100, 32767, -23372036854775, -9223372036854775808.0, -9223372036854775808.0, 9223372036854775807.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, 100, -32768, 23372036854775, -9223372036854775809.0, -9223372036854775809.0, 9223372036854775808.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), (3, false, 72, 3244222, -93222, 30.774, - 66475.561431, -66475.561431, 0.561431, '1', '1', '6229-06-28 02:54:28.970117179', '5966-07-09', 'binary', 'original'), (4, 1, -90, 754072151, 3289094, 46114.284799488, 9250340.75, 9250340.75, 9250340.75, 'junkyard', 'junkyard', '2002-05-10 05:29:48.990818073', '1815-05-06', 'binary', 'original') POSTHOOK: type: QUERY @@ -2370,8 +2424,9 @@ POSTHOOK: Input: default@part_change_various_various_varchar_trunc@part=1 #### A masked pattern was here #### insert_num part c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 c12 c13 b 1 1 true NULL NULL 3244222 -99999999999 -29.0764 4.70614135E8 470614135.000000000000000000 dynamic reptile dynamic reptile 0004-09-22 18:26:29.519542222 2007-02-09 binary original -2 1 true 100 NULL 14 -23866739993 -3651.672 46114.284799488 46114.284799488000000000 baffling baffling 2007-02-09 05:17:29.368756876 0004-09-22 binary original +2 1 true 100 32767 NULL -9223372036854775808 -9.223372E18 9.223372036854776E18 NULL 2007-02-09 05:17:29.368756876 NULL NULL NULL 3 1 false 72 NULL -93222 30 -66475.56 -66475.561431 0.561431000000000000 1 1 6229-06-28 02:54:28.970117179 5966-07-09 binary original +3 1 true 100 -32768 NULL NULL -9.223372E18 9.223372036854776E18 NULL 2007-02-09 05:17:29.368756876 NULL NULL NULL 4 1 true -90 NULL 3289094 46114 9250341.0 9250340.75 9250340.750000000000000000 junkyard junkyard 2002-05-10 05:29:48.990818073 1815-05-06 binary original PREHOOK: query: -- Table-Non-Cascade CHANGE COLUMNS ... alter table part_change_various_various_varchar_trunc replace columns (insert_num int, c1 VARCHAR(8), c2 VARCHAR(8), c3 VARCHAR(8), c4 VARCHAR(8), c5 VARCHAR(8), c6 VARCHAR(8), c7 VARCHAR(8), c8 VARCHAR(8), c9 VARCHAR(8), c10 VARCHAR(8), c11 VARCHAR(8), c12 VARCHAR(8), c13 VARCHAR(8), b STRING) @@ -2452,24 +2507,24 @@ STAGE PLANS: Map Operator Tree: TableScan alias: part_change_various_various_varchar_trunc - Statistics: Num rows: 6 Data size: 4694 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 4674 Basic stats: COMPLETE Column stats: NONE Select Operator expressions: insert_num (type: int), part (type: int), c1 (type: varchar(8)), c2 (type: varchar(8)), c3 (type: varchar(8)), c4 (type: varchar(8)), c5 (type: varchar(8)), c6 (type: varchar(8)), c7 (type: varchar(8)), c8 (type: varchar(8)), c9 (type: varchar(8)), c10 (type: varchar(8)), c11 (type: varchar(8)), c12 (type: varchar(8)), c13 (type: varchar(8)), b (type: string) outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6, _col7, _col8, _col9, _col10, _col11, _col12, _col13, _col14, _col15 - Statistics: Num rows: 6 Data size: 4694 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 4674 Basic stats: COMPLETE Column stats: NONE Reduce Output Operator key expressions: _col0 (type: int) sort order: + - Statistics: Num rows: 6 Data size: 4694 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 4674 Basic stats: COMPLETE Column stats: NONE value expressions: _col1 (type: int), _col2 (type: varchar(8)), _col3 (type: varchar(8)), _col4 (type: varchar(8)), _col5 (type: varchar(8)), _col6 (type: varchar(8)), _col7 (type: varchar(8)), _col8 (type: varchar(8)), _col9 (type: varchar(8)), _col10 (type: varchar(8)), _col11 (type: varchar(8)), _col12 (type: varchar(8)), _col13 (type: varchar(8)), _col14 (type: varchar(8)), _col15 (type: string) Reduce Operator Tree: Select Operator expressions: KEY.reducesinkkey0 (type: int), VALUE._col0 (type: int), VALUE._col1 (type: varchar(8)), VALUE._col2 (type: varchar(8)), VALUE._col3 (type: varchar(8)), VALUE._col4 (type: varchar(8)), VALUE._col5 (type: varchar(8)), VALUE._col6 (type: varchar(8)), VALUE._col7 (type: varchar(8)), VALUE._col8 (type: varchar(8)), VALUE._col9 (type: varchar(8)), VALUE._col10 (type: varchar(8)), VALUE._col11 (type: varchar(8)), VALUE._col12 (type: varchar(8)), VALUE._col13 (type: varchar(8)), VALUE._col14 (type: string) outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6, _col7, _col8, _col9, _col10, _col11, _col12, _col13, _col14, _col15 - Statistics: Num rows: 6 Data size: 4694 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 4674 Basic stats: COMPLETE Column stats: NONE File Output Operator compressed: false - Statistics: Num rows: 6 Data size: 4694 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 4674 Basic stats: COMPLETE Column stats: NONE table: input format: org.apache.hadoop.mapred.SequenceFileInputFormat output format: org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat @@ -2495,8 +2550,9 @@ POSTHOOK: Input: default@part_change_various_various_varchar_trunc@part=2 #### A masked pattern was here #### insert_num part c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 c12 c13 b 1 1 TRUE NULL NULL 3244222 -9999999 -29.0764 4.706141 47061413 dynamic dynamic 0004-09- 2007-02- 62 69 6e original -2 1 TRUE 100 NULL 14 -2386673 -3651.67 46114.28 46114.28 baffli baffli 2007-02- 0004-09- 62 69 6e original +2 1 TRUE 100 32767 NULL -9223372 -9.22337 9.223372 NULL 2007-02- NULL NULL NULL 3 1 FALSE 72 NULL -93222 30 -66475.5 -66475.5 0.561431 1 1 6229-06- 5966-07- 62 69 6e original +3 1 TRUE 100 -32768 NULL NULL -9.22337 9.223372 NULL 2007-02- NULL NULL NULL 4 1 TRUE -90 NULL 3289094 46114 9250341. 9250340. 9250340. junkyard junkyard 2002-05- 1815-05- 62 69 6e original 5 2 true 400 44388 -100 95396704 62.07915 718.78 1 verdict verdict timestam date binary new 6 1 -false -67 833 63993 1255178 905070.9 -4314.79 -1240033 trial trial 2016-03- 2016-03- binary new @@ -2524,17 +2580,19 @@ POSTHOOK: Output: database:default POSTHOOK: Output: default@part_change_various_various_timestamp PREHOOK: query: insert into table part_change_various_various_timestamp partition(part=1) values(1, true, 200, 72909, 3244222, -99999999999, -29.0764, 470614135, 470614135, '0004-09-22 18:26:29.519542222', '0004-09-22 18:26:29.519542222', '0004-09-22 18:26:29.519542222', '2007-02-09', 'original'), - (2, 0, 100, 483777, 14, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, '2007-02-09 05:17:29.368756876', '2007-02-09 05:17:29.368756876', '2007-02-09 05:17:29.368756876', '0004-09-22', 'original'), - (3, false, 72, 3244222, -93222, 30.774, - 66475.561431, -66475.561431, 0.561431, '6229-06-28 02:54:28.970117179', '6229-06-28 02:54:28.970117179', '6229-06-28 02:54:28.970117179', '5966-07-09', 'original'), - (4, 1, -90, 754072151, 3289094, 46114.284799488, 9250340.75, 9250340.75, 9250340.75, '2002-05-10 05:29:48.990818073', '2002-05-10 05:29:48.990818073', '2002-05-10 05:29:48.990818073', '1815-05-06', 'original') + (2, 0, 100, 32767, -23372036854775, -9223372036854775808.0, -9223372036854775808.0, 9223372036854775807.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, 100, -32768, 23372036854775, -9223372036854775809.0, -9223372036854775809.0, 9223372036854775808.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, 72, 3244222, -93222, 30.774, - 66475.561431, -66475.561431, 0.561431, '6229-06-28 02:54:28.970117179', '6229-06-28 02:54:28.970117179', '6229-06-28 02:54:28.970117179', '5966-07-09', 'original'), + (5, 1, -90, 754072151, 3289094, 46114.284799488, 9250340.75, 9250340.75, 9250340.75, '2002-05-10 05:29:48.990818073', '2002-05-10 05:29:48.990818073', '2002-05-10 05:29:48.990818073', '1815-05-06', 'original') PREHOOK: type: QUERY PREHOOK: Input: default@values__tmp__table__40 PREHOOK: Output: default@part_change_various_various_timestamp@part=1 POSTHOOK: query: insert into table part_change_various_various_timestamp partition(part=1) values(1, true, 200, 72909, 3244222, -99999999999, -29.0764, 470614135, 470614135, '0004-09-22 18:26:29.519542222', '0004-09-22 18:26:29.519542222', '0004-09-22 18:26:29.519542222', '2007-02-09', 'original'), - (2, 0, 100, 483777, 14, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, '2007-02-09 05:17:29.368756876', '2007-02-09 05:17:29.368756876', '2007-02-09 05:17:29.368756876', '0004-09-22', 'original'), - (3, false, 72, 3244222, -93222, 30.774, - 66475.561431, -66475.561431, 0.561431, '6229-06-28 02:54:28.970117179', '6229-06-28 02:54:28.970117179', '6229-06-28 02:54:28.970117179', '5966-07-09', 'original'), - (4, 1, -90, 754072151, 3289094, 46114.284799488, 9250340.75, 9250340.75, 9250340.75, '2002-05-10 05:29:48.990818073', '2002-05-10 05:29:48.990818073', '2002-05-10 05:29:48.990818073', '1815-05-06', 'original') + (2, 0, 100, 32767, -23372036854775, -9223372036854775808.0, -9223372036854775808.0, 9223372036854775807.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, 100, -32768, 23372036854775, -9223372036854775809.0, -9223372036854775809.0, 9223372036854775808.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, 72, 3244222, -93222, 30.774, - 66475.561431, -66475.561431, 0.561431, '6229-06-28 02:54:28.970117179', '6229-06-28 02:54:28.970117179', '6229-06-28 02:54:28.970117179', '5966-07-09', 'original'), + (5, 1, -90, 754072151, 3289094, 46114.284799488, 9250340.75, 9250340.75, 9250340.75, '2002-05-10 05:29:48.990818073', '2002-05-10 05:29:48.990818073', '2002-05-10 05:29:48.990818073', '1815-05-06', 'original') POSTHOOK: type: QUERY POSTHOOK: Input: default@values__tmp__table__40 POSTHOOK: Output: default@part_change_various_various_timestamp@part=1 @@ -2565,9 +2623,10 @@ POSTHOOK: Input: default@part_change_various_various_timestamp@part=1 #### A masked pattern was here #### insert_num part c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 c12 b 1 1 true NULL NULL 3244222 -99999999999 -29.0764 4.70614135E8 470614135.000000000000000000 0004-09-22 18:26:29.519542222 0004-09-22 18:26:29.51954 0004-09-22 18:26:29.51954 2007-02-09 original -2 1 true 100 NULL 14 -23866739993 -3651.672 46114.284799488 46114.284799488000000000 2007-02-09 05:17:29.368756876 2007-02-09 05:17:29.36875 2007-02-09 05:17:29.36875 0004-09-22 original -3 1 false 72 NULL -93222 30 -66475.56 -66475.561431 0.561431000000000000 6229-06-28 02:54:28.970117179 6229-06-28 02:54:28.97011 6229-06-28 02:54:28.97011 5966-07-09 original -4 1 true -90 NULL 3289094 46114 9250341.0 9250340.75 9250340.750000000000000000 2002-05-10 05:29:48.990818073 2002-05-10 05:29:48.99081 2002-05-10 05:29:48.99081 1815-05-06 original +2 1 true 100 32767 NULL -9223372036854775808 -9.223372E18 9.223372036854776E18 NULL 2007-02-09 05:17:29.36875 NULL NULL +3 1 true 100 -32768 NULL NULL -9.223372E18 9.223372036854776E18 NULL 2007-02-09 05:17:29.36875 NULL NULL +4 1 false 72 NULL -93222 30 -66475.56 -66475.561431 0.561431000000000000 6229-06-28 02:54:28.970117179 6229-06-28 02:54:28.97011 6229-06-28 02:54:28.97011 5966-07-09 original +5 1 true -90 NULL 3289094 46114 9250341.0 9250340.75 9250340.750000000000000000 2002-05-10 05:29:48.990818073 2002-05-10 05:29:48.99081 2002-05-10 05:29:48.99081 1815-05-06 original PREHOOK: query: -- Table-Non-Cascade CHANGE COLUMNS ... alter table part_change_various_various_timestamp replace columns (insert_num int, c1 TIMESTAMP, c2 TIMESTAMP, c3 TIMESTAMP, c4 TIMESTAMP, c5 TIMESTAMP, c6 TIMESTAMP, c7 TIMESTAMP, c8 TIMESTAMP, c9 TIMESTAMP, c10 TIMESTAMP, c11 TIMESTAMP, c12 TIMESTAMP, b STRING) PREHOOK: type: ALTERTABLE_REPLACECOLS @@ -2579,12 +2638,12 @@ POSTHOOK: type: ALTERTABLE_REPLACECOLS POSTHOOK: Input: default@part_change_various_various_timestamp POSTHOOK: Output: default@part_change_various_various_timestamp PREHOOK: query: insert into table part_change_various_various_timestamp partition(part=2) - values (5, 'true', '400', '44388', -'100', '953967041.', '62.079153', '718.78', '1', 'timestamp', 'timestamp', 'timestamp', 'date', 'new') + values (6, 'true', '400', '44388', -'100', '953967041.', '62.079153', '718.78', '1', 'timestamp', 'timestamp', 'timestamp', 'date', 'new') PREHOOK: type: QUERY PREHOOK: Input: default@values__tmp__table__41 PREHOOK: Output: default@part_change_various_various_timestamp@part=2 POSTHOOK: query: insert into table part_change_various_various_timestamp partition(part=2) - values (5, 'true', '400', '44388', -'100', '953967041.', '62.079153', '718.78', '1', 'timestamp', 'timestamp', 'timestamp', 'date', 'new') + values (6, 'true', '400', '44388', -'100', '953967041.', '62.079153', '718.78', '1', 'timestamp', 'timestamp', 'timestamp', 'date', 'new') POSTHOOK: type: QUERY POSTHOOK: Input: default@values__tmp__table__41 POSTHOOK: Output: default@part_change_various_various_timestamp@part=2 @@ -2604,12 +2663,12 @@ POSTHOOK: Lineage: part_change_various_various_timestamp PARTITION(part=2).c9 EX POSTHOOK: Lineage: part_change_various_various_timestamp PARTITION(part=2).insert_num EXPRESSION [(values__tmp__table__41)values__tmp__table__41.FieldSchema(name:tmp_values_col1, type:string, comment:), ] _col0 _col1 _col2 _col3 _col4 _col5 _col6 _col7 _col8 _col9 _col10 _col11 _col12 _col13 PREHOOK: query: insert into table part_change_various_various_timestamp partition(part=1) - values (6,-'false', '-67', '833', '63993', ' 1255178165.77663', '905070.974', '-4314.7918', -'1240033819', '2016-03-07 03:02:22.0', '2016-03-07 03:02:22.0', '2016-03-07 03:02:22.0', '2016-03-07', 'new') + values (7,-'false', '-67', '833', '63993', ' 1255178165.77663', '905070.974', '-4314.7918', -'1240033819', '2016-03-07 03:02:22.0', '2016-03-07 03:02:22.0', '2016-03-07 03:02:22.0', '2016-03-07', 'new') PREHOOK: type: QUERY PREHOOK: Input: default@values__tmp__table__42 PREHOOK: Output: default@part_change_various_various_timestamp@part=1 POSTHOOK: query: insert into table part_change_various_various_timestamp partition(part=1) - values (6,-'false', '-67', '833', '63993', ' 1255178165.77663', '905070.974', '-4314.7918', -'1240033819', '2016-03-07 03:02:22.0', '2016-03-07 03:02:22.0', '2016-03-07 03:02:22.0', '2016-03-07', 'new') + values (7,-'false', '-67', '833', '63993', ' 1255178165.77663', '905070.974', '-4314.7918', -'1240033819', '2016-03-07 03:02:22.0', '2016-03-07 03:02:22.0', '2016-03-07 03:02:22.0', '2016-03-07', 'new') POSTHOOK: type: QUERY POSTHOOK: Input: default@values__tmp__table__42 POSTHOOK: Output: default@part_change_various_various_timestamp@part=1 @@ -2645,24 +2704,24 @@ STAGE PLANS: Map Operator Tree: TableScan alias: part_change_various_various_timestamp - Statistics: Num rows: 6 Data size: 2806 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 2845 Basic stats: COMPLETE Column stats: NONE Select Operator expressions: insert_num (type: int), part (type: int), c1 (type: timestamp), c2 (type: timestamp), c3 (type: timestamp), c4 (type: timestamp), c5 (type: timestamp), c6 (type: timestamp), c7 (type: timestamp), c8 (type: timestamp), c9 (type: timestamp), c10 (type: timestamp), c11 (type: timestamp), c12 (type: timestamp), b (type: string) outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6, _col7, _col8, _col9, _col10, _col11, _col12, _col13, _col14 - Statistics: Num rows: 6 Data size: 2806 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 2845 Basic stats: COMPLETE Column stats: NONE Reduce Output Operator key expressions: _col0 (type: int) sort order: + - Statistics: Num rows: 6 Data size: 2806 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 2845 Basic stats: COMPLETE Column stats: NONE value expressions: _col1 (type: int), _col2 (type: timestamp), _col3 (type: timestamp), _col4 (type: timestamp), _col5 (type: timestamp), _col6 (type: timestamp), _col7 (type: timestamp), _col8 (type: timestamp), _col9 (type: timestamp), _col10 (type: timestamp), _col11 (type: timestamp), _col12 (type: timestamp), _col13 (type: timestamp), _col14 (type: string) Reduce Operator Tree: Select Operator expressions: KEY.reducesinkkey0 (type: int), VALUE._col0 (type: int), VALUE._col1 (type: timestamp), VALUE._col2 (type: timestamp), VALUE._col3 (type: timestamp), VALUE._col4 (type: timestamp), VALUE._col5 (type: timestamp), VALUE._col6 (type: timestamp), VALUE._col7 (type: timestamp), VALUE._col8 (type: timestamp), VALUE._col9 (type: timestamp), VALUE._col10 (type: timestamp), VALUE._col11 (type: timestamp), VALUE._col12 (type: timestamp), VALUE._col13 (type: string) outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6, _col7, _col8, _col9, _col10, _col11, _col12, _col13, _col14 - Statistics: Num rows: 6 Data size: 2806 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 2845 Basic stats: COMPLETE Column stats: NONE File Output Operator compressed: false - Statistics: Num rows: 6 Data size: 2806 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 2845 Basic stats: COMPLETE Column stats: NONE table: input format: org.apache.hadoop.mapred.SequenceFileInputFormat output format: org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat @@ -2688,11 +2747,12 @@ POSTHOOK: Input: default@part_change_various_various_timestamp@part=2 #### A masked pattern was here #### insert_num part c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 c12 b 1 1 1969-12-31 16:00:00.001 NULL NULL 1969-12-31 16:54:04.222 1966-10-31 06:13:20.001 1969-12-31 15:59:30.923599244 1984-11-29 14:08:55 1984-11-29 14:08:55 0004-09-22 18:26:29.519542222 0004-09-22 18:26:29.51954 0004-09-22 18:26:29.51954 2007-02-09 00:00:00 original -2 1 1969-12-31 16:00:00.001 1969-12-31 16:00:00.1 NULL 1969-12-31 16:00:00.014 1969-03-30 10:21:00.007 1969-12-31 14:59:08.32788086 1970-01-01 04:48:34.284799488 1970-01-01 04:48:34.284799488 2007-02-09 05:17:29.368756876 2007-02-09 05:17:29.36875 2007-02-09 05:17:29.36875 0004-09-22 00:00:00 original -3 1 1969-12-31 16:00:00 1969-12-31 16:00:00.072 NULL 1969-12-31 15:58:26.778 1969-12-31 16:00:00.03 1969-12-30 21:32:04.4375 1969-12-30 21:32:04.438569 1969-12-31 16:00:00.561431 6229-06-28 02:54:28.970117179 6229-06-28 02:54:28.97011 6229-06-28 02:54:28.97011 5966-07-09 00:00:00 original -4 1 1969-12-31 16:00:00.001 1969-12-31 15:59:59.91 NULL 1969-12-31 16:54:49.094 1969-12-31 16:00:46.114 1970-04-17 17:32:21 1970-04-17 17:32:20.75 1970-04-17 17:32:20.75 2002-05-10 05:29:48.990818073 2002-05-10 05:29:48.99081 2002-05-10 05:29:48.99081 1815-05-06 00:00:00 original -5 2 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL new -6 1 NULL NULL NULL NULL NULL NULL NULL NULL 2016-03-07 03:02:22 2016-03-07 03:02:22 2016-03-07 03:02:22 NULL new +2 1 1969-12-31 16:00:00.001 1969-12-31 16:00:00.1 1969-12-31 16:00:32.767 NULL NULL NULL 1969-12-31 15:59:58.72647168 NULL NULL NULL 2007-02-09 05:17:29.36875 NULL NULL +3 1 1969-12-31 16:00:00.001 1969-12-31 16:00:00.1 1969-12-31 15:59:27.232 NULL NULL NULL 1969-12-31 15:59:58.72647168 NULL NULL NULL 2007-02-09 05:17:29.36875 NULL NULL +4 1 1969-12-31 16:00:00 1969-12-31 16:00:00.072 NULL 1969-12-31 15:58:26.778 1969-12-31 16:00:00.03 1969-12-30 21:32:04.4375 1969-12-30 21:32:04.438569 1969-12-31 16:00:00.561431 6229-06-28 02:54:28.970117179 6229-06-28 02:54:28.97011 6229-06-28 02:54:28.97011 5966-07-09 00:00:00 original +5 1 1969-12-31 16:00:00.001 1969-12-31 15:59:59.91 NULL 1969-12-31 16:54:49.094 1969-12-31 16:00:46.114 1970-04-17 17:32:21 1970-04-17 17:32:20.75 1970-04-17 17:32:20.75 2002-05-10 05:29:48.990818073 2002-05-10 05:29:48.99081 2002-05-10 05:29:48.99081 1815-05-06 00:00:00 original +6 2 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL new +7 1 NULL NULL NULL NULL NULL NULL NULL NULL 2016-03-07 03:02:22 2016-03-07 03:02:22 2016-03-07 03:02:22 NULL new PREHOOK: query: drop table part_change_various_various_timestamp PREHOOK: type: DROPTABLE PREHOOK: Input: default@part_change_various_various_timestamp diff --git ql/src/test/results/clientpositive/schema_evol_orc_vec_mapwork_part_all_primitive.q.out ql/src/test/results/clientpositive/schema_evol_orc_vec_mapwork_part_all_primitive.q.out index e29b357..336ab8d 100644 --- ql/src/test/results/clientpositive/schema_evol_orc_vec_mapwork_part_all_primitive.q.out +++ ql/src/test/results/clientpositive/schema_evol_orc_vec_mapwork_part_all_primitive.q.out @@ -201,6 +201,7 @@ POSTHOOK: Input: default@part_change_various_various_boolean POSTHOOK: Output: default@part_change_various_various_boolean PREHOOK: query: -- -- SUBSECTION: ALTER TABLE CHANGE COLUMNS for Various --> Various: (BOOLEAN, SHORT, INT, LONG, FLOAT, DOUBLE, DECIMAL, STRING, CHAR, VARCHAR, TIMESTAMP) --> BYTE +-- -128 and a maximum value of 127 -- CREATE TABLE part_change_various_various_tinyint(insert_num int, c1 BOOLEAN, c2 SMALLINT, c3 INT, c4 BIGINT, c5 FLOAT, c6 DOUBLE, c7 DECIMAL(38,18), c8 STRING, c9 CHAR(25), c10 VARCHAR(25), c11 TIMESTAMP, b STRING) PARTITIONED BY(part INT) PREHOOK: type: CREATETABLE @@ -208,24 +209,27 @@ PREHOOK: Output: database:default PREHOOK: Output: default@part_change_various_various_tinyint POSTHOOK: query: -- -- SUBSECTION: ALTER TABLE CHANGE COLUMNS for Various --> Various: (BOOLEAN, SHORT, INT, LONG, FLOAT, DOUBLE, DECIMAL, STRING, CHAR, VARCHAR, TIMESTAMP) --> BYTE +-- -128 and a maximum value of 127 -- CREATE TABLE part_change_various_various_tinyint(insert_num int, c1 BOOLEAN, c2 SMALLINT, c3 INT, c4 BIGINT, c5 FLOAT, c6 DOUBLE, c7 DECIMAL(38,18), c8 STRING, c9 CHAR(25), c10 VARCHAR(25), c11 TIMESTAMP, b STRING) PARTITIONED BY(part INT) POSTHOOK: type: CREATETABLE POSTHOOK: Output: database:default POSTHOOK: Output: default@part_change_various_various_tinyint PREHOOK: query: insert into table part_change_various_various_tinyint partition(part=1) - values(1, true, 2000, 72909, 3244222, -29.0764, 470614135, 470614135, '-2999', '-2999', '-2999', '0004-09-22 18:26:29.519542222', 'original'), - (2, 0, 1000, 483777, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), - (3, false, 72909, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '1', '1', '1', '6229-06-28 02:54:28.970117179', 'original'), - (4, 1, 90000, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '5299', '5299', '5299', '2002-05-10 05:29:48.990818073', 'original') + values(1, true, 2000, 72909, 3244222, -29.0764, 470614135, 470614135, '129', '-128', '-2999', '0004-09-22 18:26:29.519542222', 'original'), + (2, 0, -128, -48, -20, -9223372036854775808.0, -9223372036854775808.0, 9223372036854775807.0, '128', '-99', '40', '2007-02-09 05:17:29.368756876', 'original'), + (3, -1, -129, 100, 499, -9223372036854775809.0, -9223372036854775809.0, 9223372036854775808.0, '128', '-99', '40', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, -72, -127, 127, 30.774, 127.561431, -106.561431, '90.284799488', '90.284799488', '1', '6229-06-28 02:54:28.970117179', 'original'), + (5, 1, -90, 75, -38, 109.284799488 ,-128.75, 98.75, '120.4', '33.333', '0.45', '2002-05-10 05:29:48.990818073', 'original') PREHOOK: type: QUERY PREHOOK: Input: default@values__tmp__table__4 PREHOOK: Output: default@part_change_various_various_tinyint@part=1 POSTHOOK: query: insert into table part_change_various_various_tinyint partition(part=1) - values(1, true, 2000, 72909, 3244222, -29.0764, 470614135, 470614135, '-2999', '-2999', '-2999', '0004-09-22 18:26:29.519542222', 'original'), - (2, 0, 1000, 483777, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), - (3, false, 72909, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '1', '1', '1', '6229-06-28 02:54:28.970117179', 'original'), - (4, 1, 90000, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '5299', '5299', '5299', '2002-05-10 05:29:48.990818073', 'original') + values(1, true, 2000, 72909, 3244222, -29.0764, 470614135, 470614135, '129', '-128', '-2999', '0004-09-22 18:26:29.519542222', 'original'), + (2, 0, -128, -48, -20, -9223372036854775808.0, -9223372036854775808.0, 9223372036854775807.0, '128', '-99', '40', '2007-02-09 05:17:29.368756876', 'original'), + (3, -1, -129, 100, 499, -9223372036854775809.0, -9223372036854775809.0, 9223372036854775808.0, '128', '-99', '40', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, -72, -127, 127, 30.774, 127.561431, -106.561431, '90.284799488', '90.284799488', '1', '6229-06-28 02:54:28.970117179', 'original'), + (5, 1, -90, 75, -38, 109.284799488 ,-128.75, 98.75, '120.4', '33.333', '0.45', '2002-05-10 05:29:48.990818073', 'original') POSTHOOK: type: QUERY POSTHOOK: Input: default@values__tmp__table__4 POSTHOOK: Output: default@part_change_various_various_tinyint@part=1 @@ -254,10 +258,11 @@ POSTHOOK: Input: default@part_change_various_various_tinyint POSTHOOK: Input: default@part_change_various_various_tinyint@part=1 #### A masked pattern was here #### insert_num part c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 b -1 1 true 2000 72909 3244222 -29.0764 4.70614135E8 470614135.000000000000000000 -2999 -2999 -2999 0004-09-22 18:26:29.519542222 original -2 1 true 1000 483777 -23866739993 -3651.672 46114.284799488 46114.284799488000000000 2007-02-09 05:17:29.368756876 original -3 1 false NULL 3244222 -93222 30.774 -66475.561431 -66475.561431000000000000 1 1 1 6229-06-28 02:54:28.970117179 original -4 1 true NULL 754072151 3289094 46114.285 9250340.75 9250340.750000000000000000 5299 5299 5299 2002-05-10 05:29:48.990818073 original +1 1 true 2000 72909 3244222 -29.0764 4.70614135E8 470614135.000000000000000000 129 -128 -2999 0004-09-22 18:26:29.519542222 original +2 1 true -128 -48 -20 -9.223372E18 -9.223372036854776E18 9223372036854775807.000000000000000000 128 -99 40 2007-02-09 05:17:29.368756876 original +3 1 true -129 100 499 -9.223372E18 -9.223372036854776E18 9223372036854775808.000000000000000000 128 -99 40 2007-02-09 05:17:29.368756876 original +4 1 false -72 -127 127 30.774 127.561431 -106.561431000000000000 90.284799488 90.284799488 1 6229-06-28 02:54:28.970117179 original +5 1 true -90 75 -38 109.2848 -128.75 98.750000000000000000 120.4 33.333 0.45 2002-05-10 05:29:48.990818073 original PREHOOK: query: -- Table-Non-Cascade CHANGE COLUMNS ... alter table part_change_various_various_tinyint replace columns (insert_num int, c1 TINYINT, c2 TINYINT, c3 TINYINT, c4 TINYINT, c5 TINYINT, c6 TINYINT, c7 TINYINT, c8 TINYINT, c9 TINYINT, c10 TINYINT, c11 TINYINT, b STRING) PREHOOK: type: ALTERTABLE_REPLACECOLS @@ -269,12 +274,12 @@ POSTHOOK: type: ALTERTABLE_REPLACECOLS POSTHOOK: Input: default@part_change_various_various_tinyint POSTHOOK: Output: default@part_change_various_various_tinyint PREHOOK: query: insert into table part_change_various_various_tinyint partition(part=2) - values (5, 23, 71, 127, 1, 131, -60, 68, -230, -182, 40, 93, 'new') + values (6, 23, 71, 127, 1, 131, -60, 68, -230, -182, 40, 93, 'new') PREHOOK: type: QUERY PREHOOK: Input: default@values__tmp__table__5 PREHOOK: Output: default@part_change_various_various_tinyint@part=2 POSTHOOK: query: insert into table part_change_various_various_tinyint partition(part=2) - values (5, 23, 71, 127, 1, 131, -60, 68, -230, -182, 40, 93, 'new') + values (6, 23, 71, 127, 1, 131, -60, 68, -230, -182, 40, 93, 'new') POSTHOOK: type: QUERY POSTHOOK: Input: default@values__tmp__table__5 POSTHOOK: Output: default@part_change_various_various_tinyint@part=2 @@ -293,12 +298,12 @@ POSTHOOK: Lineage: part_change_various_various_tinyint PARTITION(part=2).c9 EXPR POSTHOOK: Lineage: part_change_various_various_tinyint PARTITION(part=2).insert_num EXPRESSION [(values__tmp__table__5)values__tmp__table__5.FieldSchema(name:tmp_values_col1, type:string, comment:), ] _col0 _col1 _col2 _col3 _col4 _col5 _col6 _col7 _col8 _col9 _col10 _col11 _col12 PREHOOK: query: insert into table part_change_various_various_tinyint partition(part=1) - values (6, -248, 85, -126, -167, 91, 113, -28, -63, 0, 8, 237, 'new') + values (7, -120, 85, -126, -167, 91, 113, -28, -63, 0, 8, 237, 'new') PREHOOK: type: QUERY PREHOOK: Input: default@values__tmp__table__6 PREHOOK: Output: default@part_change_various_various_tinyint@part=1 POSTHOOK: query: insert into table part_change_various_various_tinyint partition(part=1) - values (6, -248, 85, -126, -167, 91, 113, -28, -63, 0, 8, 237, 'new') + values (7, -120, 85, -126, -167, 91, 113, -28, -63, 0, 8, 237, 'new') POSTHOOK: type: QUERY POSTHOOK: Input: default@values__tmp__table__6 POSTHOOK: Output: default@part_change_various_various_tinyint@part=1 @@ -333,25 +338,25 @@ STAGE PLANS: Map Operator Tree: TableScan alias: part_change_various_various_tinyint - Statistics: Num rows: 6 Data size: 2482 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 3070 Basic stats: COMPLETE Column stats: NONE Select Operator expressions: insert_num (type: int), part (type: int), c1 (type: tinyint), c2 (type: tinyint), c3 (type: tinyint), c4 (type: tinyint), c5 (type: tinyint), c6 (type: tinyint), c7 (type: tinyint), c8 (type: tinyint), c9 (type: tinyint), c10 (type: tinyint), c11 (type: tinyint), b (type: string) outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6, _col7, _col8, _col9, _col10, _col11, _col12, _col13 - Statistics: Num rows: 6 Data size: 2482 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 3070 Basic stats: COMPLETE Column stats: NONE Reduce Output Operator key expressions: _col0 (type: int) sort order: + - Statistics: Num rows: 6 Data size: 2482 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 3070 Basic stats: COMPLETE Column stats: NONE value expressions: _col1 (type: int), _col2 (type: tinyint), _col3 (type: tinyint), _col4 (type: tinyint), _col5 (type: tinyint), _col6 (type: tinyint), _col7 (type: tinyint), _col8 (type: tinyint), _col9 (type: tinyint), _col10 (type: tinyint), _col11 (type: tinyint), _col12 (type: tinyint), _col13 (type: string) Execution mode: vectorized Reduce Operator Tree: Select Operator expressions: KEY.reducesinkkey0 (type: int), VALUE._col0 (type: int), VALUE._col1 (type: tinyint), VALUE._col2 (type: tinyint), VALUE._col3 (type: tinyint), VALUE._col4 (type: tinyint), VALUE._col5 (type: tinyint), VALUE._col6 (type: tinyint), VALUE._col7 (type: tinyint), VALUE._col8 (type: tinyint), VALUE._col9 (type: tinyint), VALUE._col10 (type: tinyint), VALUE._col11 (type: tinyint), VALUE._col12 (type: string) outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6, _col7, _col8, _col9, _col10, _col11, _col12, _col13 - Statistics: Num rows: 6 Data size: 2482 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 3070 Basic stats: COMPLETE Column stats: NONE File Output Operator compressed: false - Statistics: Num rows: 6 Data size: 2482 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 3070 Basic stats: COMPLETE Column stats: NONE table: input format: org.apache.hadoop.mapred.SequenceFileInputFormat output format: org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat @@ -376,12 +381,13 @@ POSTHOOK: Input: default@part_change_various_various_tinyint@part=1 POSTHOOK: Input: default@part_change_various_various_tinyint@part=2 #### A masked pattern was here #### insert_num part c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 b -1 1 1 -48 -51 -66 -29 119 119 73 73 73 -43 original -2 1 1 -24 -63 -25 -67 34 34 NULL NULL NULL 105 original -3 1 0 NULL -66 -38 30 85 85 1 1 1 84 original -4 1 1 NULL 87 6 34 36 36 -77 -77 -77 60 original -5 2 23 71 127 1 NULL -60 68 NULL NULL 40 93 new -6 1 NULL 85 -126 NULL 91 113 -28 -63 0 8 NULL new +1 1 1 NULL NULL NULL -29 NULL NULL NULL -128 NULL NULL original +2 1 1 -128 -48 -20 NULL NULL NULL NULL -99 40 NULL original +3 1 1 NULL 100 NULL NULL NULL NULL NULL -99 40 NULL original +4 1 0 -72 -127 127 30 127 -106 NULL NULL 1 NULL original +5 1 1 -90 75 -38 109 -128 98 NULL NULL NULL NULL original +6 2 23 71 127 1 NULL -60 68 NULL NULL 40 93 new +7 1 -120 85 -126 NULL 91 113 -28 -63 0 8 NULL new PREHOOK: query: drop table part_change_various_various_tinyint PREHOOK: type: DROPTABLE PREHOOK: Input: default@part_change_various_various_tinyint @@ -392,6 +398,7 @@ POSTHOOK: Input: default@part_change_various_various_tinyint POSTHOOK: Output: default@part_change_various_various_tinyint PREHOOK: query: -- -- SUBSECTION: ALTER TABLE CHANGE COLUMNS for Various --> Various: (BOOLEAN, TINYINT, INT, LONG, FLOAT, DOUBLE, DECIMAL, STRING, CHAR, VARCHAR, TIMESTAMP) --> SMALLINT +-- -32768 and a maximum value of 32767 -- CREATE TABLE part_change_various_various_smallint(insert_num int, c1 BOOLEAN, c2 TINYINT, c3 INT, c4 BIGINT, c5 FLOAT, c6 DOUBLE, c7 DECIMAL(38,18), c8 STRING, c9 CHAR(25), c10 VARCHAR(25), c11 TIMESTAMP, b STRING) PARTITIONED BY(part INT) PREHOOK: type: CREATETABLE @@ -399,6 +406,7 @@ PREHOOK: Output: database:default PREHOOK: Output: default@part_change_various_various_smallint POSTHOOK: query: -- -- SUBSECTION: ALTER TABLE CHANGE COLUMNS for Various --> Various: (BOOLEAN, TINYINT, INT, LONG, FLOAT, DOUBLE, DECIMAL, STRING, CHAR, VARCHAR, TIMESTAMP) --> SMALLINT +-- -32768 and a maximum value of 32767 -- CREATE TABLE part_change_various_various_smallint(insert_num int, c1 BOOLEAN, c2 TINYINT, c3 INT, c4 BIGINT, c5 FLOAT, c6 DOUBLE, c7 DECIMAL(38,18), c8 STRING, c9 CHAR(25), c10 VARCHAR(25), c11 TIMESTAMP, b STRING) PARTITIONED BY(part INT) POSTHOOK: type: CREATETABLE @@ -406,17 +414,19 @@ POSTHOOK: Output: database:default POSTHOOK: Output: default@part_change_various_various_smallint PREHOOK: query: insert into table part_change_various_various_smallint partition(part=1) values(1, -2999, 200, 72909, 3244222, -29.0764, 470614135, 470614135, '-2999', '-2999', '-2999', '0004-09-22 18:26:29.519542222', 'original'), - (2, 0, 100, 483777, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), - (3, false, 72, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '1', '1', '1', '6229-06-28 02:54:28.970117179', 'original'), - (4, 1, -90, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '5299', '5299', '5299', '2002-05-10 05:29:48.990818073', 'original') + (2, 0, 100, -32768 , 32767, -3651.672121, -9223372036854775808.0, 9223372036854775807.0, '9000', '32767', '-32768', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, -127, -40000 , 32768, -3651.672121, -9223372036854775809.0, 9223372036854775808.0, '9000', '32767', '-32768', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, 72, 32422, -9322, 30.774, -6675.561431, -6675.561431, '1', '1', '1', '6229-06-28 02:54:28.970117179', 'original'), + (5, 1, -90, 7151, 3094, 30000.284799488 ,-9000.75, 0.75, '5299', '5299', '5299', '2002-05-10 05:29:48.990818073', 'original') PREHOOK: type: QUERY PREHOOK: Input: default@values__tmp__table__7 PREHOOK: Output: default@part_change_various_various_smallint@part=1 POSTHOOK: query: insert into table part_change_various_various_smallint partition(part=1) values(1, -2999, 200, 72909, 3244222, -29.0764, 470614135, 470614135, '-2999', '-2999', '-2999', '0004-09-22 18:26:29.519542222', 'original'), - (2, 0, 100, 483777, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), - (3, false, 72, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '1', '1', '1', '6229-06-28 02:54:28.970117179', 'original'), - (4, 1, -90, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '5299', '5299', '5299', '2002-05-10 05:29:48.990818073', 'original') + (2, 0, 100, -32768 , 32767, -3651.672121, -9223372036854775808.0, 9223372036854775807.0, '9000', '32767', '-32768', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, -127, -40000 , 32768, -3651.672121, -9223372036854775809.0, 9223372036854775808.0, '9000', '32767', '-32768', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, 72, 32422, -9322, 30.774, -6675.561431, -6675.561431, '1', '1', '1', '6229-06-28 02:54:28.970117179', 'original'), + (5, 1, -90, 7151, 3094, 30000.284799488 ,-9000.75, 0.75, '5299', '5299', '5299', '2002-05-10 05:29:48.990818073', 'original') POSTHOOK: type: QUERY POSTHOOK: Input: default@values__tmp__table__7 POSTHOOK: Output: default@part_change_various_various_smallint@part=1 @@ -446,9 +456,10 @@ POSTHOOK: Input: default@part_change_various_various_smallint@part=1 #### A masked pattern was here #### insert_num part c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 b 1 1 true NULL 72909 3244222 -29.0764 4.70614135E8 470614135.000000000000000000 -2999 -2999 -2999 0004-09-22 18:26:29.519542222 original -2 1 true 100 483777 -23866739993 -3651.672 46114.284799488 46114.284799488000000000 2007-02-09 05:17:29.368756876 original -3 1 false 72 3244222 -93222 30.774 -66475.561431 -66475.561431000000000000 1 1 1 6229-06-28 02:54:28.970117179 original -4 1 true -90 754072151 3289094 46114.285 9250340.75 9250340.750000000000000000 5299 5299 5299 2002-05-10 05:29:48.990818073 original +2 1 true 100 -32768 32767 -3651.672 -9.223372036854776E18 9223372036854775807.000000000000000000 9000 32767 -32768 2007-02-09 05:17:29.368756876 original +3 1 true -127 -40000 32768 -3651.672 -9.223372036854776E18 9223372036854775808.000000000000000000 9000 32767 -32768 2007-02-09 05:17:29.368756876 original +4 1 false 72 32422 -9322 30.774 -6675.561431 -6675.561431000000000000 1 1 1 6229-06-28 02:54:28.970117179 original +5 1 true -90 7151 3094 30000.285 -9000.75 0.750000000000000000 5299 5299 5299 2002-05-10 05:29:48.990818073 original PREHOOK: query: -- Table-Non-Cascade CHANGE COLUMNS ... alter table part_change_various_various_smallint replace columns (insert_num int, c1 SMALLINT, c2 SMALLINT, c3 SMALLINT, c4 SMALLINT, c5 SMALLINT, c6 SMALLINT, c7 SMALLINT, c8 SMALLINT, c9 SMALLINT, c10 SMALLINT, c11 SMALLINT, b STRING) PREHOOK: type: ALTERTABLE_REPLACECOLS @@ -460,12 +471,12 @@ POSTHOOK: type: ALTERTABLE_REPLACECOLS POSTHOOK: Input: default@part_change_various_various_smallint POSTHOOK: Output: default@part_change_various_various_smallint PREHOOK: query: insert into table part_change_various_various_smallint partition(part=2) - values (5, -30486, 15230, 3117, 1, -117, -7131, 20227, -24858, -28771, 46114, 72909, 'new') + values (6, -30486, 15230, 3117, 1, -117, -7131, 20227, -24858, -28771, 46114, 72909, 'new') PREHOOK: type: QUERY PREHOOK: Input: default@values__tmp__table__8 PREHOOK: Output: default@part_change_various_various_smallint@part=2 POSTHOOK: query: insert into table part_change_various_various_smallint partition(part=2) - values (5, -30486, 15230, 3117, 1, -117, -7131, 20227, -24858, -28771, 46114, 72909, 'new') + values (6, -30486, 15230, 3117, 1, -117, -7131, 20227, -24858, -28771, 46114, 72909, 'new') POSTHOOK: type: QUERY POSTHOOK: Input: default@values__tmp__table__8 POSTHOOK: Output: default@part_change_various_various_smallint@part=2 @@ -484,12 +495,12 @@ POSTHOOK: Lineage: part_change_various_various_smallint PARTITION(part=2).c9 EXP POSTHOOK: Lineage: part_change_various_various_smallint PARTITION(part=2).insert_num EXPRESSION [(values__tmp__table__8)values__tmp__table__8.FieldSchema(name:tmp_values_col1, type:string, comment:), ] _col0 _col1 _col2 _col3 _col4 _col5 _col6 _col7 _col8 _col9 _col10 _col11 _col12 PREHOOK: query: insert into table part_change_various_various_smallint partition(part=1) - values (6, -10542, -1805, -4844, 15507, 91, 22385, -28, -12268, 0, 66475, 774, 'new') + values (7, -10542, -1805, -4844, 15507, 91, 22385, -28, -12268, 0, 66475, 774, 'new') PREHOOK: type: QUERY PREHOOK: Input: default@values__tmp__table__9 PREHOOK: Output: default@part_change_various_various_smallint@part=1 POSTHOOK: query: insert into table part_change_various_various_smallint partition(part=1) - values (6, -10542, -1805, -4844, 15507, 91, 22385, -28, -12268, 0, 66475, 774, 'new') + values (7, -10542, -1805, -4844, 15507, 91, 22385, -28, -12268, 0, 66475, 774, 'new') POSTHOOK: type: QUERY POSTHOOK: Input: default@values__tmp__table__9 POSTHOOK: Output: default@part_change_various_various_smallint@part=1 @@ -524,25 +535,25 @@ STAGE PLANS: Map Operator Tree: TableScan alias: part_change_various_various_smallint - Statistics: Num rows: 6 Data size: 2498 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 3074 Basic stats: COMPLETE Column stats: NONE Select Operator expressions: insert_num (type: int), part (type: int), c1 (type: smallint), c2 (type: smallint), c3 (type: smallint), c4 (type: smallint), c5 (type: smallint), c6 (type: smallint), c7 (type: smallint), c8 (type: smallint), c9 (type: smallint), c10 (type: smallint), c11 (type: smallint), b (type: string) outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6, _col7, _col8, _col9, _col10, _col11, _col12, _col13 - Statistics: Num rows: 6 Data size: 2498 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 3074 Basic stats: COMPLETE Column stats: NONE Reduce Output Operator key expressions: _col0 (type: int) sort order: + - Statistics: Num rows: 6 Data size: 2498 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 3074 Basic stats: COMPLETE Column stats: NONE value expressions: _col1 (type: int), _col2 (type: smallint), _col3 (type: smallint), _col4 (type: smallint), _col5 (type: smallint), _col6 (type: smallint), _col7 (type: smallint), _col8 (type: smallint), _col9 (type: smallint), _col10 (type: smallint), _col11 (type: smallint), _col12 (type: smallint), _col13 (type: string) Execution mode: vectorized Reduce Operator Tree: Select Operator expressions: KEY.reducesinkkey0 (type: int), VALUE._col0 (type: int), VALUE._col1 (type: smallint), VALUE._col2 (type: smallint), VALUE._col3 (type: smallint), VALUE._col4 (type: smallint), VALUE._col5 (type: smallint), VALUE._col6 (type: smallint), VALUE._col7 (type: smallint), VALUE._col8 (type: smallint), VALUE._col9 (type: smallint), VALUE._col10 (type: smallint), VALUE._col11 (type: smallint), VALUE._col12 (type: string) outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6, _col7, _col8, _col9, _col10, _col11, _col12, _col13 - Statistics: Num rows: 6 Data size: 2498 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 3074 Basic stats: COMPLETE Column stats: NONE File Output Operator compressed: false - Statistics: Num rows: 6 Data size: 2498 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 3074 Basic stats: COMPLETE Column stats: NONE table: input format: org.apache.hadoop.mapred.SequenceFileInputFormat output format: org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat @@ -567,12 +578,13 @@ POSTHOOK: Input: default@part_change_various_various_smallint@part=1 POSTHOOK: Input: default@part_change_various_various_smallint@part=2 #### A masked pattern was here #### insert_num part c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 b -1 1 1 NULL 7373 -32578 -29 119 119 -2999 -2999 -2999 -11819 original -2 1 1 100 25025 29415 -3651 -19422 -19422 NULL NULL NULL 29801 original -3 1 0 72 -32578 -27686 30 -939 -939 1 1 1 -8620 original -4 1 1 -90 14935 12294 -19422 9764 9764 5299 5299 5299 -17092 original -5 2 -30486 15230 3117 1 -117 -7131 20227 -24858 -28771 NULL NULL new -6 1 -10542 -1805 -4844 15507 91 22385 -28 -12268 0 NULL 774 new +1 1 1 NULL NULL NULL -29 NULL NULL -2999 -2999 -2999 NULL original +2 1 1 100 -32768 32767 -3651 NULL NULL 9000 32767 -32768 NULL original +3 1 1 -127 NULL NULL -3651 NULL NULL 9000 32767 -32768 NULL original +4 1 0 72 32422 -9322 30 -6675 -6675 1 1 1 NULL original +5 1 1 -90 7151 3094 30000 -9000 0 5299 5299 5299 NULL original +6 2 -30486 15230 3117 1 -117 -7131 20227 -24858 -28771 NULL NULL new +7 1 -10542 -1805 -4844 15507 91 22385 -28 -12268 0 NULL 774 new PREHOOK: query: drop table part_change_various_various_smallint PREHOOK: type: DROPTABLE PREHOOK: Input: default@part_change_various_various_smallint @@ -583,6 +595,7 @@ POSTHOOK: Input: default@part_change_various_various_smallint POSTHOOK: Output: default@part_change_various_various_smallint PREHOOK: query: -- -- SUBSECTION: ALTER TABLE CHANGE COLUMNS for Various --> Various: (BOOLEAN, TINYINT, SMALLINT, LONG, FLOAT, DOUBLE, DECIMAL, STRING, CHAR, VARCHAR, TIMESTAMP) --> INT +-- –2147483648 to 2147483647 -- CREATE TABLE part_change_various_various_int(insert_num int, c1 BOOLEAN, c2 TINYINT, c3 SMALLINT, c4 BIGINT, c5 FLOAT, c6 DOUBLE, c7 DECIMAL(38,18), c8 STRING, c9 CHAR(25), c10 VARCHAR(25), c11 TIMESTAMP, b STRING) PARTITIONED BY(part INT) PREHOOK: type: CREATETABLE @@ -590,6 +603,7 @@ PREHOOK: Output: database:default PREHOOK: Output: default@part_change_various_various_int POSTHOOK: query: -- -- SUBSECTION: ALTER TABLE CHANGE COLUMNS for Various --> Various: (BOOLEAN, TINYINT, SMALLINT, LONG, FLOAT, DOUBLE, DECIMAL, STRING, CHAR, VARCHAR, TIMESTAMP) --> INT +-- –2147483648 to 2147483647 -- CREATE TABLE part_change_various_various_int(insert_num int, c1 BOOLEAN, c2 TINYINT, c3 SMALLINT, c4 BIGINT, c5 FLOAT, c6 DOUBLE, c7 DECIMAL(38,18), c8 STRING, c9 CHAR(25), c10 VARCHAR(25), c11 TIMESTAMP, b STRING) PARTITIONED BY(part INT) POSTHOOK: type: CREATETABLE @@ -597,17 +611,19 @@ POSTHOOK: Output: database:default POSTHOOK: Output: default@part_change_various_various_int PREHOOK: query: insert into table part_change_various_various_int partition(part=1) values(1, -2999, 200, 72909, 3244222, -29.0764, 470614135, 470614135, '-2999', '-2999', '-2999', '0004-09-22 18:26:29.519542222', 'original'), - (2, 0, 100, 483777, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), - (3, false, 72, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '1', '1', '1', '6229-06-28 02:54:28.970117179', 'original'), - (4, 1, -90, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '5299', '5299', '5299', '2002-05-10 05:29:48.990818073', 'original') + (2, 0, 100, 2147483647, -23866739993, -3651.672121, -9223372036854775808.0, 9223372036854775807.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, 100, 2147483648, -23866739993, -3651.672121, -9223372036854775809.0, 9223372036854775808.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, 72, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '1', '1', '1', '6229-06-28 02:54:28.970117179', 'original'), + (5, 1, -90, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '5299', '5299', '5299', '2002-05-10 05:29:48.990818073', 'original') PREHOOK: type: QUERY PREHOOK: Input: default@values__tmp__table__10 PREHOOK: Output: default@part_change_various_various_int@part=1 POSTHOOK: query: insert into table part_change_various_various_int partition(part=1) values(1, -2999, 200, 72909, 3244222, -29.0764, 470614135, 470614135, '-2999', '-2999', '-2999', '0004-09-22 18:26:29.519542222', 'original'), - (2, 0, 100, 483777, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), - (3, false, 72, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '1', '1', '1', '6229-06-28 02:54:28.970117179', 'original'), - (4, 1, -90, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '5299', '5299', '5299', '2002-05-10 05:29:48.990818073', 'original') + (2, 0, 100, 2147483647, -23866739993, -3651.672121, -9223372036854775808.0, 9223372036854775807.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, 100, 2147483648, -23866739993, -3651.672121, -9223372036854775809.0, 9223372036854775808.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, 72, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '1', '1', '1', '6229-06-28 02:54:28.970117179', 'original'), + (5, 1, -90, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '5299', '5299', '5299', '2002-05-10 05:29:48.990818073', 'original') POSTHOOK: type: QUERY POSTHOOK: Input: default@values__tmp__table__10 POSTHOOK: Output: default@part_change_various_various_int@part=1 @@ -637,9 +653,10 @@ POSTHOOK: Input: default@part_change_various_various_int@part=1 #### A masked pattern was here #### insert_num part c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 b 1 1 true NULL NULL 3244222 -29.0764 4.70614135E8 470614135.000000000000000000 -2999 -2999 -2999 0004-09-22 18:26:29.519542222 original -2 1 true 100 NULL -23866739993 -3651.672 46114.284799488 46114.284799488000000000 2007-02-09 05:17:29.368756876 original -3 1 false 72 NULL -93222 30.774 -66475.561431 -66475.561431000000000000 1 1 1 6229-06-28 02:54:28.970117179 original -4 1 true -90 NULL 3289094 46114.285 9250340.75 9250340.750000000000000000 5299 5299 5299 2002-05-10 05:29:48.990818073 original +2 1 true 100 NULL -23866739993 -3651.672 -9.223372036854776E18 9223372036854775807.000000000000000000 2007-02-09 05:17:29.368756876 original +3 1 true 100 NULL -23866739993 -3651.672 -9.223372036854776E18 9223372036854775808.000000000000000000 2007-02-09 05:17:29.368756876 original +4 1 false 72 NULL -93222 30.774 -66475.561431 -66475.561431000000000000 1 1 1 6229-06-28 02:54:28.970117179 original +5 1 true -90 NULL 3289094 46114.285 9250340.75 9250340.750000000000000000 5299 5299 5299 2002-05-10 05:29:48.990818073 original PREHOOK: query: -- Table-Non-Cascade CHANGE COLUMNS ... alter table part_change_various_various_int replace columns (insert_num int, c1 INT, c2 INT, c3 INT, c4 INT, c5 INT, c6 INT, c7 INT, c8 INT, c9 INT, c10 INT, c11 INT, b STRING) PREHOOK: type: ALTERTABLE_REPLACECOLS @@ -715,25 +732,25 @@ STAGE PLANS: Map Operator Tree: TableScan alias: part_change_various_various_int - Statistics: Num rows: 6 Data size: 2494 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 3051 Basic stats: COMPLETE Column stats: NONE Select Operator expressions: insert_num (type: int), part (type: int), c1 (type: int), c2 (type: int), c3 (type: int), c4 (type: int), c5 (type: int), c6 (type: int), c7 (type: int), c8 (type: int), c9 (type: int), c10 (type: int), c11 (type: int), b (type: string) outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6, _col7, _col8, _col9, _col10, _col11, _col12, _col13 - Statistics: Num rows: 6 Data size: 2494 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 3051 Basic stats: COMPLETE Column stats: NONE Reduce Output Operator key expressions: _col0 (type: int) sort order: + - Statistics: Num rows: 6 Data size: 2494 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 3051 Basic stats: COMPLETE Column stats: NONE value expressions: _col1 (type: int), _col2 (type: int), _col3 (type: int), _col4 (type: int), _col5 (type: int), _col6 (type: int), _col7 (type: int), _col8 (type: int), _col9 (type: int), _col10 (type: int), _col11 (type: int), _col12 (type: int), _col13 (type: string) Execution mode: vectorized Reduce Operator Tree: Select Operator expressions: KEY.reducesinkkey0 (type: int), VALUE._col0 (type: int), VALUE._col1 (type: int), VALUE._col2 (type: int), VALUE._col3 (type: int), VALUE._col4 (type: int), VALUE._col5 (type: int), VALUE._col6 (type: int), VALUE._col7 (type: int), VALUE._col8 (type: int), VALUE._col9 (type: int), VALUE._col10 (type: int), VALUE._col11 (type: int), VALUE._col12 (type: string) outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6, _col7, _col8, _col9, _col10, _col11, _col12, _col13 - Statistics: Num rows: 6 Data size: 2494 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 3051 Basic stats: COMPLETE Column stats: NONE File Output Operator compressed: false - Statistics: Num rows: 6 Data size: 2494 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 3051 Basic stats: COMPLETE Column stats: NONE table: input format: org.apache.hadoop.mapred.SequenceFileInputFormat output format: org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat @@ -758,10 +775,11 @@ POSTHOOK: Input: default@part_change_various_various_int@part=1 POSTHOOK: Input: default@part_change_various_various_int@part=2 #### A masked pattern was here #### insert_num part c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 b -1 1 1 NULL NULL 3244222 -29 470614135 470614135 -2999 -2999 -2999 -1888628267 original -2 1 1 100 NULL 1903063783 -3651 46114 46114 NULL NULL NULL 1171027049 original -3 1 0 72 NULL -93222 30 -66475 -66475 1 1 1 1272503892 original -4 1 1 -90 NULL 3289094 46114 9250340 9250340 5299 5299 5299 1021033788 original +1 1 1 NULL NULL 3244222 -29 470614135 470614135 -2999 -2999 -2999 NULL original +2 1 1 100 NULL NULL -3651 NULL NULL NULL NULL NULL 1171027049 original +3 1 1 100 NULL NULL -3651 NULL NULL NULL NULL NULL 1171027049 original +4 1 0 72 NULL -93222 30 -66475 -66475 1 1 1 NULL original +5 1 1 -90 NULL 3289094 46114 9250340 9250340 5299 5299 5299 1021033788 original 5 2 560930 -1281818 127 1 84269672 -60 27094665 -36016110 -182 3244222 561431 new 6 1 -1928921 695025 -151775655 -167 91 113 -164341325 -134237413 0 6229 4422 new PREHOOK: query: drop table part_change_various_various_int @@ -774,6 +792,7 @@ POSTHOOK: Input: default@part_change_various_various_int POSTHOOK: Output: default@part_change_various_various_int PREHOOK: query: -- -- SUBSECTION: ALTER TABLE CHANGE COLUMNS for Various --> Various: (BOOLEAN, TINYINT, SMALLINT, INT, FLOAT, DOUBLE, DECIMAL, STRING, CHAR, VARCHAR, TIMESTAMP) --> BIGINT +-- -9223372036854775808 to 9223372036854775807 -- CREATE TABLE part_change_various_various_bigint(insert_num int, c1 BOOLEAN, c2 TINYINT, c3 SMALLINT, c4 INT, c5 FLOAT, c6 DOUBLE, c7 DECIMAL(38,18), c8 STRING, c9 CHAR(25), c10 VARCHAR(25), c11 TIMESTAMP, b STRING) PARTITIONED BY(part INT) PREHOOK: type: CREATETABLE @@ -781,6 +800,7 @@ PREHOOK: Output: database:default PREHOOK: Output: default@part_change_various_various_bigint POSTHOOK: query: -- -- SUBSECTION: ALTER TABLE CHANGE COLUMNS for Various --> Various: (BOOLEAN, TINYINT, SMALLINT, INT, FLOAT, DOUBLE, DECIMAL, STRING, CHAR, VARCHAR, TIMESTAMP) --> BIGINT +-- -9223372036854775808 to 9223372036854775807 -- CREATE TABLE part_change_various_various_bigint(insert_num int, c1 BOOLEAN, c2 TINYINT, c3 SMALLINT, c4 INT, c5 FLOAT, c6 DOUBLE, c7 DECIMAL(38,18), c8 STRING, c9 CHAR(25), c10 VARCHAR(25), c11 TIMESTAMP, b STRING) PARTITIONED BY(part INT) POSTHOOK: type: CREATETABLE @@ -788,17 +808,19 @@ POSTHOOK: Output: database:default POSTHOOK: Output: default@part_change_various_various_bigint PREHOOK: query: insert into table part_change_various_various_bigint partition(part=1) values(1, -2999, 200, 72909, 3244222, -29.0764, 470614135, 470614135, '-2999', '-2999', '-2999', '0004-09-22 18:26:29.519542222', 'original'), - (2, 0, 100, 483777, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), - (3, false, 72, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '1', '1', '1', '6229-06-28 02:54:28.970117179', 'original'), - (4, 1, -90, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '1998287.3541', '1998287.3541', '1998287.3541', '2002-05-10 05:29:48.990818073', 'original') + (2, 0, 100, 32767, -23372036854775, -3651.672121, -9223372036854775808.0, 9223372036854775807.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, 100, -32768, 23372036854775, -3651.672121, -9223372036854775809.0, 9223372036854775808.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, 72, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '1', '1', '1', '6229-06-28 02:54:28.970117179', 'original'), + (5, 1, -90, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '1998287.3541', '1998287.3541', '1998287.3541', '2002-05-10 05:29:48.990818073', 'original') PREHOOK: type: QUERY PREHOOK: Input: default@values__tmp__table__13 PREHOOK: Output: default@part_change_various_various_bigint@part=1 POSTHOOK: query: insert into table part_change_various_various_bigint partition(part=1) values(1, -2999, 200, 72909, 3244222, -29.0764, 470614135, 470614135, '-2999', '-2999', '-2999', '0004-09-22 18:26:29.519542222', 'original'), - (2, 0, 100, 483777, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), - (3, false, 72, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '1', '1', '1', '6229-06-28 02:54:28.970117179', 'original'), - (4, 1, -90, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '1998287.3541', '1998287.3541', '1998287.3541', '2002-05-10 05:29:48.990818073', 'original') + (2, 0, 100, 32767, -23372036854775, -3651.672121, -9223372036854775808.0, 9223372036854775807.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, 100, -32768, 23372036854775, -3651.672121, -9223372036854775809.0, 9223372036854775808.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, 72, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '1', '1', '1', '6229-06-28 02:54:28.970117179', 'original'), + (5, 1, -90, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '1998287.3541', '1998287.3541', '1998287.3541', '2002-05-10 05:29:48.990818073', 'original') POSTHOOK: type: QUERY POSTHOOK: Input: default@values__tmp__table__13 POSTHOOK: Output: default@part_change_various_various_bigint@part=1 @@ -828,9 +850,10 @@ POSTHOOK: Input: default@part_change_various_various_bigint@part=1 #### A masked pattern was here #### insert_num part c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 b 1 1 true NULL NULL 3244222 -29.0764 4.70614135E8 470614135.000000000000000000 -2999 -2999 -2999 0004-09-22 18:26:29.519542222 original -2 1 true 100 NULL NULL -3651.672 46114.284799488 46114.284799488000000000 2007-02-09 05:17:29.368756876 original -3 1 false 72 NULL -93222 30.774 -66475.561431 -66475.561431000000000000 1 1 1 6229-06-28 02:54:28.970117179 original -4 1 true -90 NULL 3289094 46114.285 9250340.75 9250340.750000000000000000 1998287.3541 1998287.3541 1998287.3541 2002-05-10 05:29:48.990818073 original +2 1 true 100 32767 NULL -3651.672 -9.223372036854776E18 9223372036854775807.000000000000000000 2007-02-09 05:17:29.368756876 original +3 1 true 100 -32768 NULL -3651.672 -9.223372036854776E18 9223372036854775808.000000000000000000 2007-02-09 05:17:29.368756876 original +4 1 false 72 NULL -93222 30.774 -66475.561431 -66475.561431000000000000 1 1 1 6229-06-28 02:54:28.970117179 original +5 1 true -90 NULL 3289094 46114.285 9250340.75 9250340.750000000000000000 1998287.3541 1998287.3541 1998287.3541 2002-05-10 05:29:48.990818073 original PREHOOK: query: -- Table-Non-Cascade CHANGE COLUMNS ... alter table part_change_various_various_bigint replace columns (insert_num int, c1 BIGINT, c2 BIGINT, c3 BIGINT, c4 BIGINT, c5 BIGINT, c6 BIGINT, c7 BIGINT, c8 BIGINT, c9 BIGINT, c10 BIGINT, c11 BIGINT, b STRING) PREHOOK: type: ALTERTABLE_REPLACECOLS @@ -842,12 +865,12 @@ POSTHOOK: type: ALTERTABLE_REPLACECOLS POSTHOOK: Input: default@part_change_various_various_bigint POSTHOOK: Output: default@part_change_various_various_bigint PREHOOK: query: insert into table part_change_various_various_bigint partition(part=2) - values (5, 5573199346255528403, 71, 151775655, 1, 131, -60, 6275638713485623898, -230, -695025, 519542222, -29.0764, 'new') + values (6, 5573199346255528403, 71, 151775655, 1, 131, -60, 6275638713485623898, -230, -695025, 519542222, -29.0764, 'new') PREHOOK: type: QUERY PREHOOK: Input: default@values__tmp__table__14 PREHOOK: Output: default@part_change_various_various_bigint@part=2 POSTHOOK: query: insert into table part_change_various_various_bigint partition(part=2) - values (5, 5573199346255528403, 71, 151775655, 1, 131, -60, 6275638713485623898, -230, -695025, 519542222, -29.0764, 'new') + values (6, 5573199346255528403, 71, 151775655, 1, 131, -60, 6275638713485623898, -230, -695025, 519542222, -29.0764, 'new') POSTHOOK: type: QUERY POSTHOOK: Input: default@values__tmp__table__14 POSTHOOK: Output: default@part_change_various_various_bigint@part=2 @@ -866,12 +889,12 @@ POSTHOOK: Lineage: part_change_various_various_bigint PARTITION(part=2).c9 EXPRE POSTHOOK: Lineage: part_change_various_various_bigint PARTITION(part=2).insert_num EXPRESSION [(values__tmp__table__14)values__tmp__table__14.FieldSchema(name:tmp_values_col1, type:string, comment:), ] _col0 _col1 _col2 _col3 _col4 _col5 _col6 _col7 _col8 _col9 _col10 _col11 _col12 PREHOOK: query: insert into table part_change_various_various_bigint partition(part=1) - values (6, -164341325, 9043162437544575070, -126, -6566204574741299000, 91, 113, -28, -63, 0, 3244222, -90, 'new') + values (7, -164341325, 9043162437544575070, -126, -6566204574741299000, 91, 113, -28, -63, 0, 3244222, -90, 'new') PREHOOK: type: QUERY PREHOOK: Input: default@values__tmp__table__15 PREHOOK: Output: default@part_change_various_various_bigint@part=1 POSTHOOK: query: insert into table part_change_various_various_bigint partition(part=1) - values (6, -164341325, 9043162437544575070, -126, -6566204574741299000, 91, 113, -28, -63, 0, 3244222, -90, 'new') + values (7, -164341325, 9043162437544575070, -126, -6566204574741299000, 91, 113, -28, -63, 0, 3244222, -90, 'new') POSTHOOK: type: QUERY POSTHOOK: Input: default@values__tmp__table__15 POSTHOOK: Output: default@part_change_various_various_bigint@part=1 @@ -906,25 +929,25 @@ STAGE PLANS: Map Operator Tree: TableScan alias: part_change_various_various_bigint - Statistics: Num rows: 6 Data size: 2578 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 3129 Basic stats: COMPLETE Column stats: NONE Select Operator expressions: insert_num (type: int), part (type: int), c1 (type: bigint), c2 (type: bigint), c3 (type: bigint), c4 (type: bigint), c5 (type: bigint), c6 (type: bigint), c7 (type: bigint), c8 (type: bigint), c9 (type: bigint), c10 (type: bigint), c11 (type: bigint), b (type: string) outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6, _col7, _col8, _col9, _col10, _col11, _col12, _col13 - Statistics: Num rows: 6 Data size: 2578 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 3129 Basic stats: COMPLETE Column stats: NONE Reduce Output Operator key expressions: _col0 (type: int) sort order: + - Statistics: Num rows: 6 Data size: 2578 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 3129 Basic stats: COMPLETE Column stats: NONE value expressions: _col1 (type: int), _col2 (type: bigint), _col3 (type: bigint), _col4 (type: bigint), _col5 (type: bigint), _col6 (type: bigint), _col7 (type: bigint), _col8 (type: bigint), _col9 (type: bigint), _col10 (type: bigint), _col11 (type: bigint), _col12 (type: bigint), _col13 (type: string) Execution mode: vectorized Reduce Operator Tree: Select Operator expressions: KEY.reducesinkkey0 (type: int), VALUE._col0 (type: int), VALUE._col1 (type: bigint), VALUE._col2 (type: bigint), VALUE._col3 (type: bigint), VALUE._col4 (type: bigint), VALUE._col5 (type: bigint), VALUE._col6 (type: bigint), VALUE._col7 (type: bigint), VALUE._col8 (type: bigint), VALUE._col9 (type: bigint), VALUE._col10 (type: bigint), VALUE._col11 (type: bigint), VALUE._col12 (type: string) outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6, _col7, _col8, _col9, _col10, _col11, _col12, _col13 - Statistics: Num rows: 6 Data size: 2578 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 3129 Basic stats: COMPLETE Column stats: NONE File Output Operator compressed: false - Statistics: Num rows: 6 Data size: 2578 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 3129 Basic stats: COMPLETE Column stats: NONE table: input format: org.apache.hadoop.mapred.SequenceFileInputFormat output format: org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat @@ -950,11 +973,12 @@ POSTHOOK: Input: default@part_change_various_various_bigint@part=2 #### A masked pattern was here #### insert_num part c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 b 1 1 1 NULL NULL 3244222 -29 470614135 470614135 -2999 -2999 -2999 -62018170411 original -2 1 1 100 NULL NULL -3651 46114 46114 NULL NULL NULL 1171027049 original -3 1 0 72 NULL -93222 30 -66475 -66475 1 1 1 134416490068 original -4 1 1 -90 NULL 3289094 46114 9250340 9250340 NULL NULL NULL 1021033788 original -5 2 5573199346255528403 71 151775655 1 131 -60 6275638713485623898 -230 -695025 519542222 -29 new -6 1 -164341325 9043162437544575070 -126 -6566204574741299000 91 113 -28 -63 0 3244222 -90 new +2 1 1 100 32767 NULL -3651 -9223372036854775808 9223372036854775807 NULL NULL NULL 1171027049 original +3 1 1 100 -32768 NULL -3651 -9223372036854775808 NULL NULL NULL NULL 1171027049 original +4 1 0 72 NULL -93222 30 -66475 -66475 1 1 1 134416490068 original +5 1 1 -90 NULL 3289094 46114 9250340 9250340 NULL NULL NULL 1021033788 original +6 2 5573199346255528403 71 151775655 1 131 -60 6275638713485623898 -230 -695025 519542222 -29 new +7 1 -164341325 9043162437544575070 -126 -6566204574741299000 91 113 -28 -63 0 3244222 -90 new PREHOOK: query: drop table part_change_various_various_bigint PREHOOK: type: DROPTABLE PREHOOK: Input: default@part_change_various_various_bigint @@ -979,17 +1003,19 @@ POSTHOOK: Output: database:default POSTHOOK: Output: default@part_change_various_various_float PREHOOK: query: insert into table part_change_various_various_float partition(part=1) values(1, -2999, 200, 72909, 3244222, -29.0764, 470614135, 470614135, '-2999', '-2999', '-2999', '0004-09-22 18:26:29.519542222', 'original'), - (2, 0, 100, 483777, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), - (3, false, 72, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '2402.3', '2402.3', '2402.3', '6229-06-28 02:54:28.970117179', 'original'), - (4, 1, -90, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '5299', '5299', '5299', '2002-05-10 05:29:48.990818073', 'original') + (2, 0, 100, 32767, -23372036854775, -3651.672121, -9223372036854775808.0, 9223372036854775807.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, 100, -32768, 23372036854775, -3651.672121, -9223372036854775809.0, 9223372036854775808.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, 72, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '2402.3', '2402.3', '2402.3', '6229-06-28 02:54:28.970117179', 'original'), + (5, 1, -90, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '5299', '5299', '5299', '2002-05-10 05:29:48.990818073', 'original') PREHOOK: type: QUERY PREHOOK: Input: default@values__tmp__table__16 PREHOOK: Output: default@part_change_various_various_float@part=1 POSTHOOK: query: insert into table part_change_various_various_float partition(part=1) values(1, -2999, 200, 72909, 3244222, -29.0764, 470614135, 470614135, '-2999', '-2999', '-2999', '0004-09-22 18:26:29.519542222', 'original'), - (2, 0, 100, 483777, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), - (3, false, 72, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '2402.3', '2402.3', '2402.3', '6229-06-28 02:54:28.970117179', 'original'), - (4, 1, -90, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '5299', '5299', '5299', '2002-05-10 05:29:48.990818073', 'original') + (2, 0, 100, 32767, -23372036854775, -3651.672121, -9223372036854775808.0, 9223372036854775807.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, 100, -32768, 23372036854775, -3651.672121, -9223372036854775809.0, 9223372036854775808.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, 72, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '2402.3', '2402.3', '2402.3', '6229-06-28 02:54:28.970117179', 'original'), + (5, 1, -90, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '5299', '5299', '5299', '2002-05-10 05:29:48.990818073', 'original') POSTHOOK: type: QUERY POSTHOOK: Input: default@values__tmp__table__16 POSTHOOK: Output: default@part_change_various_various_float@part=1 @@ -1019,9 +1045,10 @@ POSTHOOK: Input: default@part_change_various_various_float@part=1 #### A masked pattern was here #### insert_num part c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 b 1 1 true NULL NULL 3244222 -29 4.70614135E8 470614135.000000000000000000 -2999 -2999 -2999 0004-09-22 18:26:29.519542222 original -2 1 true 100 NULL NULL -3651 46114.284799488 46114.284799488000000000 2007-02-09 05:17:29.368756876 original -3 1 false 72 NULL -93222 30 -66475.561431 -66475.561431000000000000 2402.3 2402.3 2402.3 6229-06-28 02:54:28.970117179 original -4 1 true -90 NULL 3289094 46114 9250340.75 9250340.750000000000000000 5299 5299 5299 2002-05-10 05:29:48.990818073 original +2 1 true 100 32767 NULL -3651 -9.223372036854776E18 9223372036854775807.000000000000000000 2007-02-09 05:17:29.368756876 original +3 1 true 100 -32768 NULL -3651 -9.223372036854776E18 9223372036854775808.000000000000000000 2007-02-09 05:17:29.368756876 original +4 1 false 72 NULL -93222 30 -66475.561431 -66475.561431000000000000 2402.3 2402.3 2402.3 6229-06-28 02:54:28.970117179 original +5 1 true -90 NULL 3289094 46114 9250340.75 9250340.750000000000000000 5299 5299 5299 2002-05-10 05:29:48.990818073 original PREHOOK: query: -- Table-Non-Cascade CHANGE COLUMNS ... alter table part_change_various_various_float replace columns (insert_num int, c1 FLOAT, c2 FLOAT, c3 FLOAT, c4 FLOAT, c5 FLOAT, c6 FLOAT, c7 FLOAT, c8 FLOAT, c9 FLOAT, c10 FLOAT, c11 FLOAT, b STRING) PREHOOK: type: ALTERTABLE_REPLACECOLS @@ -1033,12 +1060,12 @@ POSTHOOK: type: ALTERTABLE_REPLACECOLS POSTHOOK: Input: default@part_change_various_various_float POSTHOOK: Output: default@part_change_various_various_float PREHOOK: query: insert into table part_change_various_various_float partition(part=2) - values (5, 953967041., 62.0791539559013466, 718.78, 1, 203.199548118, -60, 6275638713485623898, -230, -695025, -3651.67212, 46114.28, 'new') + values (6, 953967041., 62.0791539559013466, 718.78, 1, 203.199548118, -60, 6275638713485623898, -230, -695025, -3651.67212, 46114.28, 'new') PREHOOK: type: QUERY PREHOOK: Input: default@values__tmp__table__17 PREHOOK: Output: default@part_change_various_various_float@part=2 POSTHOOK: query: insert into table part_change_various_various_float partition(part=2) - values (5, 953967041., 62.0791539559013466, 718.78, 1, 203.199548118, -60, 6275638713485623898, -230, -695025, -3651.67212, 46114.28, 'new') + values (6, 953967041., 62.0791539559013466, 718.78, 1, 203.199548118, -60, 6275638713485623898, -230, -695025, -3651.67212, 46114.28, 'new') POSTHOOK: type: QUERY POSTHOOK: Input: default@values__tmp__table__17 POSTHOOK: Output: default@part_change_various_various_float@part=2 @@ -1057,12 +1084,12 @@ POSTHOOK: Lineage: part_change_various_various_float PARTITION(part=2).c9 EXPRES POSTHOOK: Lineage: part_change_various_various_float PARTITION(part=2).insert_num EXPRESSION [(values__tmp__table__17)values__tmp__table__17.FieldSchema(name:tmp_values_col1, type:string, comment:), ] _col0 _col1 _col2 _col3 _col4 _col5 _col6 _col7 _col8 _col9 _col10 _col11 _col12 PREHOOK: query: insert into table part_change_various_various_float partition(part=1) - values (6, -1255178165.77663, 9043162437544575070.974, -4314.7918, -1240033819, 91, 1698.95, -100.3597812, -63, 0, -93222.200, 29.076, 'new') + values (7, -1255178165.77663, 9043162437544575070.974, -4314.7918, -1240033819, 91, 1698.95, -100.3597812, -63, 0, -93222.200, 29.076, 'new') PREHOOK: type: QUERY PREHOOK: Input: default@values__tmp__table__18 PREHOOK: Output: default@part_change_various_various_float@part=1 POSTHOOK: query: insert into table part_change_various_various_float partition(part=1) - values (6, -1255178165.77663, 9043162437544575070.974, -4314.7918, -1240033819, 91, 1698.95, -100.3597812, -63, 0, -93222.200, 29.076, 'new') + values (7, -1255178165.77663, 9043162437544575070.974, -4314.7918, -1240033819, 91, 1698.95, -100.3597812, -63, 0, -93222.200, 29.076, 'new') POSTHOOK: type: QUERY POSTHOOK: Input: default@values__tmp__table__18 POSTHOOK: Output: default@part_change_various_various_float@part=1 @@ -1097,25 +1124,25 @@ STAGE PLANS: Map Operator Tree: TableScan alias: part_change_various_various_float - Statistics: Num rows: 6 Data size: 2498 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 3061 Basic stats: COMPLETE Column stats: NONE Select Operator expressions: insert_num (type: int), part (type: int), c1 (type: float), c2 (type: float), c3 (type: float), c4 (type: float), c5 (type: float), c6 (type: float), c7 (type: float), c8 (type: float), c9 (type: float), c10 (type: float), c11 (type: float), b (type: string) outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6, _col7, _col8, _col9, _col10, _col11, _col12, _col13 - Statistics: Num rows: 6 Data size: 2498 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 3061 Basic stats: COMPLETE Column stats: NONE Reduce Output Operator key expressions: _col0 (type: int) sort order: + - Statistics: Num rows: 6 Data size: 2498 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 3061 Basic stats: COMPLETE Column stats: NONE value expressions: _col1 (type: int), _col2 (type: float), _col3 (type: float), _col4 (type: float), _col5 (type: float), _col6 (type: float), _col7 (type: float), _col8 (type: float), _col9 (type: float), _col10 (type: float), _col11 (type: float), _col12 (type: float), _col13 (type: string) Execution mode: vectorized Reduce Operator Tree: Select Operator expressions: KEY.reducesinkkey0 (type: int), VALUE._col0 (type: int), VALUE._col1 (type: float), VALUE._col2 (type: float), VALUE._col3 (type: float), VALUE._col4 (type: float), VALUE._col5 (type: float), VALUE._col6 (type: float), VALUE._col7 (type: float), VALUE._col8 (type: float), VALUE._col9 (type: float), VALUE._col10 (type: float), VALUE._col11 (type: float), VALUE._col12 (type: string) outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6, _col7, _col8, _col9, _col10, _col11, _col12, _col13 - Statistics: Num rows: 6 Data size: 2498 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 3061 Basic stats: COMPLETE Column stats: NONE File Output Operator compressed: false - Statistics: Num rows: 6 Data size: 2498 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 3061 Basic stats: COMPLETE Column stats: NONE table: input format: org.apache.hadoop.mapred.SequenceFileInputFormat output format: org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat @@ -1141,11 +1168,12 @@ POSTHOOK: Input: default@part_change_various_various_float@part=2 #### A masked pattern was here #### insert_num part c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 b 1 1 1.0 NULL NULL 3244222.0 -29.0 4.70614144E8 4.70614144E8 -2999.0 -2999.0 -2999.0 -6.2018171E10 original -2 1 1.0 100.0 NULL NULL -3651.0 46114.285 46114.285 NULL NULL NULL 1.17102707E9 original -3 1 0.0 72.0 NULL -93222.0 30.0 -66475.56 -66475.56 2402.3 2402.3 2402.3 1.3441649E11 original -4 1 1.0 -90.0 NULL 3289094.0 46114.0 9250341.0 9250341.0 5299.0 5299.0 5299.0 1.02103379E9 original -5 2 9.5396704E8 62.079155 718.78 1.0 203.19955 -60.0 6.2756385E18 -230.0 -695025.0 -3651.672 46114.28 new -6 1 -1.25517811E9 9.0431626E18 -4314.792 -1.24003379E9 91.0 1698.95 -100.35978 -63.0 0.0 -93222.2 29.076 new +2 1 1.0 100.0 32767.0 NULL -3651.0 -9.223372E18 9.223372E18 NULL NULL NULL 1.17102707E9 original +3 1 1.0 100.0 -32768.0 NULL -3651.0 -9.223372E18 9.223372E18 NULL NULL NULL 1.17102707E9 original +4 1 0.0 72.0 NULL -93222.0 30.0 -66475.56 -66475.56 2402.3 2402.3 2402.3 1.3441649E11 original +5 1 1.0 -90.0 NULL 3289094.0 46114.0 9250341.0 9250341.0 5299.0 5299.0 5299.0 1.02103379E9 original +6 2 9.5396704E8 62.079155 718.78 1.0 203.19955 -60.0 6.2756385E18 -230.0 -695025.0 -3651.672 46114.28 new +7 1 -1.25517811E9 9.0431626E18 -4314.792 -1.24003379E9 91.0 1698.95 -100.35978 -63.0 0.0 -93222.2 29.076 new PREHOOK: query: drop table part_change_various_various_float PREHOOK: type: DROPTABLE PREHOOK: Input: default@part_change_various_various_float @@ -1170,17 +1198,19 @@ POSTHOOK: Output: database:default POSTHOOK: Output: default@part_change_various_various_double PREHOOK: query: insert into table part_change_various_various_double partition(part=1) values(1, -2999, 200, 72909, 3244222, -29.0764, 470614135, 470614135, '-2999', '-2999', '-2999', '0004-09-22 18:26:29.519542222', 'original'), - (2, 0, 100, 483777, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), - (3, false, 72, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '1', '1', '1', '6229-06-28 02:54:28.970117179', 'original'), - (4, 1, -90, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '5299', '5299', '5299', '2002-05-10 05:29:48.990818073', 'original') + (2, 0, 100, 32767, -23372036854775, -3651.672121, -9223372036854775808.0, 9223372036854775807.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, 100, -32768, 23372036854775, -3651.672121, -9223372036854775809.0, 9223372036854775808.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, 72, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '1', '1', '1', '6229-06-28 02:54:28.970117179', 'original'), + (5, 1, -90, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '5299', '5299', '5299', '2002-05-10 05:29:48.990818073', 'original') PREHOOK: type: QUERY PREHOOK: Input: default@values__tmp__table__19 PREHOOK: Output: default@part_change_various_various_double@part=1 POSTHOOK: query: insert into table part_change_various_various_double partition(part=1) values(1, -2999, 200, 72909, 3244222, -29.0764, 470614135, 470614135, '-2999', '-2999', '-2999', '0004-09-22 18:26:29.519542222', 'original'), - (2, 0, 100, 483777, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), - (3, false, 72, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '1', '1', '1', '6229-06-28 02:54:28.970117179', 'original'), - (4, 1, -90, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '5299', '5299', '5299', '2002-05-10 05:29:48.990818073', 'original') + (2, 0, 100, 32767, -23372036854775, -3651.672121, -9223372036854775808.0, 9223372036854775807.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, 100, -32768, 23372036854775, -3651.672121, -9223372036854775809.0, 9223372036854775808.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, 72, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '1', '1', '1', '6229-06-28 02:54:28.970117179', 'original'), + (5, 1, -90, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '5299', '5299', '5299', '2002-05-10 05:29:48.990818073', 'original') POSTHOOK: type: QUERY POSTHOOK: Input: default@values__tmp__table__19 POSTHOOK: Output: default@part_change_various_various_double@part=1 @@ -1210,9 +1240,10 @@ POSTHOOK: Input: default@part_change_various_various_double@part=1 #### A masked pattern was here #### insert_num part c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 b 1 1 true NULL NULL 3244222 -29 4.70614135E8 470614135.000000000000000000 -2999 -2999 -2999 0004-09-22 18:26:29.519542222 original -2 1 true 100 NULL NULL -3651 46114.284799488 46114.284799488000000000 2007-02-09 05:17:29.368756876 original -3 1 false 72 NULL -93222 30 -66475.561431 -66475.561431000000000000 1 1 1 6229-06-28 02:54:28.970117179 original -4 1 true -90 NULL 3289094 46114 9250340.75 9250340.750000000000000000 5299 5299 5299 2002-05-10 05:29:48.990818073 original +2 1 true 100 32767 NULL -3651 -9.223372036854776E18 9223372036854775807.000000000000000000 2007-02-09 05:17:29.368756876 original +3 1 true 100 -32768 NULL -3651 -9.223372036854776E18 9223372036854775808.000000000000000000 2007-02-09 05:17:29.368756876 original +4 1 false 72 NULL -93222 30 -66475.561431 -66475.561431000000000000 1 1 1 6229-06-28 02:54:28.970117179 original +5 1 true -90 NULL 3289094 46114 9250340.75 9250340.750000000000000000 5299 5299 5299 2002-05-10 05:29:48.990818073 original PREHOOK: query: -- Table-Non-Cascade CHANGE COLUMNS ... alter table part_change_various_various_double replace columns (insert_num int, c1 DOUBLE, c2 DOUBLE, c3 DOUBLE, c4 DOUBLE, c5 DOUBLE, c6 DOUBLE, c7 DOUBLE, c8 DOUBLE, c9 DOUBLE, c10 DOUBLE, c11 DOUBLE, b STRING) PREHOOK: type: ALTERTABLE_REPLACECOLS @@ -1224,12 +1255,12 @@ POSTHOOK: type: ALTERTABLE_REPLACECOLS POSTHOOK: Input: default@part_change_various_various_double POSTHOOK: Output: default@part_change_various_various_double PREHOOK: query: insert into table part_change_various_various_double partition(part=2) - values (5, 953967041., 62.0791539559013466, 718.78, 1, 203.199548118, -60, 6275638713485623898, -230, -695025, 0.00007011717, 4.28479948, 'new') + values (6, 953967041., 62.0791539559013466, 718.78, 1, 203.199548118, -60, 6275638713485623898, -230, -695025, 0.00007011717, 4.28479948, 'new') PREHOOK: type: QUERY PREHOOK: Input: default@values__tmp__table__20 PREHOOK: Output: default@part_change_various_various_double@part=2 POSTHOOK: query: insert into table part_change_various_various_double partition(part=2) - values (5, 953967041., 62.0791539559013466, 718.78, 1, 203.199548118, -60, 6275638713485623898, -230, -695025, 0.00007011717, 4.28479948, 'new') + values (6, 953967041., 62.0791539559013466, 718.78, 1, 203.199548118, -60, 6275638713485623898, -230, -695025, 0.00007011717, 4.28479948, 'new') POSTHOOK: type: QUERY POSTHOOK: Input: default@values__tmp__table__20 POSTHOOK: Output: default@part_change_various_various_double@part=2 @@ -1248,12 +1279,12 @@ POSTHOOK: Lineage: part_change_various_various_double PARTITION(part=2).c9 EXPRE POSTHOOK: Lineage: part_change_various_various_double PARTITION(part=2).insert_num EXPRESSION [(values__tmp__table__20)values__tmp__table__20.FieldSchema(name:tmp_values_col1, type:string, comment:), ] _col0 _col1 _col2 _col3 _col4 _col5 _col6 _col7 _col8 _col9 _col10 _col11 _col12 PREHOOK: query: insert into table part_change_various_various_double partition(part=1) - values (6, -1255178165.77663, 9043162437544575070.974, -4314.7918, -1240033819, 91, 1698.95, -100.3597812, -63, 0, -66475.0000008, -284799488.1, 'new') + values (7, -1255178165.77663, 9043162437544575070.974, -4314.7918, -1240033819, 91, 1698.95, -100.3597812, -63, 0, -66475.0000008, -284799488.1, 'new') PREHOOK: type: QUERY PREHOOK: Input: default@values__tmp__table__21 PREHOOK: Output: default@part_change_various_various_double@part=1 POSTHOOK: query: insert into table part_change_various_various_double partition(part=1) - values (6, -1255178165.77663, 9043162437544575070.974, -4314.7918, -1240033819, 91, 1698.95, -100.3597812, -63, 0, -66475.0000008, -284799488.1, 'new') + values (7, -1255178165.77663, 9043162437544575070.974, -4314.7918, -1240033819, 91, 1698.95, -100.3597812, -63, 0, -66475.0000008, -284799488.1, 'new') POSTHOOK: type: QUERY POSTHOOK: Input: default@values__tmp__table__21 POSTHOOK: Output: default@part_change_various_various_double@part=1 @@ -1288,25 +1319,25 @@ STAGE PLANS: Map Operator Tree: TableScan alias: part_change_various_various_double - Statistics: Num rows: 6 Data size: 2578 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 3139 Basic stats: COMPLETE Column stats: NONE Select Operator expressions: insert_num (type: int), part (type: int), c1 (type: double), c2 (type: double), c3 (type: double), c4 (type: double), c5 (type: double), c6 (type: double), c7 (type: double), c8 (type: double), c9 (type: double), c10 (type: double), c11 (type: double), b (type: string) outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6, _col7, _col8, _col9, _col10, _col11, _col12, _col13 - Statistics: Num rows: 6 Data size: 2578 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 3139 Basic stats: COMPLETE Column stats: NONE Reduce Output Operator key expressions: _col0 (type: int) sort order: + - Statistics: Num rows: 6 Data size: 2578 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 3139 Basic stats: COMPLETE Column stats: NONE value expressions: _col1 (type: int), _col2 (type: double), _col3 (type: double), _col4 (type: double), _col5 (type: double), _col6 (type: double), _col7 (type: double), _col8 (type: double), _col9 (type: double), _col10 (type: double), _col11 (type: double), _col12 (type: double), _col13 (type: string) Execution mode: vectorized Reduce Operator Tree: Select Operator expressions: KEY.reducesinkkey0 (type: int), VALUE._col0 (type: int), VALUE._col1 (type: double), VALUE._col2 (type: double), VALUE._col3 (type: double), VALUE._col4 (type: double), VALUE._col5 (type: double), VALUE._col6 (type: double), VALUE._col7 (type: double), VALUE._col8 (type: double), VALUE._col9 (type: double), VALUE._col10 (type: double), VALUE._col11 (type: double), VALUE._col12 (type: string) outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6, _col7, _col8, _col9, _col10, _col11, _col12, _col13 - Statistics: Num rows: 6 Data size: 2578 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 3139 Basic stats: COMPLETE Column stats: NONE File Output Operator compressed: false - Statistics: Num rows: 6 Data size: 2578 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 3139 Basic stats: COMPLETE Column stats: NONE table: input format: org.apache.hadoop.mapred.SequenceFileInputFormat output format: org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat @@ -1332,11 +1363,12 @@ POSTHOOK: Input: default@part_change_various_various_double@part=2 #### A masked pattern was here #### insert_num part c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 b 1 1 1.0 NULL NULL 3244222.0 -29.0 4.70614135E8 4.70614135E8 -2999.0 -2999.0 -2999.0 -6.201817041048046E10 original -2 1 1.0 100.0 NULL NULL -3651.0 46114.284799488 46114.284799488 NULL NULL NULL 1.1710270493687568E9 original -3 1 0.0 72.0 NULL -93222.0 30.0 -66475.561431 -66475.561431 1.0 1.0 1.0 1.3441649006897012E11 original -4 1 1.0 -90.0 NULL 3289094.0 46114.0 9250340.75 9250340.75 5299.0 5299.0 5299.0 1.021033788990818E9 original -5 2 9.53967041E8 62.07915395590135 718.78 1.0 203.199548118 -60.0 6.2756387134856243E18 -230.0 -695025.0 7.011717E-5 4.28479948 new -6 1 -1.25517816577663E9 9.043162437544575E18 -4314.7918 -1.240033819E9 91.0 1698.95 -100.3597812 -63.0 0.0 -66475.0000008 -2.847994881E8 new +2 1 1.0 100.0 32767.0 NULL -3651.0 -9.223372036854776E18 9.223372036854776E18 NULL NULL NULL 1.1710270493687568E9 original +3 1 1.0 100.0 -32768.0 NULL -3651.0 -9.223372036854776E18 9.223372036854776E18 NULL NULL NULL 1.1710270493687568E9 original +4 1 0.0 72.0 NULL -93222.0 30.0 -66475.561431 -66475.561431 1.0 1.0 1.0 1.3441649006897012E11 original +5 1 1.0 -90.0 NULL 3289094.0 46114.0 9250340.75 9250340.75 5299.0 5299.0 5299.0 1.021033788990818E9 original +6 2 9.53967041E8 62.07915395590135 718.78 1.0 203.199548118 -60.0 6.2756387134856243E18 -230.0 -695025.0 7.011717E-5 4.28479948 new +7 1 -1.25517816577663E9 9.043162437544575E18 -4314.7918 -1.240033819E9 91.0 1698.95 -100.3597812 -63.0 0.0 -66475.0000008 -2.847994881E8 new PREHOOK: query: drop table part_change_various_various_double PREHOOK: type: DROPTABLE PREHOOK: Input: default@part_change_various_various_double @@ -1361,17 +1393,19 @@ POSTHOOK: Output: database:default POSTHOOK: Output: default@part_change_various_various_decimal PREHOOK: query: insert into table part_change_various_various_decimal partition(part=1) values(1, -2999, 200, 72909, 3244222, -29.0764, 470614135, 470614135, '--1551801.09502', '--1551801.09502', '--1551801.09502', '0004-09-22 18:26:29.519542222', 'original'), - (2, 0, 100, 483777, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), - (3, false, 72, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '1', '1', '1', '6229-06-28 02:54:28.970117179', 'original'), - (4, 1, -90, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '2402.3', '2402.3', '2402.3', '2002-05-10 05:29:48.990818073', 'original') + (2, 0, 100, 32767, -23372036854775, -3651.672121, -9223372036854775808.0, 9223372036854775807.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, 100, -32768, 23372036854775, -3651.672121, -9223372036854775809.0, 9223372036854775808.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, 72, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '1', '1', '1', '6229-06-28 02:54:28.970117179', 'original'), + (5, 1, -90, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '2402.3', '2402.3', '2402.3', '2002-05-10 05:29:48.990818073', 'original') PREHOOK: type: QUERY PREHOOK: Input: default@values__tmp__table__22 PREHOOK: Output: default@part_change_various_various_decimal@part=1 POSTHOOK: query: insert into table part_change_various_various_decimal partition(part=1) values(1, -2999, 200, 72909, 3244222, -29.0764, 470614135, 470614135, '--1551801.09502', '--1551801.09502', '--1551801.09502', '0004-09-22 18:26:29.519542222', 'original'), - (2, 0, 100, 483777, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), - (3, false, 72, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '1', '1', '1', '6229-06-28 02:54:28.970117179', 'original'), - (4, 1, -90, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '2402.3', '2402.3', '2402.3', '2002-05-10 05:29:48.990818073', 'original') + (2, 0, 100, 32767, -23372036854775, -3651.672121, -9223372036854775808.0, 9223372036854775807.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, 100, -32768, 23372036854775, -3651.672121, -9223372036854775809.0, 9223372036854775808.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, 72, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '1', '1', '1', '6229-06-28 02:54:28.970117179', 'original'), + (5, 1, -90, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '2402.3', '2402.3', '2402.3', '2002-05-10 05:29:48.990818073', 'original') POSTHOOK: type: QUERY POSTHOOK: Input: default@values__tmp__table__22 POSTHOOK: Output: default@part_change_various_various_decimal@part=1 @@ -1401,9 +1435,10 @@ POSTHOOK: Input: default@part_change_various_various_decimal@part=1 #### A masked pattern was here #### insert_num part c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 b 1 1 true NULL NULL 3244222 -29 4.70614144E8 4.70614135E8 --1551801.09502 --1551801.09502 --1551801.09502 0004-09-22 18:26:29.519542222 original -2 1 true 100 NULL NULL -3651 46114.285 46114.284799488 2007-02-09 05:17:29.368756876 original -3 1 false 72 NULL -93222 30 -66475.56 -66475.561431 1 1 1 6229-06-28 02:54:28.970117179 original -4 1 true -90 NULL 3289094 46114 9250341.0 9250340.75 2402.3 2402.3 2402.3 2002-05-10 05:29:48.990818073 original +2 1 true 100 32767 NULL -3651 -9.223372E18 9.223372036854776E18 2007-02-09 05:17:29.368756876 original +3 1 true 100 -32768 NULL -3651 -9.223372E18 9.223372036854776E18 2007-02-09 05:17:29.368756876 original +4 1 false 72 NULL -93222 30 -66475.56 -66475.561431 1 1 1 6229-06-28 02:54:28.970117179 original +5 1 true -90 NULL 3289094 46114 9250341.0 9250340.75 2402.3 2402.3 2402.3 2002-05-10 05:29:48.990818073 original PREHOOK: query: -- Table-Non-Cascade CHANGE COLUMNS ... alter table part_change_various_various_decimal replace columns (insert_num int, c1 DECIMAL(38,18), c2 DECIMAL(38,18), c3 DECIMAL(38,18), c4 DECIMAL(38,18), c5 DECIMAL(38,18), c6 DECIMAL(38,18), c7 DECIMAL(38,18), c8 DECIMAL(38,18), c9 DECIMAL(38,18), c10 DECIMAL(38,18), c11 DECIMAL(38,18), b STRING) PREHOOK: type: ALTERTABLE_REPLACECOLS @@ -1415,12 +1450,12 @@ POSTHOOK: type: ALTERTABLE_REPLACECOLS POSTHOOK: Input: default@part_change_various_various_decimal POSTHOOK: Output: default@part_change_various_various_decimal PREHOOK: query: insert into table part_change_various_various_decimal partition(part=2) - values (5, 953967041., 62.0791539559013466, 718.78, 1, 203.199548118, -60, 6275638713485623898, -230, -695025, 0.00007011717, 4.28479948, 'new') + values (6, 953967041., 62.0791539559013466, 718.78, 1, 203.199548118, -60, 6275638713485623898, -230, -695025, 0.00007011717, 4.28479948, 'new') PREHOOK: type: QUERY PREHOOK: Input: default@values__tmp__table__23 PREHOOK: Output: default@part_change_various_various_decimal@part=2 POSTHOOK: query: insert into table part_change_various_various_decimal partition(part=2) - values (5, 953967041., 62.0791539559013466, 718.78, 1, 203.199548118, -60, 6275638713485623898, -230, -695025, 0.00007011717, 4.28479948, 'new') + values (6, 953967041., 62.0791539559013466, 718.78, 1, 203.199548118, -60, 6275638713485623898, -230, -695025, 0.00007011717, 4.28479948, 'new') POSTHOOK: type: QUERY POSTHOOK: Input: default@values__tmp__table__23 POSTHOOK: Output: default@part_change_various_various_decimal@part=2 @@ -1439,12 +1474,12 @@ POSTHOOK: Lineage: part_change_various_various_decimal PARTITION(part=2).c9 EXPR POSTHOOK: Lineage: part_change_various_various_decimal PARTITION(part=2).insert_num EXPRESSION [(values__tmp__table__23)values__tmp__table__23.FieldSchema(name:tmp_values_col1, type:string, comment:), ] _col0 _col1 _col2 _col3 _col4 _col5 _col6 _col7 _col8 _col9 _col10 _col11 _col12 PREHOOK: query: insert into table part_change_various_various_decimal partition(part=1) - values (6,-1255178165.77663, 9043162437544575070.974, -4314.7918, -1240033819, 91, 1698.95, -100.3597812, -63, 0, -66475.0000008, -284799488.1, 'new') + values (7,-1255178165.77663, 9043162437544575070.974, -4314.7918, -1240033819, 91, 1698.95, -100.3597812, -63, 0, -66475.0000008, -284799488.1, 'new') PREHOOK: type: QUERY PREHOOK: Input: default@values__tmp__table__24 PREHOOK: Output: default@part_change_various_various_decimal@part=1 POSTHOOK: query: insert into table part_change_various_various_decimal partition(part=1) - values (6,-1255178165.77663, 9043162437544575070.974, -4314.7918, -1240033819, 91, 1698.95, -100.3597812, -63, 0, -66475.0000008, -284799488.1, 'new') + values (7,-1255178165.77663, 9043162437544575070.974, -4314.7918, -1240033819, 91, 1698.95, -100.3597812, -63, 0, -66475.0000008, -284799488.1, 'new') POSTHOOK: type: QUERY POSTHOOK: Input: default@values__tmp__table__24 POSTHOOK: Output: default@part_change_various_various_decimal@part=1 @@ -1479,25 +1514,25 @@ STAGE PLANS: Map Operator Tree: TableScan alias: part_change_various_various_decimal - Statistics: Num rows: 6 Data size: 4458 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 4907 Basic stats: COMPLETE Column stats: NONE Select Operator expressions: insert_num (type: int), part (type: int), c1 (type: decimal(38,18)), c2 (type: decimal(38,18)), c3 (type: decimal(38,18)), c4 (type: decimal(38,18)), c5 (type: decimal(38,18)), c6 (type: decimal(38,18)), c7 (type: decimal(38,18)), c8 (type: decimal(38,18)), c9 (type: decimal(38,18)), c10 (type: decimal(38,18)), c11 (type: decimal(38,18)), b (type: string) outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6, _col7, _col8, _col9, _col10, _col11, _col12, _col13 - Statistics: Num rows: 6 Data size: 4458 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 4907 Basic stats: COMPLETE Column stats: NONE Reduce Output Operator key expressions: _col0 (type: int) sort order: + - Statistics: Num rows: 6 Data size: 4458 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 4907 Basic stats: COMPLETE Column stats: NONE value expressions: _col1 (type: int), _col2 (type: decimal(38,18)), _col3 (type: decimal(38,18)), _col4 (type: decimal(38,18)), _col5 (type: decimal(38,18)), _col6 (type: decimal(38,18)), _col7 (type: decimal(38,18)), _col8 (type: decimal(38,18)), _col9 (type: decimal(38,18)), _col10 (type: decimal(38,18)), _col11 (type: decimal(38,18)), _col12 (type: decimal(38,18)), _col13 (type: string) Execution mode: vectorized Reduce Operator Tree: Select Operator expressions: KEY.reducesinkkey0 (type: int), VALUE._col0 (type: int), VALUE._col1 (type: decimal(38,18)), VALUE._col2 (type: decimal(38,18)), VALUE._col3 (type: decimal(38,18)), VALUE._col4 (type: decimal(38,18)), VALUE._col5 (type: decimal(38,18)), VALUE._col6 (type: decimal(38,18)), VALUE._col7 (type: decimal(38,18)), VALUE._col8 (type: decimal(38,18)), VALUE._col9 (type: decimal(38,18)), VALUE._col10 (type: decimal(38,18)), VALUE._col11 (type: decimal(38,18)), VALUE._col12 (type: string) outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6, _col7, _col8, _col9, _col10, _col11, _col12, _col13 - Statistics: Num rows: 6 Data size: 4458 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 4907 Basic stats: COMPLETE Column stats: NONE File Output Operator compressed: false - Statistics: Num rows: 6 Data size: 4458 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 4907 Basic stats: COMPLETE Column stats: NONE table: input format: org.apache.hadoop.mapred.SequenceFileInputFormat output format: org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat @@ -1523,11 +1558,12 @@ POSTHOOK: Input: default@part_change_various_various_decimal@part=2 #### A masked pattern was here #### insert_num part c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 b 1 1 1.000000000000000000 NULL NULL 3244222.000000000000000000 -29.000000000000000000 470614144.000000000000000000 470614135.000000000000000000 NULL NULL NULL -62018170410.480460000000000000 original -2 1 1.000000000000000000 100.000000000000000000 NULL NULL -3651.000000000000000000 46114.285000000000000000 46114.284799488000000000 NULL NULL NULL 1171027049.368756800000000000 original -3 1 0.000000000000000000 72.000000000000000000 NULL -93222.000000000000000000 30.000000000000000000 -66475.560000000000000000 -66475.561431000000000000 1.000000000000000000 1.000000000000000000 1.000000000000000000 134416490068.970120000000000000 original -4 1 1.000000000000000000 -90.000000000000000000 NULL 3289094.000000000000000000 46114.000000000000000000 9250341.000000000000000000 9250340.750000000000000000 2402.300000000000000000 2402.300000000000000000 2402.300000000000000000 1021033788.990818000000000000 original -5 2 953967041.000000000000000000 62.079153955901346600 718.780000000000000000 1.000000000000000000 203.199548118000000000 -60.000000000000000000 6275638713485623898.000000000000000000 -230.000000000000000000 -695025.000000000000000000 0.000070117170000000 4.284799480000000000 new -6 1 -1255178165.776630000000000000 9043162437544575070.974000000000000000 -4314.791800000000000000 -1240033819.000000000000000000 91.000000000000000000 1698.950000000000000000 -100.359781200000000000 -63.000000000000000000 0.000000000000000000 -66475.000000800000000000 -284799488.100000000000000000 new +2 1 1.000000000000000000 100.000000000000000000 32767.000000000000000000 NULL -3651.000000000000000000 -9223372000000000000.000000000000000000 9223372036854776000.000000000000000000 NULL NULL NULL 1171027049.368756800000000000 original +3 1 1.000000000000000000 100.000000000000000000 -32768.000000000000000000 NULL -3651.000000000000000000 -9223372000000000000.000000000000000000 9223372036854776000.000000000000000000 NULL NULL NULL 1171027049.368756800000000000 original +4 1 0.000000000000000000 72.000000000000000000 NULL -93222.000000000000000000 30.000000000000000000 -66475.560000000000000000 -66475.561431000000000000 1.000000000000000000 1.000000000000000000 1.000000000000000000 134416490068.970120000000000000 original +5 1 1.000000000000000000 -90.000000000000000000 NULL 3289094.000000000000000000 46114.000000000000000000 9250341.000000000000000000 9250340.750000000000000000 2402.300000000000000000 2402.300000000000000000 2402.300000000000000000 1021033788.990818000000000000 original +6 2 953967041.000000000000000000 62.079153955901346600 718.780000000000000000 1.000000000000000000 203.199548118000000000 -60.000000000000000000 6275638713485623898.000000000000000000 -230.000000000000000000 -695025.000000000000000000 0.000070117170000000 4.284799480000000000 new +7 1 -1255178165.776630000000000000 9043162437544575070.974000000000000000 -4314.791800000000000000 -1240033819.000000000000000000 91.000000000000000000 1698.950000000000000000 -100.359781200000000000 -63.000000000000000000 0.000000000000000000 -66475.000000800000000000 -284799488.100000000000000000 new PREHOOK: query: drop table part_change_various_various_decimal PREHOOK: type: DROPTABLE PREHOOK: Input: default@part_change_various_various_decimal @@ -1552,17 +1588,19 @@ POSTHOOK: Output: database:default POSTHOOK: Output: default@part_change_various_various_string PREHOOK: query: insert into table part_change_various_various_string partition(part=1) values(1, true, 200, 72909, 3244222, -99999999999, -29.0764, 470614135, 470614135, 'dynamic reptile ', 'dynamic reptile ', '0004-09-22 18:26:29.519542222', '2007-02-09', 'binary', 'original'), - (2, 0, 100, 483777, 14, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, ' baffling ', ' baffling ', '2007-02-09 05:17:29.368756876', '0004-09-22', 'binary', 'original'), - (3, false, 72, 3244222, -93222, 30.774, - 66475.561431, -66475.561431, 0.561431, '1', '1', '6229-06-28 02:54:28.970117179', '5966-07-09', 'binary', 'original'), - (4, 1, -90, 754072151, 3289094, 46114.284799488, 9250340.75, 9250340.75, 9250340.75, 'junkyard', 'junkyard', '2002-05-10 05:29:48.990818073', '1815-05-06', 'binary', 'original') + (2, 0, 100, 32767, -23372036854775, -3651.672121, -9223372036854775808.0, 9223372036854775807.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, 100, -32768, 23372036854775, -3651.672121, -9223372036854775809.0, 9223372036854775808.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, 72, 3244222, -93222, 30.774, - 66475.561431, -66475.561431, 0.561431, '1', '1', '6229-06-28 02:54:28.970117179', '5966-07-09', 'binary', 'original'), + (5, 1, -90, 754072151, 3289094, 46114.284799488, 9250340.75, 9250340.75, 9250340.75, 'junkyard', 'junkyard', '2002-05-10 05:29:48.990818073', '1815-05-06', 'binary', 'original') PREHOOK: type: QUERY PREHOOK: Input: default@values__tmp__table__25 PREHOOK: Output: default@part_change_various_various_string@part=1 POSTHOOK: query: insert into table part_change_various_various_string partition(part=1) values(1, true, 200, 72909, 3244222, -99999999999, -29.0764, 470614135, 470614135, 'dynamic reptile ', 'dynamic reptile ', '0004-09-22 18:26:29.519542222', '2007-02-09', 'binary', 'original'), - (2, 0, 100, 483777, 14, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, ' baffling ', ' baffling ', '2007-02-09 05:17:29.368756876', '0004-09-22', 'binary', 'original'), - (3, false, 72, 3244222, -93222, 30.774, - 66475.561431, -66475.561431, 0.561431, '1', '1', '6229-06-28 02:54:28.970117179', '5966-07-09', 'binary', 'original'), - (4, 1, -90, 754072151, 3289094, 46114.284799488, 9250340.75, 9250340.75, 9250340.75, 'junkyard', 'junkyard', '2002-05-10 05:29:48.990818073', '1815-05-06', 'binary', 'original') + (2, 0, 100, 32767, -23372036854775, -3651.672121, -9223372036854775808.0, 9223372036854775807.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, 100, -32768, 23372036854775, -3651.672121, -9223372036854775809.0, 9223372036854775808.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, 72, 3244222, -93222, 30.774, - 66475.561431, -66475.561431, 0.561431, '1', '1', '6229-06-28 02:54:28.970117179', '5966-07-09', 'binary', 'original'), + (5, 1, -90, 754072151, 3289094, 46114.284799488, 9250340.75, 9250340.75, 9250340.75, 'junkyard', 'junkyard', '2002-05-10 05:29:48.990818073', '1815-05-06', 'binary', 'original') POSTHOOK: type: QUERY POSTHOOK: Input: default@values__tmp__table__25 POSTHOOK: Output: default@part_change_various_various_string@part=1 @@ -1594,9 +1632,10 @@ POSTHOOK: Input: default@part_change_various_various_string@part=1 #### A masked pattern was here #### insert_num part c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 c12 c13 b 1 1 true NULL NULL 3244222 -99999999999 -29.0764 4.70614135E8 470614135.000000000000000000 dynamic reptile dynamic reptile 0004-09-22 18:26:29.519542222 2007-02-09 binary original -2 1 true 100 NULL 14 -23866739993 -3651.672 46114.284799488 46114.284799488000000000 baffling baffling 2007-02-09 05:17:29.368756876 0004-09-22 binary original -3 1 false 72 NULL -93222 30 -66475.56 -66475.561431 0.561431000000000000 1 1 6229-06-28 02:54:28.970117179 5966-07-09 binary original -4 1 true -90 NULL 3289094 46114 9250341.0 9250340.75 9250340.750000000000000000 junkyard junkyard 2002-05-10 05:29:48.990818073 1815-05-06 binary original +2 1 true 100 32767 NULL -3651 -9.223372E18 9.223372036854776E18 NULL 2007-02-09 05:17:29.368756876 NULL NULL NULL +3 1 true 100 -32768 NULL -3651 -9.223372E18 9.223372036854776E18 NULL 2007-02-09 05:17:29.368756876 NULL NULL NULL +4 1 false 72 NULL -93222 30 -66475.56 -66475.561431 0.561431000000000000 1 1 6229-06-28 02:54:28.970117179 5966-07-09 binary original +5 1 true -90 NULL 3289094 46114 9250341.0 9250340.75 9250340.750000000000000000 junkyard junkyard 2002-05-10 05:29:48.990818073 1815-05-06 binary original PREHOOK: query: -- Table-Non-Cascade CHANGE COLUMNS ... alter table part_change_various_various_string replace columns (insert_num int, c1 STRING, c2 STRING, c3 STRING, c4 STRING, c5 STRING, c6 STRING, c7 STRING, c8 STRING, c9 STRING, c10 STRING, c11 STRING, c12 STRING, c13 STRING, b STRING) PREHOOK: type: ALTERTABLE_REPLACECOLS @@ -1608,12 +1647,12 @@ POSTHOOK: type: ALTERTABLE_REPLACECOLS POSTHOOK: Input: default@part_change_various_various_string POSTHOOK: Output: default@part_change_various_various_string PREHOOK: query: insert into table part_change_various_various_string partition(part=2) - values (5, 'true', '400', '44388', -'100', '953967041.', '62.079153', '718.78', '1', 'verdict', 'verdict', 'timestamp', 'date', 'binary', 'new') + values (6, 'true', '400', '44388', -'100', '953967041.', '62.079153', '718.78', '1', 'verdict', 'verdict', 'timestamp', 'date', 'binary', 'new') PREHOOK: type: QUERY PREHOOK: Input: default@values__tmp__table__26 PREHOOK: Output: default@part_change_various_various_string@part=2 POSTHOOK: query: insert into table part_change_various_various_string partition(part=2) - values (5, 'true', '400', '44388', -'100', '953967041.', '62.079153', '718.78', '1', 'verdict', 'verdict', 'timestamp', 'date', 'binary', 'new') + values (6, 'true', '400', '44388', -'100', '953967041.', '62.079153', '718.78', '1', 'verdict', 'verdict', 'timestamp', 'date', 'binary', 'new') POSTHOOK: type: QUERY POSTHOOK: Input: default@values__tmp__table__26 POSTHOOK: Output: default@part_change_various_various_string@part=2 @@ -1634,12 +1673,12 @@ POSTHOOK: Lineage: part_change_various_various_string PARTITION(part=2).c9 SIMPL POSTHOOK: Lineage: part_change_various_various_string PARTITION(part=2).insert_num EXPRESSION [(values__tmp__table__26)values__tmp__table__26.FieldSchema(name:tmp_values_col1, type:string, comment:), ] _col0 _col1 _col2 _col3 _col4 _col5 _col6 _col7 _col8 _col9 _col10 _col11 _col12 _col13 _col14 PREHOOK: query: insert into table part_change_various_various_string partition(part=1) - values (6,-'false', '-67', '833', '63993', ' 1255178165.77663', '905070.974', '-4314.7918', -'1240033819', 'trial', 'trial', '2016-03-07 03:02:22.0', '2016-03-07', 'binary', 'new') + values (7,-'false', '-67', '833', '63993', ' 1255178165.77663', '905070.974', '-4314.7918', -'1240033819', 'trial', 'trial', '2016-03-07 03:02:22.0', '2016-03-07', 'binary', 'new') PREHOOK: type: QUERY PREHOOK: Input: default@values__tmp__table__27 PREHOOK: Output: default@part_change_various_various_string@part=1 POSTHOOK: query: insert into table part_change_various_various_string partition(part=1) - values (6,-'false', '-67', '833', '63993', ' 1255178165.77663', '905070.974', '-4314.7918', -'1240033819', 'trial', 'trial', '2016-03-07 03:02:22.0', '2016-03-07', 'binary', 'new') + values (7,-'false', '-67', '833', '63993', ' 1255178165.77663', '905070.974', '-4314.7918', -'1240033819', 'trial', 'trial', '2016-03-07 03:02:22.0', '2016-03-07', 'binary', 'new') POSTHOOK: type: QUERY POSTHOOK: Input: default@values__tmp__table__27 POSTHOOK: Output: default@part_change_various_various_string@part=1 @@ -1676,25 +1715,25 @@ STAGE PLANS: Map Operator Tree: TableScan alias: part_change_various_various_string - Statistics: Num rows: 6 Data size: 4729 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 4717 Basic stats: COMPLETE Column stats: NONE Select Operator expressions: insert_num (type: int), part (type: int), c1 (type: string), c2 (type: string), c3 (type: string), c4 (type: string), c5 (type: string), c6 (type: string), c7 (type: string), c8 (type: string), c9 (type: string), c10 (type: string), c11 (type: string), c12 (type: string), c13 (type: string), b (type: string) outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6, _col7, _col8, _col9, _col10, _col11, _col12, _col13, _col14, _col15 - Statistics: Num rows: 6 Data size: 4729 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 4717 Basic stats: COMPLETE Column stats: NONE Reduce Output Operator key expressions: _col0 (type: int) sort order: + - Statistics: Num rows: 6 Data size: 4729 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 4717 Basic stats: COMPLETE Column stats: NONE value expressions: _col1 (type: int), _col2 (type: string), _col3 (type: string), _col4 (type: string), _col5 (type: string), _col6 (type: string), _col7 (type: string), _col8 (type: string), _col9 (type: string), _col10 (type: string), _col11 (type: string), _col12 (type: string), _col13 (type: string), _col14 (type: string), _col15 (type: string) Execution mode: vectorized Reduce Operator Tree: Select Operator expressions: KEY.reducesinkkey0 (type: int), VALUE._col0 (type: int), VALUE._col1 (type: string), VALUE._col2 (type: string), VALUE._col3 (type: string), VALUE._col4 (type: string), VALUE._col5 (type: string), VALUE._col6 (type: string), VALUE._col7 (type: string), VALUE._col8 (type: string), VALUE._col9 (type: string), VALUE._col10 (type: string), VALUE._col11 (type: string), VALUE._col12 (type: string), VALUE._col13 (type: string), VALUE._col14 (type: string) outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6, _col7, _col8, _col9, _col10, _col11, _col12, _col13, _col14, _col15 - Statistics: Num rows: 6 Data size: 4729 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 4717 Basic stats: COMPLETE Column stats: NONE File Output Operator compressed: false - Statistics: Num rows: 6 Data size: 4729 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 4717 Basic stats: COMPLETE Column stats: NONE table: input format: org.apache.hadoop.mapred.SequenceFileInputFormat output format: org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat @@ -1720,11 +1759,12 @@ POSTHOOK: Input: default@part_change_various_various_string@part=2 #### A masked pattern was here #### insert_num part c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 c12 c13 b 1 1 TRUE NULL NULL 3244222 -99999999999 -29.0764 4.70614135E8 470614135 dynamic reptile dynamic reptile 0004-09-22 18:26:29.519542222 2007-02-09 62 69 6e 61 72 79 original -2 1 TRUE 100 NULL 14 -23866739993 -3651.672 46114.284799488 46114.284799488 baffling baffling 2007-02-09 05:17:29.368756876 0004-09-22 62 69 6e 61 72 79 original -3 1 FALSE 72 NULL -93222 30 -66475.56 -66475.561431 0.561431 1 1 6229-06-28 02:54:28.970117179 5966-07-09 62 69 6e 61 72 79 original -4 1 TRUE -90 NULL 3289094 46114 9250341.0 9250340.75 9250340.75 junkyard junkyard 2002-05-10 05:29:48.990818073 1815-05-06 62 69 6e 61 72 79 original -5 2 true 400 44388 -100 953967041. 62.079153 718.78 1 verdict verdict timestamp date binary new -6 1 -false -67 833 63993 1255178165.77663 905070.974 -4314.7918 -1240033819 trial trial 2016-03-07 03:02:22.0 2016-03-07 binary new +2 1 TRUE 100 32767 NULL -3651 -9.223372E18 9.223372036854776E18 NULL 2007-02-09 05:17:29.368756876 NULL NULL NULL +3 1 TRUE 100 -32768 NULL -3651 -9.223372E18 9.223372036854776E18 NULL 2007-02-09 05:17:29.368756876 NULL NULL NULL +4 1 FALSE 72 NULL -93222 30 -66475.56 -66475.561431 0.561431 1 1 6229-06-28 02:54:28.970117179 5966-07-09 62 69 6e 61 72 79 original +5 1 TRUE -90 NULL 3289094 46114 9250341.0 9250340.75 9250340.75 junkyard junkyard 2002-05-10 05:29:48.990818073 1815-05-06 62 69 6e 61 72 79 original +6 2 true 400 44388 -100 953967041. 62.079153 718.78 1 verdict verdict timestamp date binary new +7 1 -false -67 833 63993 1255178165.77663 905070.974 -4314.7918 -1240033819 trial trial 2016-03-07 03:02:22.0 2016-03-07 binary new PREHOOK: query: drop table part_change_various_various_string PREHOOK: type: DROPTABLE PREHOOK: Input: default@part_change_various_various_string @@ -1749,17 +1789,19 @@ POSTHOOK: Output: database:default POSTHOOK: Output: default@part_change_various_various_char PREHOOK: query: insert into table part_change_various_various_char partition(part=1) values(1, true, 200, 72909, 3244222, -99999999999, -29.0764, 470614135, 470614135, 'dynamic reptile ', 'dynamic reptile ', '0004-09-22 18:26:29.519542222', '2007-02-09', 'binary', 'original'), - (2, 0, 100, 483777, 14, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, ' baffling ', ' baffling ', '2007-02-09 05:17:29.368756876', '0004-09-22', 'binary', 'original'), - (3, false, 72, 3244222, -93222, 30.774, - 66475.561431, -66475.561431, 0.561431, '1', '1', '6229-06-28 02:54:28.970117179', '5966-07-09', 'binary', 'original'), - (4, 1, -90, 754072151, 3289094, 46114.284799488, 9250340.75, 9250340.75, 9250340.75, 'junkyard', 'junkyard', '2002-05-10 05:29:48.990818073', '1815-05-06', 'binary', 'original') + (2, 0, 100, 32767, -23372036854775, -3651.672121, -9223372036854775808.0, 9223372036854775807.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, 100, -32768, 23372036854775, -3651.672121, -9223372036854775809.0, 9223372036854775808.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, 72, 3244222, -93222, 30.774, - 66475.561431, -66475.561431, 0.561431, '1', '1', '6229-06-28 02:54:28.970117179', '5966-07-09', 'binary', 'original'), + (5, 1, -90, 754072151, 3289094, 46114.284799488, 9250340.75, 9250340.75, 9250340.75, 'junkyard', 'junkyard', '2002-05-10 05:29:48.990818073', '1815-05-06', 'binary', 'original') PREHOOK: type: QUERY PREHOOK: Input: default@values__tmp__table__28 PREHOOK: Output: default@part_change_various_various_char@part=1 POSTHOOK: query: insert into table part_change_various_various_char partition(part=1) values(1, true, 200, 72909, 3244222, -99999999999, -29.0764, 470614135, 470614135, 'dynamic reptile ', 'dynamic reptile ', '0004-09-22 18:26:29.519542222', '2007-02-09', 'binary', 'original'), - (2, 0, 100, 483777, 14, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, ' baffling ', ' baffling ', '2007-02-09 05:17:29.368756876', '0004-09-22', 'binary', 'original'), - (3, false, 72, 3244222, -93222, 30.774, - 66475.561431, -66475.561431, 0.561431, '1', '1', '6229-06-28 02:54:28.970117179', '5966-07-09', 'binary', 'original'), - (4, 1, -90, 754072151, 3289094, 46114.284799488, 9250340.75, 9250340.75, 9250340.75, 'junkyard', 'junkyard', '2002-05-10 05:29:48.990818073', '1815-05-06', 'binary', 'original') + (2, 0, 100, 32767, -23372036854775, -3651.672121, -9223372036854775808.0, 9223372036854775807.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, 100, -32768, 23372036854775, -3651.672121, -9223372036854775809.0, 9223372036854775808.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, 72, 3244222, -93222, 30.774, - 66475.561431, -66475.561431, 0.561431, '1', '1', '6229-06-28 02:54:28.970117179', '5966-07-09', 'binary', 'original'), + (5, 1, -90, 754072151, 3289094, 46114.284799488, 9250340.75, 9250340.75, 9250340.75, 'junkyard', 'junkyard', '2002-05-10 05:29:48.990818073', '1815-05-06', 'binary', 'original') POSTHOOK: type: QUERY POSTHOOK: Input: default@values__tmp__table__28 POSTHOOK: Output: default@part_change_various_various_char@part=1 @@ -1791,9 +1833,10 @@ POSTHOOK: Input: default@part_change_various_various_char@part=1 #### A masked pattern was here #### insert_num part c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 c12 c13 b 1 1 true NULL NULL 3244222 -99999999999 -29.0764 4.70614135E8 470614135.000000000000000000 dynamic reptile dynamic reptile 0004-09-22 18:26:29.519542222 2007-02-09 binary original -2 1 true 100 NULL 14 -23866739993 -3651.672 46114.284799488 46114.284799488000000000 baffling baffling 2007-02-09 05:17:29.368756876 0004-09-22 binary original -3 1 false 72 NULL -93222 30 -66475.56 -66475.561431 0.561431000000000000 1 1 6229-06-28 02:54:28.970117179 5966-07-09 binary original -4 1 true -90 NULL 3289094 46114 9250341.0 9250340.75 9250340.750000000000000000 junkyard junkyard 2002-05-10 05:29:48.990818073 1815-05-06 binary original +2 1 true 100 32767 NULL -3651 -9.223372E18 9.223372036854776E18 NULL 2007-02-09 05:17:29.368756876 NULL NULL NULL +3 1 true 100 -32768 NULL -3651 -9.223372E18 9.223372036854776E18 NULL 2007-02-09 05:17:29.368756876 NULL NULL NULL +4 1 false 72 NULL -93222 30 -66475.56 -66475.561431 0.561431000000000000 1 1 6229-06-28 02:54:28.970117179 5966-07-09 binary original +5 1 true -90 NULL 3289094 46114 9250341.0 9250340.75 9250340.750000000000000000 junkyard junkyard 2002-05-10 05:29:48.990818073 1815-05-06 binary original PREHOOK: query: -- Table-Non-Cascade CHANGE COLUMNS ... alter table part_change_various_various_char replace columns (insert_num int, c1 CHAR(25), c2 CHAR(25), c3 CHAR(25), c4 CHAR(25), c5 CHAR(25), c6 CHAR(25), c7 CHAR(25), c8 CHAR(25), c9 CHAR(25), c10 CHAR(25), c11 CHAR(25), c12 CHAR(25), c13 CHAR(25), b STRING) PREHOOK: type: ALTERTABLE_REPLACECOLS @@ -1805,12 +1848,12 @@ POSTHOOK: type: ALTERTABLE_REPLACECOLS POSTHOOK: Input: default@part_change_various_various_char POSTHOOK: Output: default@part_change_various_various_char PREHOOK: query: insert into table part_change_various_various_char partition(part=2) - values (5, 'true', '400', '44388', -'100', '953967041.', '62.079153', '718.78', '1', 'verdict', 'verdict', 'timestamp', 'date', 'binary', 'new') + values (6, 'true', '400', '44388', -'100', '953967041.', '62.079153', '718.78', '1', 'verdict', 'verdict', 'timestamp', 'date', 'binary', 'new') PREHOOK: type: QUERY PREHOOK: Input: default@values__tmp__table__29 PREHOOK: Output: default@part_change_various_various_char@part=2 POSTHOOK: query: insert into table part_change_various_various_char partition(part=2) - values (5, 'true', '400', '44388', -'100', '953967041.', '62.079153', '718.78', '1', 'verdict', 'verdict', 'timestamp', 'date', 'binary', 'new') + values (6, 'true', '400', '44388', -'100', '953967041.', '62.079153', '718.78', '1', 'verdict', 'verdict', 'timestamp', 'date', 'binary', 'new') POSTHOOK: type: QUERY POSTHOOK: Input: default@values__tmp__table__29 POSTHOOK: Output: default@part_change_various_various_char@part=2 @@ -1831,12 +1874,12 @@ POSTHOOK: Lineage: part_change_various_various_char PARTITION(part=2).c9 EXPRESS POSTHOOK: Lineage: part_change_various_various_char PARTITION(part=2).insert_num EXPRESSION [(values__tmp__table__29)values__tmp__table__29.FieldSchema(name:tmp_values_col1, type:string, comment:), ] _col0 _col1 _col2 _col3 _col4 _col5 _col6 _col7 _col8 _col9 _col10 _col11 _col12 _col13 _col14 PREHOOK: query: insert into table part_change_various_various_char partition(part=1) - values (6,-'false', '-67', '833', '63993', ' 1255178165.77663', '905070.974', '-4314.7918', -'1240033819', 'trial', 'trial', '2016-03-07 03:02:22.0', '2016-03-07', 'binary', 'new') + values (7,-'false', '-67', '833', '63993', ' 1255178165.77663', '905070.974', '-4314.7918', -'1240033819', 'trial', 'trial', '2016-03-07 03:02:22.0', '2016-03-07', 'binary', 'new') PREHOOK: type: QUERY PREHOOK: Input: default@values__tmp__table__30 PREHOOK: Output: default@part_change_various_various_char@part=1 POSTHOOK: query: insert into table part_change_various_various_char partition(part=1) - values (6,-'false', '-67', '833', '63993', ' 1255178165.77663', '905070.974', '-4314.7918', -'1240033819', 'trial', 'trial', '2016-03-07 03:02:22.0', '2016-03-07', 'binary', 'new') + values (7,-'false', '-67', '833', '63993', ' 1255178165.77663', '905070.974', '-4314.7918', -'1240033819', 'trial', 'trial', '2016-03-07 03:02:22.0', '2016-03-07', 'binary', 'new') POSTHOOK: type: QUERY POSTHOOK: Input: default@values__tmp__table__30 POSTHOOK: Output: default@part_change_various_various_char@part=1 @@ -1873,25 +1916,25 @@ STAGE PLANS: Map Operator Tree: TableScan alias: part_change_various_various_char - Statistics: Num rows: 6 Data size: 5132 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 5080 Basic stats: COMPLETE Column stats: NONE Select Operator expressions: insert_num (type: int), part (type: int), c1 (type: char(25)), c2 (type: char(25)), c3 (type: char(25)), c4 (type: char(25)), c5 (type: char(25)), c6 (type: char(25)), c7 (type: char(25)), c8 (type: char(25)), c9 (type: char(25)), c10 (type: char(25)), c11 (type: char(25)), c12 (type: char(25)), c13 (type: char(25)), b (type: string) outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6, _col7, _col8, _col9, _col10, _col11, _col12, _col13, _col14, _col15 - Statistics: Num rows: 6 Data size: 5132 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 5080 Basic stats: COMPLETE Column stats: NONE Reduce Output Operator key expressions: _col0 (type: int) sort order: + - Statistics: Num rows: 6 Data size: 5132 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 5080 Basic stats: COMPLETE Column stats: NONE value expressions: _col1 (type: int), _col2 (type: char(25)), _col3 (type: char(25)), _col4 (type: char(25)), _col5 (type: char(25)), _col6 (type: char(25)), _col7 (type: char(25)), _col8 (type: char(25)), _col9 (type: char(25)), _col10 (type: char(25)), _col11 (type: char(25)), _col12 (type: char(25)), _col13 (type: char(25)), _col14 (type: char(25)), _col15 (type: string) Execution mode: vectorized Reduce Operator Tree: Select Operator expressions: KEY.reducesinkkey0 (type: int), VALUE._col0 (type: int), VALUE._col1 (type: char(25)), VALUE._col2 (type: char(25)), VALUE._col3 (type: char(25)), VALUE._col4 (type: char(25)), VALUE._col5 (type: char(25)), VALUE._col6 (type: char(25)), VALUE._col7 (type: char(25)), VALUE._col8 (type: char(25)), VALUE._col9 (type: char(25)), VALUE._col10 (type: char(25)), VALUE._col11 (type: char(25)), VALUE._col12 (type: char(25)), VALUE._col13 (type: char(25)), VALUE._col14 (type: string) outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6, _col7, _col8, _col9, _col10, _col11, _col12, _col13, _col14, _col15 - Statistics: Num rows: 6 Data size: 5132 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 5080 Basic stats: COMPLETE Column stats: NONE File Output Operator compressed: false - Statistics: Num rows: 6 Data size: 5132 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 5080 Basic stats: COMPLETE Column stats: NONE table: input format: org.apache.hadoop.mapred.SequenceFileInputFormat output format: org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat @@ -1917,11 +1960,12 @@ POSTHOOK: Input: default@part_change_various_various_char@part=2 #### A masked pattern was here #### insert_num part c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 c12 c13 b 1 1 TRUE NULL NULL 3244222 -99999999999 -29.0764 4.70614135E8 470614135 dynamic reptile dynamic reptile 0004-09-22 18:26:29.51954 2007-02-09 62 69 6e 61 72 79 original -2 1 TRUE 100 NULL 14 -23866739993 -3651.672 46114.284799488 46114.284799488 baffling baffling 2007-02-09 05:17:29.36875 0004-09-22 62 69 6e 61 72 79 original -3 1 FALSE 72 NULL -93222 30 -66475.56 -66475.561431 0.561431 1 1 6229-06-28 02:54:28.97011 5966-07-09 62 69 6e 61 72 79 original -4 1 TRUE -90 NULL 3289094 46114 9250341.0 9250340.75 9250340.75 junkyard junkyard 2002-05-10 05:29:48.99081 1815-05-06 62 69 6e 61 72 79 original -5 2 true 400 44388 -100 953967041. 62.079153 718.78 1 verdict verdict timestamp date binary new -6 1 -false -67 833 63993 1255178165.77663 905070.974 -4314.7918 -1240033819 trial trial 2016-03-07 03:02:22.0 2016-03-07 binary new +2 1 TRUE 100 32767 NULL -3651 -9.223372E18 9.223372036854776E18 NULL 2007-02-09 05:17:29.36875 NULL NULL NULL +3 1 TRUE 100 -32768 NULL -3651 -9.223372E18 9.223372036854776E18 NULL 2007-02-09 05:17:29.36875 NULL NULL NULL +4 1 FALSE 72 NULL -93222 30 -66475.56 -66475.561431 0.561431 1 1 6229-06-28 02:54:28.97011 5966-07-09 62 69 6e 61 72 79 original +5 1 TRUE -90 NULL 3289094 46114 9250341.0 9250340.75 9250340.75 junkyard junkyard 2002-05-10 05:29:48.99081 1815-05-06 62 69 6e 61 72 79 original +6 2 true 400 44388 -100 953967041. 62.079153 718.78 1 verdict verdict timestamp date binary new +7 1 -false -67 833 63993 1255178165.77663 905070.974 -4314.7918 -1240033819 trial trial 2016-03-07 03:02:22.0 2016-03-07 binary new PREHOOK: query: drop table part_change_various_various_char PREHOOK: type: DROPTABLE PREHOOK: Input: default@part_change_various_various_char @@ -1946,17 +1990,19 @@ POSTHOOK: Output: database:default POSTHOOK: Output: default@part_change_various_various_char_trunc PREHOOK: query: insert into table part_change_various_various_char_trunc partition(part=1) values(1, true, 200, 72909, 3244222, -99999999999, -29.0764, 470614135, 470614135, 'dynamic reptile ', 'dynamic reptile ', '0004-09-22 18:26:29.519542222', '2007-02-09', 'binary', 'original'), - (2, 0, 100, 483777, 14, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, ' baffling ', ' baffling ', '2007-02-09 05:17:29.368756876', '0004-09-22', 'binary', 'original'), - (3, false, 72, 3244222, -93222, 30.774, - 66475.561431, -66475.561431, 0.561431, '1', '1', '6229-06-28 02:54:28.970117179', '5966-07-09', 'binary', 'original'), - (4, 1, -90, 754072151, 3289094, 46114.284799488, 9250340.75, 9250340.75, 9250340.75, 'junkyard', 'junkyard', '2002-05-10 05:29:48.990818073', '1815-05-06', 'binary', 'original') + (2, 0, 100, 32767, -23372036854775, -3651.672121, -9223372036854775808.0, 9223372036854775807.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, 100, -32768, 23372036854775, -3651.672121, -9223372036854775809.0, 9223372036854775808.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, 72, 3244222, -93222, 30.774, - 66475.561431, -66475.561431, 0.561431, '1', '1', '6229-06-28 02:54:28.970117179', '5966-07-09', 'binary', 'original'), + (5, 1, -90, 754072151, 3289094, 46114.284799488, 9250340.75, 9250340.75, 9250340.75, 'junkyard', 'junkyard', '2002-05-10 05:29:48.990818073', '1815-05-06', 'binary', 'original') PREHOOK: type: QUERY PREHOOK: Input: default@values__tmp__table__31 PREHOOK: Output: default@part_change_various_various_char_trunc@part=1 POSTHOOK: query: insert into table part_change_various_various_char_trunc partition(part=1) values(1, true, 200, 72909, 3244222, -99999999999, -29.0764, 470614135, 470614135, 'dynamic reptile ', 'dynamic reptile ', '0004-09-22 18:26:29.519542222', '2007-02-09', 'binary', 'original'), - (2, 0, 100, 483777, 14, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, ' baffling ', ' baffling ', '2007-02-09 05:17:29.368756876', '0004-09-22', 'binary', 'original'), - (3, false, 72, 3244222, -93222, 30.774, - 66475.561431, -66475.561431, 0.561431, '1', '1', '6229-06-28 02:54:28.970117179', '5966-07-09', 'binary', 'original'), - (4, 1, -90, 754072151, 3289094, 46114.284799488, 9250340.75, 9250340.75, 9250340.75, 'junkyard', 'junkyard', '2002-05-10 05:29:48.990818073', '1815-05-06', 'binary', 'original') + (2, 0, 100, 32767, -23372036854775, -3651.672121, -9223372036854775808.0, 9223372036854775807.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, 100, -32768, 23372036854775, -3651.672121, -9223372036854775809.0, 9223372036854775808.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, 72, 3244222, -93222, 30.774, - 66475.561431, -66475.561431, 0.561431, '1', '1', '6229-06-28 02:54:28.970117179', '5966-07-09', 'binary', 'original'), + (5, 1, -90, 754072151, 3289094, 46114.284799488, 9250340.75, 9250340.75, 9250340.75, 'junkyard', 'junkyard', '2002-05-10 05:29:48.990818073', '1815-05-06', 'binary', 'original') POSTHOOK: type: QUERY POSTHOOK: Input: default@values__tmp__table__31 POSTHOOK: Output: default@part_change_various_various_char_trunc@part=1 @@ -1988,9 +2034,10 @@ POSTHOOK: Input: default@part_change_various_various_char_trunc@part=1 #### A masked pattern was here #### insert_num part c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 c12 c13 b 1 1 true NULL NULL 3244222 -99999999999 -29.0764 4.70614135E8 470614135.000000000000000000 dynamic reptile dynamic 0004-09-22 18:26:29.519542222 2007-02-09 binary original -2 1 true 100 NULL 14 -23866739993 -3651.672 46114.284799488 46114.284799488000000000 baffling baffli 2007-02-09 05:17:29.368756876 0004-09-22 binary original -3 1 false 72 NULL -93222 30 -66475.56 -66475.561431 0.561431000000000000 1 1 6229-06-28 02:54:28.970117179 5966-07-09 binary original -4 1 true -90 NULL 3289094 46114 9250341.0 9250340.75 9250340.750000000000000000 junkyard junkyard 2002-05-10 05:29:48.990818073 1815-05-06 binary original +2 1 true 100 32767 NULL -3651 -9.223372E18 9.223372036854776E18 NULL 2007-02-09 05:17:29.368756876 NULL NULL NULL +3 1 true 100 -32768 NULL -3651 -9.223372E18 9.223372036854776E18 NULL 2007-02-09 05:17:29.368756876 NULL NULL NULL +4 1 false 72 NULL -93222 30 -66475.56 -66475.561431 0.561431000000000000 1 1 6229-06-28 02:54:28.970117179 5966-07-09 binary original +5 1 true -90 NULL 3289094 46114 9250341.0 9250340.75 9250340.750000000000000000 junkyard junkyard 2002-05-10 05:29:48.990818073 1815-05-06 binary original PREHOOK: query: -- Table-Non-Cascade CHANGE COLUMNS ... alter table part_change_various_various_char_trunc replace columns (insert_num int, c1 CHAR(8), c2 CHAR(8), c3 CHAR(8), c4 CHAR(8), c5 CHAR(8), c6 CHAR(8), c7 CHAR(8), c8 CHAR(8), c9 CHAR(8), c10 CHAR(8), c11 CHAR(8), c12 CHAR(8), c13 CHAR(8), b STRING) PREHOOK: type: ALTERTABLE_REPLACECOLS @@ -2002,12 +2049,12 @@ POSTHOOK: type: ALTERTABLE_REPLACECOLS POSTHOOK: Input: default@part_change_various_various_char_trunc POSTHOOK: Output: default@part_change_various_various_char_trunc PREHOOK: query: insert into table part_change_various_various_char_trunc partition(part=2) - values (5, 'true', '400', '44388', -'100', '953967041.', '62.079153', '718.78', '1', 'verdict', 'verdict', 'timestamp', 'date', 'binary', 'new') + values (6, 'true', '400', '44388', -'100', '953967041.', '62.079153', '718.78', '1', 'verdict', 'verdict', 'timestamp', 'date', 'binary', 'new') PREHOOK: type: QUERY PREHOOK: Input: default@values__tmp__table__32 PREHOOK: Output: default@part_change_various_various_char_trunc@part=2 POSTHOOK: query: insert into table part_change_various_various_char_trunc partition(part=2) - values (5, 'true', '400', '44388', -'100', '953967041.', '62.079153', '718.78', '1', 'verdict', 'verdict', 'timestamp', 'date', 'binary', 'new') + values (6, 'true', '400', '44388', -'100', '953967041.', '62.079153', '718.78', '1', 'verdict', 'verdict', 'timestamp', 'date', 'binary', 'new') POSTHOOK: type: QUERY POSTHOOK: Input: default@values__tmp__table__32 POSTHOOK: Output: default@part_change_various_various_char_trunc@part=2 @@ -2028,12 +2075,12 @@ POSTHOOK: Lineage: part_change_various_various_char_trunc PARTITION(part=2).c9 E POSTHOOK: Lineage: part_change_various_various_char_trunc PARTITION(part=2).insert_num EXPRESSION [(values__tmp__table__32)values__tmp__table__32.FieldSchema(name:tmp_values_col1, type:string, comment:), ] _col0 _col1 _col2 _col3 _col4 _col5 _col6 _col7 _col8 _col9 _col10 _col11 _col12 _col13 _col14 PREHOOK: query: insert into table part_change_various_various_char_trunc partition(part=1) - values (6,-'false', '-67', '833', '63993', ' 1255178165.77663', '905070.974', '-4314.7918', -'1240033819', 'trial', 'trial', '2016-03-07 03:02:22.0', '2016-03-07', 'binary', 'new') + values (7,-'false', '-67', '833', '63993', ' 1255178165.77663', '905070.974', '-4314.7918', -'1240033819', 'trial', 'trial', '2016-03-07 03:02:22.0', '2016-03-07', 'binary', 'new') PREHOOK: type: QUERY PREHOOK: Input: default@values__tmp__table__33 PREHOOK: Output: default@part_change_various_various_char_trunc@part=1 POSTHOOK: query: insert into table part_change_various_various_char_trunc partition(part=1) - values (6,-'false', '-67', '833', '63993', ' 1255178165.77663', '905070.974', '-4314.7918', -'1240033819', 'trial', 'trial', '2016-03-07 03:02:22.0', '2016-03-07', 'binary', 'new') + values (7,-'false', '-67', '833', '63993', ' 1255178165.77663', '905070.974', '-4314.7918', -'1240033819', 'trial', 'trial', '2016-03-07 03:02:22.0', '2016-03-07', 'binary', 'new') POSTHOOK: type: QUERY POSTHOOK: Input: default@values__tmp__table__33 POSTHOOK: Output: default@part_change_various_various_char_trunc@part=1 @@ -2070,25 +2117,25 @@ STAGE PLANS: Map Operator Tree: TableScan alias: part_change_various_various_char_trunc - Statistics: Num rows: 6 Data size: 4674 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 4628 Basic stats: COMPLETE Column stats: NONE Select Operator expressions: insert_num (type: int), part (type: int), c1 (type: char(8)), c2 (type: char(8)), c3 (type: char(8)), c4 (type: char(8)), c5 (type: char(8)), c6 (type: char(8)), c7 (type: char(8)), c8 (type: char(8)), c9 (type: char(8)), c10 (type: char(8)), c11 (type: char(8)), c12 (type: char(8)), c13 (type: char(8)), b (type: string) outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6, _col7, _col8, _col9, _col10, _col11, _col12, _col13, _col14, _col15 - Statistics: Num rows: 6 Data size: 4674 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 4628 Basic stats: COMPLETE Column stats: NONE Reduce Output Operator key expressions: _col0 (type: int) sort order: + - Statistics: Num rows: 6 Data size: 4674 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 4628 Basic stats: COMPLETE Column stats: NONE value expressions: _col1 (type: int), _col2 (type: char(8)), _col3 (type: char(8)), _col4 (type: char(8)), _col5 (type: char(8)), _col6 (type: char(8)), _col7 (type: char(8)), _col8 (type: char(8)), _col9 (type: char(8)), _col10 (type: char(8)), _col11 (type: char(8)), _col12 (type: char(8)), _col13 (type: char(8)), _col14 (type: char(8)), _col15 (type: string) Execution mode: vectorized Reduce Operator Tree: Select Operator expressions: KEY.reducesinkkey0 (type: int), VALUE._col0 (type: int), VALUE._col1 (type: char(8)), VALUE._col2 (type: char(8)), VALUE._col3 (type: char(8)), VALUE._col4 (type: char(8)), VALUE._col5 (type: char(8)), VALUE._col6 (type: char(8)), VALUE._col7 (type: char(8)), VALUE._col8 (type: char(8)), VALUE._col9 (type: char(8)), VALUE._col10 (type: char(8)), VALUE._col11 (type: char(8)), VALUE._col12 (type: char(8)), VALUE._col13 (type: char(8)), VALUE._col14 (type: string) outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6, _col7, _col8, _col9, _col10, _col11, _col12, _col13, _col14, _col15 - Statistics: Num rows: 6 Data size: 4674 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 4628 Basic stats: COMPLETE Column stats: NONE File Output Operator compressed: false - Statistics: Num rows: 6 Data size: 4674 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 4628 Basic stats: COMPLETE Column stats: NONE table: input format: org.apache.hadoop.mapred.SequenceFileInputFormat output format: org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat @@ -2114,11 +2161,12 @@ POSTHOOK: Input: default@part_change_various_various_char_trunc@part=2 #### A masked pattern was here #### insert_num part c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 c12 c13 b 1 1 TRUE NULL NULL 3244222 -9999999 -29.0764 4.706141 47061413 dynamic dynamic 0004-09- 2007-02- 62 69 6e original -2 1 TRUE 100 NULL 14 -2386673 -3651.67 46114.28 46114.28 baffli baffli 2007-02- 0004-09- 62 69 6e original -3 1 FALSE 72 NULL -93222 30 -66475.5 -66475.5 0.561431 1 1 6229-06- 5966-07- 62 69 6e original -4 1 TRUE -90 NULL 3289094 46114 9250341. 9250340. 9250340. junkyard junkyard 2002-05- 1815-05- 62 69 6e original -5 2 true 400 44388 -100 95396704 62.07915 718.78 1 verdict verdict timestam date binary new -6 1 -false -67 833 63993 1255178 905070.9 -4314.79 -1240033 trial trial 2016-03- 2016-03- binary new +2 1 TRUE 100 32767 NULL -3651 -9.22337 9.223372 NULL 2007-02- NULL NULL NULL +3 1 TRUE 100 -32768 NULL -3651 -9.22337 9.223372 NULL 2007-02- NULL NULL NULL +4 1 FALSE 72 NULL -93222 30 -66475.5 -66475.5 0.561431 1 1 6229-06- 5966-07- 62 69 6e original +5 1 TRUE -90 NULL 3289094 46114 9250341. 9250340. 9250340. junkyard junkyard 2002-05- 1815-05- 62 69 6e original +6 2 true 400 44388 -100 95396704 62.07915 718.78 1 verdict verdict timestam date binary new +7 1 -false -67 833 63993 1255178 905070.9 -4314.79 -1240033 trial trial 2016-03- 2016-03- binary new PREHOOK: query: drop table part_change_various_various_char_trunc PREHOOK: type: DROPTABLE PREHOOK: Input: default@part_change_various_various_char_trunc @@ -2143,17 +2191,19 @@ POSTHOOK: Output: database:default POSTHOOK: Output: default@part_change_various_various_varchar PREHOOK: query: insert into table part_change_various_various_varchar partition(part=1) values(1, true, 200, 72909, 3244222, -99999999999, -29.0764, 470614135, 470614135, 'dynamic reptile ', 'dynamic reptile ', '0004-09-22 18:26:29.519542222', '2007-02-09', 'binary', 'original'), - (2, 0, 100, 483777, 14, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, ' baffling ', ' baffling ', '2007-02-09 05:17:29.368756876', '0004-09-22', 'binary', 'original'), - (3, false, 72, 3244222, -93222, 30.774, - 66475.561431, -66475.561431, 0.561431, '1', '1', '6229-06-28 02:54:28.970117179', '5966-07-09', 'binary', 'original'), - (4, 1, -90, 754072151, 3289094, 46114.284799488, 9250340.75, 9250340.75, 9250340.75, 'junkyard', 'junkyard', '2002-05-10 05:29:48.990818073', '1815-05-06', 'binary', 'original') + (2, 0, 100, 32767, -23372036854775, -9223372036854775808.0, -9223372036854775808.0, 9223372036854775807.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, 100, -32768, 23372036854775, -9223372036854775809.0, -9223372036854775809.0, 9223372036854775808.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, 72, 3244222, -93222, 30.774, - 66475.561431, -66475.561431, 0.561431, '1', '1', '6229-06-28 02:54:28.970117179', '5966-07-09', 'binary', 'original'), + (5, 1, -90, 754072151, 3289094, 46114.284799488, 9250340.75, 9250340.75, 9250340.75, 'junkyard', 'junkyard', '2002-05-10 05:29:48.990818073', '1815-05-06', 'binary', 'original') PREHOOK: type: QUERY PREHOOK: Input: default@values__tmp__table__34 PREHOOK: Output: default@part_change_various_various_varchar@part=1 POSTHOOK: query: insert into table part_change_various_various_varchar partition(part=1) values(1, true, 200, 72909, 3244222, -99999999999, -29.0764, 470614135, 470614135, 'dynamic reptile ', 'dynamic reptile ', '0004-09-22 18:26:29.519542222', '2007-02-09', 'binary', 'original'), - (2, 0, 100, 483777, 14, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, ' baffling ', ' baffling ', '2007-02-09 05:17:29.368756876', '0004-09-22', 'binary', 'original'), - (3, false, 72, 3244222, -93222, 30.774, - 66475.561431, -66475.561431, 0.561431, '1', '1', '6229-06-28 02:54:28.970117179', '5966-07-09', 'binary', 'original'), - (4, 1, -90, 754072151, 3289094, 46114.284799488, 9250340.75, 9250340.75, 9250340.75, 'junkyard', 'junkyard', '2002-05-10 05:29:48.990818073', '1815-05-06', 'binary', 'original') + (2, 0, 100, 32767, -23372036854775, -9223372036854775808.0, -9223372036854775808.0, 9223372036854775807.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, 100, -32768, 23372036854775, -9223372036854775809.0, -9223372036854775809.0, 9223372036854775808.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, 72, 3244222, -93222, 30.774, - 66475.561431, -66475.561431, 0.561431, '1', '1', '6229-06-28 02:54:28.970117179', '5966-07-09', 'binary', 'original'), + (5, 1, -90, 754072151, 3289094, 46114.284799488, 9250340.75, 9250340.75, 9250340.75, 'junkyard', 'junkyard', '2002-05-10 05:29:48.990818073', '1815-05-06', 'binary', 'original') POSTHOOK: type: QUERY POSTHOOK: Input: default@values__tmp__table__34 POSTHOOK: Output: default@part_change_various_various_varchar@part=1 @@ -2185,9 +2235,10 @@ POSTHOOK: Input: default@part_change_various_various_varchar@part=1 #### A masked pattern was here #### insert_num part c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 c12 c13 b 1 1 true NULL NULL 3244222 -99999999999 -29.0764 4.70614135E8 470614135.000000000000000000 dynamic reptile dynamic reptile 0004-09-22 18:26:29.519542222 2007-02-09 binary original -2 1 true 100 NULL 14 -23866739993 -3651.672 46114.284799488 46114.284799488000000000 baffling baffling 2007-02-09 05:17:29.368756876 0004-09-22 binary original -3 1 false 72 NULL -93222 30 -66475.56 -66475.561431 0.561431000000000000 1 1 6229-06-28 02:54:28.970117179 5966-07-09 binary original -4 1 true -90 NULL 3289094 46114 9250341.0 9250340.75 9250340.750000000000000000 junkyard junkyard 2002-05-10 05:29:48.990818073 1815-05-06 binary original +2 1 true 100 32767 NULL -9223372036854775808 -9.223372E18 9.223372036854776E18 NULL 2007-02-09 05:17:29.368756876 NULL NULL NULL +3 1 true 100 -32768 NULL NULL -9.223372E18 9.223372036854776E18 NULL 2007-02-09 05:17:29.368756876 NULL NULL NULL +4 1 false 72 NULL -93222 30 -66475.56 -66475.561431 0.561431000000000000 1 1 6229-06-28 02:54:28.970117179 5966-07-09 binary original +5 1 true -90 NULL 3289094 46114 9250341.0 9250340.75 9250340.750000000000000000 junkyard junkyard 2002-05-10 05:29:48.990818073 1815-05-06 binary original PREHOOK: query: -- Table-Non-Cascade CHANGE COLUMNS ... alter table part_change_various_various_varchar replace columns (insert_num int, c1 VARCHAR(25), c2 VARCHAR(25), c3 VARCHAR(25), c4 VARCHAR(25), c5 VARCHAR(25), c6 VARCHAR(25), c7 VARCHAR(25), c8 VARCHAR(25), c9 VARCHAR(25), c10 VARCHAR(25), c11 VARCHAR(25), c12 VARCHAR(25), c13 VARCHAR(25), b STRING) PREHOOK: type: ALTERTABLE_REPLACECOLS @@ -2199,12 +2250,12 @@ POSTHOOK: type: ALTERTABLE_REPLACECOLS POSTHOOK: Input: default@part_change_various_various_varchar POSTHOOK: Output: default@part_change_various_various_varchar PREHOOK: query: insert into table part_change_various_various_varchar partition(part=2) - values (5, 'true', '400', '44388', -'100', '953967041.', '62.079153', '718.78', '1', 'verdict', 'verdict', 'timestamp', 'date', 'binary', 'new') + values (6, 'true', '400', '44388', -'100', '953967041.', '62.079153', '718.78', '1', 'verdict', 'verdict', 'timestamp', 'date', 'binary', 'new') PREHOOK: type: QUERY PREHOOK: Input: default@values__tmp__table__35 PREHOOK: Output: default@part_change_various_various_varchar@part=2 POSTHOOK: query: insert into table part_change_various_various_varchar partition(part=2) - values (5, 'true', '400', '44388', -'100', '953967041.', '62.079153', '718.78', '1', 'verdict', 'verdict', 'timestamp', 'date', 'binary', 'new') + values (6, 'true', '400', '44388', -'100', '953967041.', '62.079153', '718.78', '1', 'verdict', 'verdict', 'timestamp', 'date', 'binary', 'new') POSTHOOK: type: QUERY POSTHOOK: Input: default@values__tmp__table__35 POSTHOOK: Output: default@part_change_various_various_varchar@part=2 @@ -2225,12 +2276,12 @@ POSTHOOK: Lineage: part_change_various_various_varchar PARTITION(part=2).c9 EXPR POSTHOOK: Lineage: part_change_various_various_varchar PARTITION(part=2).insert_num EXPRESSION [(values__tmp__table__35)values__tmp__table__35.FieldSchema(name:tmp_values_col1, type:string, comment:), ] _col0 _col1 _col2 _col3 _col4 _col5 _col6 _col7 _col8 _col9 _col10 _col11 _col12 _col13 _col14 PREHOOK: query: insert into table part_change_various_various_varchar partition(part=1) - values (6,-'false', '-67', '833', '63993', ' 1255178165.77663', '905070.974', '-4314.7918', -'1240033819', 'trial', 'trial', '2016-03-07 03:02:22.0', '2016-03-07', 'binary', 'new') + values (7,-'false', '-67', '833', '63993', ' 1255178165.77663', '905070.974', '-4314.7918', -'1240033819', 'trial', 'trial', '2016-03-07 03:02:22.0', '2016-03-07', 'binary', 'new') PREHOOK: type: QUERY PREHOOK: Input: default@values__tmp__table__36 PREHOOK: Output: default@part_change_various_various_varchar@part=1 POSTHOOK: query: insert into table part_change_various_various_varchar partition(part=1) - values (6,-'false', '-67', '833', '63993', ' 1255178165.77663', '905070.974', '-4314.7918', -'1240033819', 'trial', 'trial', '2016-03-07 03:02:22.0', '2016-03-07', 'binary', 'new') + values (7,-'false', '-67', '833', '63993', ' 1255178165.77663', '905070.974', '-4314.7918', -'1240033819', 'trial', 'trial', '2016-03-07 03:02:22.0', '2016-03-07', 'binary', 'new') POSTHOOK: type: QUERY POSTHOOK: Input: default@values__tmp__table__36 POSTHOOK: Output: default@part_change_various_various_varchar@part=1 @@ -2267,25 +2318,25 @@ STAGE PLANS: Map Operator Tree: TableScan alias: part_change_various_various_varchar - Statistics: Num rows: 6 Data size: 4729 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 4709 Basic stats: COMPLETE Column stats: NONE Select Operator expressions: insert_num (type: int), part (type: int), c1 (type: varchar(25)), c2 (type: varchar(25)), c3 (type: varchar(25)), c4 (type: varchar(25)), c5 (type: varchar(25)), c6 (type: varchar(25)), c7 (type: varchar(25)), c8 (type: varchar(25)), c9 (type: varchar(25)), c10 (type: varchar(25)), c11 (type: varchar(25)), c12 (type: varchar(25)), c13 (type: varchar(25)), b (type: string) outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6, _col7, _col8, _col9, _col10, _col11, _col12, _col13, _col14, _col15 - Statistics: Num rows: 6 Data size: 4729 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 4709 Basic stats: COMPLETE Column stats: NONE Reduce Output Operator key expressions: _col0 (type: int) sort order: + - Statistics: Num rows: 6 Data size: 4729 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 4709 Basic stats: COMPLETE Column stats: NONE value expressions: _col1 (type: int), _col2 (type: varchar(25)), _col3 (type: varchar(25)), _col4 (type: varchar(25)), _col5 (type: varchar(25)), _col6 (type: varchar(25)), _col7 (type: varchar(25)), _col8 (type: varchar(25)), _col9 (type: varchar(25)), _col10 (type: varchar(25)), _col11 (type: varchar(25)), _col12 (type: varchar(25)), _col13 (type: varchar(25)), _col14 (type: varchar(25)), _col15 (type: string) Execution mode: vectorized Reduce Operator Tree: Select Operator expressions: KEY.reducesinkkey0 (type: int), VALUE._col0 (type: int), VALUE._col1 (type: varchar(25)), VALUE._col2 (type: varchar(25)), VALUE._col3 (type: varchar(25)), VALUE._col4 (type: varchar(25)), VALUE._col5 (type: varchar(25)), VALUE._col6 (type: varchar(25)), VALUE._col7 (type: varchar(25)), VALUE._col8 (type: varchar(25)), VALUE._col9 (type: varchar(25)), VALUE._col10 (type: varchar(25)), VALUE._col11 (type: varchar(25)), VALUE._col12 (type: varchar(25)), VALUE._col13 (type: varchar(25)), VALUE._col14 (type: string) outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6, _col7, _col8, _col9, _col10, _col11, _col12, _col13, _col14, _col15 - Statistics: Num rows: 6 Data size: 4729 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 4709 Basic stats: COMPLETE Column stats: NONE File Output Operator compressed: false - Statistics: Num rows: 6 Data size: 4729 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 4709 Basic stats: COMPLETE Column stats: NONE table: input format: org.apache.hadoop.mapred.SequenceFileInputFormat output format: org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat @@ -2311,11 +2362,12 @@ POSTHOOK: Input: default@part_change_various_various_varchar@part=2 #### A masked pattern was here #### insert_num part c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 c12 c13 b 1 1 TRUE NULL NULL 3244222 -99999999999 -29.0764 4.70614135E8 470614135 dynamic reptile dynamic reptile 0004-09-22 18:26:29.51954 2007-02-09 62 69 6e 61 72 79 original -2 1 TRUE 100 NULL 14 -23866739993 -3651.672 46114.284799488 46114.284799488 baffling baffling 2007-02-09 05:17:29.36875 0004-09-22 62 69 6e 61 72 79 original -3 1 FALSE 72 NULL -93222 30 -66475.56 -66475.561431 0.561431 1 1 6229-06-28 02:54:28.97011 5966-07-09 62 69 6e 61 72 79 original -4 1 TRUE -90 NULL 3289094 46114 9250341.0 9250340.75 9250340.75 junkyard junkyard 2002-05-10 05:29:48.99081 1815-05-06 62 69 6e 61 72 79 original -5 2 true 400 44388 -100 953967041. 62.079153 718.78 1 verdict verdict timestamp date binary new -6 1 -false -67 833 63993 1255178165.77663 905070.974 -4314.7918 -1240033819 trial trial 2016-03-07 03:02:22.0 2016-03-07 binary new +2 1 TRUE 100 32767 NULL -9223372036854775808 -9.223372E18 9.223372036854776E18 NULL 2007-02-09 05:17:29.36875 NULL NULL NULL +3 1 TRUE 100 -32768 NULL NULL -9.223372E18 9.223372036854776E18 NULL 2007-02-09 05:17:29.36875 NULL NULL NULL +4 1 FALSE 72 NULL -93222 30 -66475.56 -66475.561431 0.561431 1 1 6229-06-28 02:54:28.97011 5966-07-09 62 69 6e 61 72 79 original +5 1 TRUE -90 NULL 3289094 46114 9250341.0 9250340.75 9250340.75 junkyard junkyard 2002-05-10 05:29:48.99081 1815-05-06 62 69 6e 61 72 79 original +6 2 true 400 44388 -100 953967041. 62.079153 718.78 1 verdict verdict timestamp date binary new +7 1 -false -67 833 63993 1255178165.77663 905070.974 -4314.7918 -1240033819 trial trial 2016-03-07 03:02:22.0 2016-03-07 binary new PREHOOK: query: drop table part_change_various_various_varchar PREHOOK: type: DROPTABLE PREHOOK: Input: default@part_change_various_various_varchar @@ -2340,7 +2392,8 @@ POSTHOOK: Output: database:default POSTHOOK: Output: default@part_change_various_various_varchar_trunc PREHOOK: query: insert into table part_change_various_various_varchar_trunc partition(part=1) values(1, true, 200, 72909, 3244222, -99999999999, -29.0764, 470614135, 470614135, 'dynamic reptile ', 'dynamic reptile ', '0004-09-22 18:26:29.519542222', '2007-02-09', 'binary', 'original'), - (2, 0, 100, 483777, 14, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, ' baffling ', ' baffling ', '2007-02-09 05:17:29.368756876', '0004-09-22', 'binary', 'original'), + (2, 0, 100, 32767, -23372036854775, -9223372036854775808.0, -9223372036854775808.0, 9223372036854775807.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, 100, -32768, 23372036854775, -9223372036854775809.0, -9223372036854775809.0, 9223372036854775808.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), (3, false, 72, 3244222, -93222, 30.774, - 66475.561431, -66475.561431, 0.561431, '1', '1', '6229-06-28 02:54:28.970117179', '5966-07-09', 'binary', 'original'), (4, 1, -90, 754072151, 3289094, 46114.284799488, 9250340.75, 9250340.75, 9250340.75, 'junkyard', 'junkyard', '2002-05-10 05:29:48.990818073', '1815-05-06', 'binary', 'original') PREHOOK: type: QUERY @@ -2348,7 +2401,8 @@ PREHOOK: Input: default@values__tmp__table__37 PREHOOK: Output: default@part_change_various_various_varchar_trunc@part=1 POSTHOOK: query: insert into table part_change_various_various_varchar_trunc partition(part=1) values(1, true, 200, 72909, 3244222, -99999999999, -29.0764, 470614135, 470614135, 'dynamic reptile ', 'dynamic reptile ', '0004-09-22 18:26:29.519542222', '2007-02-09', 'binary', 'original'), - (2, 0, 100, 483777, 14, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, ' baffling ', ' baffling ', '2007-02-09 05:17:29.368756876', '0004-09-22', 'binary', 'original'), + (2, 0, 100, 32767, -23372036854775, -9223372036854775808.0, -9223372036854775808.0, 9223372036854775807.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, 100, -32768, 23372036854775, -9223372036854775809.0, -9223372036854775809.0, 9223372036854775808.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), (3, false, 72, 3244222, -93222, 30.774, - 66475.561431, -66475.561431, 0.561431, '1', '1', '6229-06-28 02:54:28.970117179', '5966-07-09', 'binary', 'original'), (4, 1, -90, 754072151, 3289094, 46114.284799488, 9250340.75, 9250340.75, 9250340.75, 'junkyard', 'junkyard', '2002-05-10 05:29:48.990818073', '1815-05-06', 'binary', 'original') POSTHOOK: type: QUERY @@ -2382,8 +2436,9 @@ POSTHOOK: Input: default@part_change_various_various_varchar_trunc@part=1 #### A masked pattern was here #### insert_num part c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 c12 c13 b 1 1 true NULL NULL 3244222 -99999999999 -29.0764 4.70614135E8 470614135.000000000000000000 dynamic reptile dynamic reptile 0004-09-22 18:26:29.519542222 2007-02-09 binary original -2 1 true 100 NULL 14 -23866739993 -3651.672 46114.284799488 46114.284799488000000000 baffling baffling 2007-02-09 05:17:29.368756876 0004-09-22 binary original +2 1 true 100 32767 NULL -9223372036854775808 -9.223372E18 9.223372036854776E18 NULL 2007-02-09 05:17:29.368756876 NULL NULL NULL 3 1 false 72 NULL -93222 30 -66475.56 -66475.561431 0.561431000000000000 1 1 6229-06-28 02:54:28.970117179 5966-07-09 binary original +3 1 true 100 -32768 NULL NULL -9.223372E18 9.223372036854776E18 NULL 2007-02-09 05:17:29.368756876 NULL NULL NULL 4 1 true -90 NULL 3289094 46114 9250341.0 9250340.75 9250340.750000000000000000 junkyard junkyard 2002-05-10 05:29:48.990818073 1815-05-06 binary original PREHOOK: query: -- Table-Non-Cascade CHANGE COLUMNS ... alter table part_change_various_various_varchar_trunc replace columns (insert_num int, c1 VARCHAR(8), c2 VARCHAR(8), c3 VARCHAR(8), c4 VARCHAR(8), c5 VARCHAR(8), c6 VARCHAR(8), c7 VARCHAR(8), c8 VARCHAR(8), c9 VARCHAR(8), c10 VARCHAR(8), c11 VARCHAR(8), c12 VARCHAR(8), c13 VARCHAR(8), b STRING) @@ -2464,25 +2519,25 @@ STAGE PLANS: Map Operator Tree: TableScan alias: part_change_various_various_varchar_trunc - Statistics: Num rows: 6 Data size: 4694 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 4674 Basic stats: COMPLETE Column stats: NONE Select Operator expressions: insert_num (type: int), part (type: int), c1 (type: varchar(8)), c2 (type: varchar(8)), c3 (type: varchar(8)), c4 (type: varchar(8)), c5 (type: varchar(8)), c6 (type: varchar(8)), c7 (type: varchar(8)), c8 (type: varchar(8)), c9 (type: varchar(8)), c10 (type: varchar(8)), c11 (type: varchar(8)), c12 (type: varchar(8)), c13 (type: varchar(8)), b (type: string) outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6, _col7, _col8, _col9, _col10, _col11, _col12, _col13, _col14, _col15 - Statistics: Num rows: 6 Data size: 4694 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 4674 Basic stats: COMPLETE Column stats: NONE Reduce Output Operator key expressions: _col0 (type: int) sort order: + - Statistics: Num rows: 6 Data size: 4694 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 4674 Basic stats: COMPLETE Column stats: NONE value expressions: _col1 (type: int), _col2 (type: varchar(8)), _col3 (type: varchar(8)), _col4 (type: varchar(8)), _col5 (type: varchar(8)), _col6 (type: varchar(8)), _col7 (type: varchar(8)), _col8 (type: varchar(8)), _col9 (type: varchar(8)), _col10 (type: varchar(8)), _col11 (type: varchar(8)), _col12 (type: varchar(8)), _col13 (type: varchar(8)), _col14 (type: varchar(8)), _col15 (type: string) Execution mode: vectorized Reduce Operator Tree: Select Operator expressions: KEY.reducesinkkey0 (type: int), VALUE._col0 (type: int), VALUE._col1 (type: varchar(8)), VALUE._col2 (type: varchar(8)), VALUE._col3 (type: varchar(8)), VALUE._col4 (type: varchar(8)), VALUE._col5 (type: varchar(8)), VALUE._col6 (type: varchar(8)), VALUE._col7 (type: varchar(8)), VALUE._col8 (type: varchar(8)), VALUE._col9 (type: varchar(8)), VALUE._col10 (type: varchar(8)), VALUE._col11 (type: varchar(8)), VALUE._col12 (type: varchar(8)), VALUE._col13 (type: varchar(8)), VALUE._col14 (type: string) outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6, _col7, _col8, _col9, _col10, _col11, _col12, _col13, _col14, _col15 - Statistics: Num rows: 6 Data size: 4694 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 4674 Basic stats: COMPLETE Column stats: NONE File Output Operator compressed: false - Statistics: Num rows: 6 Data size: 4694 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 4674 Basic stats: COMPLETE Column stats: NONE table: input format: org.apache.hadoop.mapred.SequenceFileInputFormat output format: org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat @@ -2508,8 +2563,9 @@ POSTHOOK: Input: default@part_change_various_various_varchar_trunc@part=2 #### A masked pattern was here #### insert_num part c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 c12 c13 b 1 1 TRUE NULL NULL 3244222 -9999999 -29.0764 4.706141 47061413 dynamic dynamic 0004-09- 2007-02- 62 69 6e original -2 1 TRUE 100 NULL 14 -2386673 -3651.67 46114.28 46114.28 baffli baffli 2007-02- 0004-09- 62 69 6e original +2 1 TRUE 100 32767 NULL -9223372 -9.22337 9.223372 NULL 2007-02- NULL NULL NULL 3 1 FALSE 72 NULL -93222 30 -66475.5 -66475.5 0.561431 1 1 6229-06- 5966-07- 62 69 6e original +3 1 TRUE 100 -32768 NULL NULL -9.22337 9.223372 NULL 2007-02- NULL NULL NULL 4 1 TRUE -90 NULL 3289094 46114 9250341. 9250340. 9250340. junkyard junkyard 2002-05- 1815-05- 62 69 6e original 5 2 true 400 44388 -100 95396704 62.07915 718.78 1 verdict verdict timestam date binary new 6 1 -false -67 833 63993 1255178 905070.9 -4314.79 -1240033 trial trial 2016-03- 2016-03- binary new @@ -2537,17 +2593,19 @@ POSTHOOK: Output: database:default POSTHOOK: Output: default@part_change_various_various_timestamp PREHOOK: query: insert into table part_change_various_various_timestamp partition(part=1) values(1, true, 200, 72909, 3244222, -99999999999, -29.0764, 470614135, 470614135, '0004-09-22 18:26:29.519542222', '0004-09-22 18:26:29.519542222', '0004-09-22 18:26:29.519542222', '2007-02-09', 'original'), - (2, 0, 100, 483777, 14, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, '2007-02-09 05:17:29.368756876', '2007-02-09 05:17:29.368756876', '2007-02-09 05:17:29.368756876', '0004-09-22', 'original'), - (3, false, 72, 3244222, -93222, 30.774, - 66475.561431, -66475.561431, 0.561431, '6229-06-28 02:54:28.970117179', '6229-06-28 02:54:28.970117179', '6229-06-28 02:54:28.970117179', '5966-07-09', 'original'), - (4, 1, -90, 754072151, 3289094, 46114.284799488, 9250340.75, 9250340.75, 9250340.75, '2002-05-10 05:29:48.990818073', '2002-05-10 05:29:48.990818073', '2002-05-10 05:29:48.990818073', '1815-05-06', 'original') + (2, 0, 100, 32767, -23372036854775, -9223372036854775808.0, -9223372036854775808.0, 9223372036854775807.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, 100, -32768, 23372036854775, -9223372036854775809.0, -9223372036854775809.0, 9223372036854775808.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, 72, 3244222, -93222, 30.774, - 66475.561431, -66475.561431, 0.561431, '6229-06-28 02:54:28.970117179', '6229-06-28 02:54:28.970117179', '6229-06-28 02:54:28.970117179', '5966-07-09', 'original'), + (5, 1, -90, 754072151, 3289094, 46114.284799488, 9250340.75, 9250340.75, 9250340.75, '2002-05-10 05:29:48.990818073', '2002-05-10 05:29:48.990818073', '2002-05-10 05:29:48.990818073', '1815-05-06', 'original') PREHOOK: type: QUERY PREHOOK: Input: default@values__tmp__table__40 PREHOOK: Output: default@part_change_various_various_timestamp@part=1 POSTHOOK: query: insert into table part_change_various_various_timestamp partition(part=1) values(1, true, 200, 72909, 3244222, -99999999999, -29.0764, 470614135, 470614135, '0004-09-22 18:26:29.519542222', '0004-09-22 18:26:29.519542222', '0004-09-22 18:26:29.519542222', '2007-02-09', 'original'), - (2, 0, 100, 483777, 14, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, '2007-02-09 05:17:29.368756876', '2007-02-09 05:17:29.368756876', '2007-02-09 05:17:29.368756876', '0004-09-22', 'original'), - (3, false, 72, 3244222, -93222, 30.774, - 66475.561431, -66475.561431, 0.561431, '6229-06-28 02:54:28.970117179', '6229-06-28 02:54:28.970117179', '6229-06-28 02:54:28.970117179', '5966-07-09', 'original'), - (4, 1, -90, 754072151, 3289094, 46114.284799488, 9250340.75, 9250340.75, 9250340.75, '2002-05-10 05:29:48.990818073', '2002-05-10 05:29:48.990818073', '2002-05-10 05:29:48.990818073', '1815-05-06', 'original') + (2, 0, 100, 32767, -23372036854775, -9223372036854775808.0, -9223372036854775808.0, 9223372036854775807.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, 100, -32768, 23372036854775, -9223372036854775809.0, -9223372036854775809.0, 9223372036854775808.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, 72, 3244222, -93222, 30.774, - 66475.561431, -66475.561431, 0.561431, '6229-06-28 02:54:28.970117179', '6229-06-28 02:54:28.970117179', '6229-06-28 02:54:28.970117179', '5966-07-09', 'original'), + (5, 1, -90, 754072151, 3289094, 46114.284799488, 9250340.75, 9250340.75, 9250340.75, '2002-05-10 05:29:48.990818073', '2002-05-10 05:29:48.990818073', '2002-05-10 05:29:48.990818073', '1815-05-06', 'original') POSTHOOK: type: QUERY POSTHOOK: Input: default@values__tmp__table__40 POSTHOOK: Output: default@part_change_various_various_timestamp@part=1 @@ -2578,9 +2636,10 @@ POSTHOOK: Input: default@part_change_various_various_timestamp@part=1 #### A masked pattern was here #### insert_num part c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 c12 b 1 1 true NULL NULL 3244222 -99999999999 -29.0764 4.70614135E8 470614135.000000000000000000 0004-09-22 18:26:29.519542222 0004-09-22 18:26:29.51954 0004-09-22 18:26:29.51954 2007-02-09 original -2 1 true 100 NULL 14 -23866739993 -3651.672 46114.284799488 46114.284799488000000000 2007-02-09 05:17:29.368756876 2007-02-09 05:17:29.36875 2007-02-09 05:17:29.36875 0004-09-22 original -3 1 false 72 NULL -93222 30 -66475.56 -66475.561431 0.561431000000000000 6229-06-28 02:54:28.970117179 6229-06-28 02:54:28.97011 6229-06-28 02:54:28.97011 5966-07-09 original -4 1 true -90 NULL 3289094 46114 9250341.0 9250340.75 9250340.750000000000000000 2002-05-10 05:29:48.990818073 2002-05-10 05:29:48.99081 2002-05-10 05:29:48.99081 1815-05-06 original +2 1 true 100 32767 NULL -9223372036854775808 -9.223372E18 9.223372036854776E18 NULL 2007-02-09 05:17:29.36875 NULL NULL +3 1 true 100 -32768 NULL NULL -9.223372E18 9.223372036854776E18 NULL 2007-02-09 05:17:29.36875 NULL NULL +4 1 false 72 NULL -93222 30 -66475.56 -66475.561431 0.561431000000000000 6229-06-28 02:54:28.970117179 6229-06-28 02:54:28.97011 6229-06-28 02:54:28.97011 5966-07-09 original +5 1 true -90 NULL 3289094 46114 9250341.0 9250340.75 9250340.750000000000000000 2002-05-10 05:29:48.990818073 2002-05-10 05:29:48.99081 2002-05-10 05:29:48.99081 1815-05-06 original PREHOOK: query: -- Table-Non-Cascade CHANGE COLUMNS ... alter table part_change_various_various_timestamp replace columns (insert_num int, c1 TIMESTAMP, c2 TIMESTAMP, c3 TIMESTAMP, c4 TIMESTAMP, c5 TIMESTAMP, c6 TIMESTAMP, c7 TIMESTAMP, c8 TIMESTAMP, c9 TIMESTAMP, c10 TIMESTAMP, c11 TIMESTAMP, c12 TIMESTAMP, b STRING) PREHOOK: type: ALTERTABLE_REPLACECOLS @@ -2592,12 +2651,12 @@ POSTHOOK: type: ALTERTABLE_REPLACECOLS POSTHOOK: Input: default@part_change_various_various_timestamp POSTHOOK: Output: default@part_change_various_various_timestamp PREHOOK: query: insert into table part_change_various_various_timestamp partition(part=2) - values (5, 'true', '400', '44388', -'100', '953967041.', '62.079153', '718.78', '1', 'timestamp', 'timestamp', 'timestamp', 'date', 'new') + values (6, 'true', '400', '44388', -'100', '953967041.', '62.079153', '718.78', '1', 'timestamp', 'timestamp', 'timestamp', 'date', 'new') PREHOOK: type: QUERY PREHOOK: Input: default@values__tmp__table__41 PREHOOK: Output: default@part_change_various_various_timestamp@part=2 POSTHOOK: query: insert into table part_change_various_various_timestamp partition(part=2) - values (5, 'true', '400', '44388', -'100', '953967041.', '62.079153', '718.78', '1', 'timestamp', 'timestamp', 'timestamp', 'date', 'new') + values (6, 'true', '400', '44388', -'100', '953967041.', '62.079153', '718.78', '1', 'timestamp', 'timestamp', 'timestamp', 'date', 'new') POSTHOOK: type: QUERY POSTHOOK: Input: default@values__tmp__table__41 POSTHOOK: Output: default@part_change_various_various_timestamp@part=2 @@ -2617,12 +2676,12 @@ POSTHOOK: Lineage: part_change_various_various_timestamp PARTITION(part=2).c9 EX POSTHOOK: Lineage: part_change_various_various_timestamp PARTITION(part=2).insert_num EXPRESSION [(values__tmp__table__41)values__tmp__table__41.FieldSchema(name:tmp_values_col1, type:string, comment:), ] _col0 _col1 _col2 _col3 _col4 _col5 _col6 _col7 _col8 _col9 _col10 _col11 _col12 _col13 PREHOOK: query: insert into table part_change_various_various_timestamp partition(part=1) - values (6,-'false', '-67', '833', '63993', ' 1255178165.77663', '905070.974', '-4314.7918', -'1240033819', '2016-03-07 03:02:22.0', '2016-03-07 03:02:22.0', '2016-03-07 03:02:22.0', '2016-03-07', 'new') + values (7,-'false', '-67', '833', '63993', ' 1255178165.77663', '905070.974', '-4314.7918', -'1240033819', '2016-03-07 03:02:22.0', '2016-03-07 03:02:22.0', '2016-03-07 03:02:22.0', '2016-03-07', 'new') PREHOOK: type: QUERY PREHOOK: Input: default@values__tmp__table__42 PREHOOK: Output: default@part_change_various_various_timestamp@part=1 POSTHOOK: query: insert into table part_change_various_various_timestamp partition(part=1) - values (6,-'false', '-67', '833', '63993', ' 1255178165.77663', '905070.974', '-4314.7918', -'1240033819', '2016-03-07 03:02:22.0', '2016-03-07 03:02:22.0', '2016-03-07 03:02:22.0', '2016-03-07', 'new') + values (7,-'false', '-67', '833', '63993', ' 1255178165.77663', '905070.974', '-4314.7918', -'1240033819', '2016-03-07 03:02:22.0', '2016-03-07 03:02:22.0', '2016-03-07 03:02:22.0', '2016-03-07', 'new') POSTHOOK: type: QUERY POSTHOOK: Input: default@values__tmp__table__42 POSTHOOK: Output: default@part_change_various_various_timestamp@part=1 @@ -2658,25 +2717,25 @@ STAGE PLANS: Map Operator Tree: TableScan alias: part_change_various_various_timestamp - Statistics: Num rows: 6 Data size: 2806 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 2845 Basic stats: COMPLETE Column stats: NONE Select Operator expressions: insert_num (type: int), part (type: int), c1 (type: timestamp), c2 (type: timestamp), c3 (type: timestamp), c4 (type: timestamp), c5 (type: timestamp), c6 (type: timestamp), c7 (type: timestamp), c8 (type: timestamp), c9 (type: timestamp), c10 (type: timestamp), c11 (type: timestamp), c12 (type: timestamp), b (type: string) outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6, _col7, _col8, _col9, _col10, _col11, _col12, _col13, _col14 - Statistics: Num rows: 6 Data size: 2806 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 2845 Basic stats: COMPLETE Column stats: NONE Reduce Output Operator key expressions: _col0 (type: int) sort order: + - Statistics: Num rows: 6 Data size: 2806 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 2845 Basic stats: COMPLETE Column stats: NONE value expressions: _col1 (type: int), _col2 (type: timestamp), _col3 (type: timestamp), _col4 (type: timestamp), _col5 (type: timestamp), _col6 (type: timestamp), _col7 (type: timestamp), _col8 (type: timestamp), _col9 (type: timestamp), _col10 (type: timestamp), _col11 (type: timestamp), _col12 (type: timestamp), _col13 (type: timestamp), _col14 (type: string) Execution mode: vectorized Reduce Operator Tree: Select Operator expressions: KEY.reducesinkkey0 (type: int), VALUE._col0 (type: int), VALUE._col1 (type: timestamp), VALUE._col2 (type: timestamp), VALUE._col3 (type: timestamp), VALUE._col4 (type: timestamp), VALUE._col5 (type: timestamp), VALUE._col6 (type: timestamp), VALUE._col7 (type: timestamp), VALUE._col8 (type: timestamp), VALUE._col9 (type: timestamp), VALUE._col10 (type: timestamp), VALUE._col11 (type: timestamp), VALUE._col12 (type: timestamp), VALUE._col13 (type: string) outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6, _col7, _col8, _col9, _col10, _col11, _col12, _col13, _col14 - Statistics: Num rows: 6 Data size: 2806 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 2845 Basic stats: COMPLETE Column stats: NONE File Output Operator compressed: false - Statistics: Num rows: 6 Data size: 2806 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 2845 Basic stats: COMPLETE Column stats: NONE table: input format: org.apache.hadoop.mapred.SequenceFileInputFormat output format: org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat @@ -2702,11 +2761,12 @@ POSTHOOK: Input: default@part_change_various_various_timestamp@part=2 #### A masked pattern was here #### insert_num part c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 c12 b 1 1 1969-12-31 16:00:00.001 NULL NULL 1969-12-31 16:54:04.222 1966-10-31 06:13:20.001 1969-12-31 15:59:30.923599244 1984-11-29 14:08:55 1984-11-29 14:08:55 0004-09-22 18:26:29.519542222 0004-09-22 18:26:29.51954 0004-09-22 18:26:29.51954 2007-02-09 00:00:00 original -2 1 1969-12-31 16:00:00.001 1969-12-31 16:00:00.1 NULL 1969-12-31 16:00:00.014 1969-03-30 10:21:00.007 1969-12-31 14:59:08.32788086 1970-01-01 04:48:34.284799488 1970-01-01 04:48:34.284799488 2007-02-09 05:17:29.368756876 2007-02-09 05:17:29.36875 2007-02-09 05:17:29.36875 0004-09-22 00:00:00 original -3 1 1969-12-31 16:00:00 1969-12-31 16:00:00.072 NULL 1969-12-31 15:58:26.778 1969-12-31 16:00:00.03 1969-12-30 21:32:04.4375 1969-12-30 21:32:04.438569 1969-12-31 16:00:00.561431 6229-06-28 02:54:28.970117179 6229-06-28 02:54:28.97011 6229-06-28 02:54:28.97011 5966-07-09 00:00:00 original -4 1 1969-12-31 16:00:00.001 1969-12-31 15:59:59.91 NULL 1969-12-31 16:54:49.094 1969-12-31 16:00:46.114 1970-04-17 17:32:21 1970-04-17 17:32:20.75 1970-04-17 17:32:20.75 2002-05-10 05:29:48.990818073 2002-05-10 05:29:48.99081 2002-05-10 05:29:48.99081 1815-05-06 00:00:00 original -5 2 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL new -6 1 NULL NULL NULL NULL NULL NULL NULL NULL 2016-03-07 03:02:22 2016-03-07 03:02:22 2016-03-07 03:02:22 NULL new +2 1 1969-12-31 16:00:00.001 1969-12-31 16:00:00.1 1969-12-31 16:00:32.767 NULL NULL NULL 1969-12-31 15:59:58.72647168 NULL NULL NULL 2007-02-09 05:17:29.36875 NULL NULL +3 1 1969-12-31 16:00:00.001 1969-12-31 16:00:00.1 1969-12-31 15:59:27.232 NULL NULL NULL 1969-12-31 15:59:58.72647168 NULL NULL NULL 2007-02-09 05:17:29.36875 NULL NULL +4 1 1969-12-31 16:00:00 1969-12-31 16:00:00.072 NULL 1969-12-31 15:58:26.778 1969-12-31 16:00:00.03 1969-12-30 21:32:04.4375 1969-12-30 21:32:04.438569 1969-12-31 16:00:00.561431 6229-06-28 02:54:28.970117179 6229-06-28 02:54:28.97011 6229-06-28 02:54:28.97011 5966-07-09 00:00:00 original +5 1 1969-12-31 16:00:00.001 1969-12-31 15:59:59.91 NULL 1969-12-31 16:54:49.094 1969-12-31 16:00:46.114 1970-04-17 17:32:21 1970-04-17 17:32:20.75 1970-04-17 17:32:20.75 2002-05-10 05:29:48.990818073 2002-05-10 05:29:48.99081 2002-05-10 05:29:48.99081 1815-05-06 00:00:00 original +6 2 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL new +7 1 NULL NULL NULL NULL NULL NULL NULL NULL 2016-03-07 03:02:22 2016-03-07 03:02:22 2016-03-07 03:02:22 NULL new PREHOOK: query: drop table part_change_various_various_timestamp PREHOOK: type: DROPTABLE PREHOOK: Input: default@part_change_various_various_timestamp diff --git ql/src/test/results/clientpositive/schema_evol_stats.q.out ql/src/test/results/clientpositive/schema_evol_stats.q.out index 63b4c19..63dab2e 100644 --- ql/src/test/results/clientpositive/schema_evol_stats.q.out +++ ql/src/test/results/clientpositive/schema_evol_stats.q.out @@ -109,7 +109,7 @@ Database: default Table: partitioned1 #### A masked pattern was here #### Partition Parameters: - COLUMN_STATS_ACCURATE {\"BASIC_STATS\":\"true\",\"COLUMN_STATS\":{\"a\":\"true\",\"b\":\"true\",\"c\":\"true\",\"d\":\"true\"}} + COLUMN_STATS_ACCURATE {\"COLUMN_STATS\":{\"a\":\"true\",\"b\":\"true\",\"c\":\"true\",\"d\":\"true\"},\"BASIC_STATS\":\"true\"} numFiles 1 numRows 4 rawDataSize 40 @@ -150,7 +150,7 @@ Database: default Table: partitioned1 #### A masked pattern was here #### Partition Parameters: - COLUMN_STATS_ACCURATE {\"BASIC_STATS\":\"true\",\"COLUMN_STATS\":{\"a\":\"true\",\"b\":\"true\",\"c\":\"true\",\"d\":\"true\"}} + COLUMN_STATS_ACCURATE {\"COLUMN_STATS\":{\"a\":\"true\",\"b\":\"true\",\"c\":\"true\",\"d\":\"true\"},\"BASIC_STATS\":\"true\"} numFiles 1 numRows 4 rawDataSize 56 @@ -309,7 +309,7 @@ Database: default Table: partitioned1 #### A masked pattern was here #### Partition Parameters: - COLUMN_STATS_ACCURATE {\"BASIC_STATS\":\"true\",\"COLUMN_STATS\":{\"a\":\"true\",\"b\":\"true\",\"c\":\"true\",\"d\":\"true\"}} + COLUMN_STATS_ACCURATE {\"COLUMN_STATS\":{\"a\":\"true\",\"b\":\"true\",\"c\":\"true\",\"d\":\"true\"},\"BASIC_STATS\":\"true\"} numFiles 1 numRows 4 rawDataSize 384 @@ -350,7 +350,7 @@ Database: default Table: partitioned1 #### A masked pattern was here #### Partition Parameters: - COLUMN_STATS_ACCURATE {\"BASIC_STATS\":\"true\",\"COLUMN_STATS\":{\"a\":\"true\",\"b\":\"true\",\"c\":\"true\",\"d\":\"true\"}} + COLUMN_STATS_ACCURATE {\"COLUMN_STATS\":{\"a\":\"true\",\"b\":\"true\",\"c\":\"true\",\"d\":\"true\"},\"BASIC_STATS\":\"true\"} numFiles 1 numRows 4 rawDataSize 732 diff --git ql/src/test/results/clientpositive/schema_evol_text_nonvec_mapwork_part_all_primitive.q.out ql/src/test/results/clientpositive/schema_evol_text_nonvec_mapwork_part_all_primitive.q.out index 7d45136..2e0b949 100644 --- ql/src/test/results/clientpositive/schema_evol_text_nonvec_mapwork_part_all_primitive.q.out +++ ql/src/test/results/clientpositive/schema_evol_text_nonvec_mapwork_part_all_primitive.q.out @@ -200,6 +200,7 @@ POSTHOOK: Input: default@part_change_various_various_boolean POSTHOOK: Output: default@part_change_various_various_boolean PREHOOK: query: -- -- SUBSECTION: ALTER TABLE CHANGE COLUMNS for Various --> Various: (BOOLEAN, SHORT, INT, LONG, FLOAT, DOUBLE, DECIMAL, STRING, CHAR, VARCHAR, TIMESTAMP) --> BYTE +-- -128 and a maximum value of 127 -- CREATE TABLE part_change_various_various_tinyint(insert_num int, c1 BOOLEAN, c2 SMALLINT, c3 INT, c4 BIGINT, c5 FLOAT, c6 DOUBLE, c7 DECIMAL(38,18), c8 STRING, c9 CHAR(25), c10 VARCHAR(25), c11 TIMESTAMP, b STRING) PARTITIONED BY(part INT) PREHOOK: type: CREATETABLE @@ -207,24 +208,27 @@ PREHOOK: Output: database:default PREHOOK: Output: default@part_change_various_various_tinyint POSTHOOK: query: -- -- SUBSECTION: ALTER TABLE CHANGE COLUMNS for Various --> Various: (BOOLEAN, SHORT, INT, LONG, FLOAT, DOUBLE, DECIMAL, STRING, CHAR, VARCHAR, TIMESTAMP) --> BYTE +-- -128 and a maximum value of 127 -- CREATE TABLE part_change_various_various_tinyint(insert_num int, c1 BOOLEAN, c2 SMALLINT, c3 INT, c4 BIGINT, c5 FLOAT, c6 DOUBLE, c7 DECIMAL(38,18), c8 STRING, c9 CHAR(25), c10 VARCHAR(25), c11 TIMESTAMP, b STRING) PARTITIONED BY(part INT) POSTHOOK: type: CREATETABLE POSTHOOK: Output: database:default POSTHOOK: Output: default@part_change_various_various_tinyint PREHOOK: query: insert into table part_change_various_various_tinyint partition(part=1) - values(1, true, 2000, 72909, 3244222, -29.0764, 470614135, 470614135, '-2999', '-2999', '-2999', '0004-09-22 18:26:29.519542222', 'original'), - (2, 0, 1000, 483777, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), - (3, false, 72909, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '1', '1', '1', '6229-06-28 02:54:28.970117179', 'original'), - (4, 1, 90000, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '5299', '5299', '5299', '2002-05-10 05:29:48.990818073', 'original') + values(1, true, 2000, 72909, 3244222, -29.0764, 470614135, 470614135, '129', '-128', '-2999', '0004-09-22 18:26:29.519542222', 'original'), + (2, 0, -128, -48, -20, -9223372036854775808.0, -9223372036854775808.0, 9223372036854775807.0, '128', '-99', '40', '2007-02-09 05:17:29.368756876', 'original'), + (3, -1, -129, 100, 499, -9223372036854775809.0, -9223372036854775809.0, 9223372036854775808.0, '128', '-99', '40', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, -72, -127, 127, 30.774, 127.561431, -106.561431, '90.284799488', '90.284799488', '1', '6229-06-28 02:54:28.970117179', 'original'), + (5, 1, -90, 75, -38, 109.284799488 ,-128.75, 98.75, '120.4', '33.333', '0.45', '2002-05-10 05:29:48.990818073', 'original') PREHOOK: type: QUERY PREHOOK: Input: default@values__tmp__table__4 PREHOOK: Output: default@part_change_various_various_tinyint@part=1 POSTHOOK: query: insert into table part_change_various_various_tinyint partition(part=1) - values(1, true, 2000, 72909, 3244222, -29.0764, 470614135, 470614135, '-2999', '-2999', '-2999', '0004-09-22 18:26:29.519542222', 'original'), - (2, 0, 1000, 483777, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), - (3, false, 72909, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '1', '1', '1', '6229-06-28 02:54:28.970117179', 'original'), - (4, 1, 90000, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '5299', '5299', '5299', '2002-05-10 05:29:48.990818073', 'original') + values(1, true, 2000, 72909, 3244222, -29.0764, 470614135, 470614135, '129', '-128', '-2999', '0004-09-22 18:26:29.519542222', 'original'), + (2, 0, -128, -48, -20, -9223372036854775808.0, -9223372036854775808.0, 9223372036854775807.0, '128', '-99', '40', '2007-02-09 05:17:29.368756876', 'original'), + (3, -1, -129, 100, 499, -9223372036854775809.0, -9223372036854775809.0, 9223372036854775808.0, '128', '-99', '40', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, -72, -127, 127, 30.774, 127.561431, -106.561431, '90.284799488', '90.284799488', '1', '6229-06-28 02:54:28.970117179', 'original'), + (5, 1, -90, 75, -38, 109.284799488 ,-128.75, 98.75, '120.4', '33.333', '0.45', '2002-05-10 05:29:48.990818073', 'original') POSTHOOK: type: QUERY POSTHOOK: Input: default@values__tmp__table__4 POSTHOOK: Output: default@part_change_various_various_tinyint@part=1 @@ -253,10 +257,11 @@ POSTHOOK: Input: default@part_change_various_various_tinyint POSTHOOK: Input: default@part_change_various_various_tinyint@part=1 #### A masked pattern was here #### insert_num part c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 b -1 1 true 2000 72909 3244222 -29.0764 4.70614135E8 470614135.000000000000000000 -2999 -2999 -2999 0004-09-22 18:26:29.519542222 original -2 1 true 1000 483777 -23866739993 -3651.672 46114.284799488 46114.284799488000000000 2007-02-09 05:17:29.368756876 original -3 1 false NULL 3244222 -93222 30.774 -66475.561431 -66475.561431000000000000 1 1 1 6229-06-28 02:54:28.970117179 original -4 1 true NULL 754072151 3289094 46114.285 9250340.75 9250340.750000000000000000 5299 5299 5299 2002-05-10 05:29:48.990818073 original +1 1 true 2000 72909 3244222 -29.0764 4.70614135E8 470614135.000000000000000000 129 -128 -2999 0004-09-22 18:26:29.519542222 original +2 1 true -128 -48 -20 -9.223372E18 -9.223372036854776E18 9223372036854775807.000000000000000000 128 -99 40 2007-02-09 05:17:29.368756876 original +3 1 true -129 100 499 -9.223372E18 -9.223372036854776E18 9223372036854775808.000000000000000000 128 -99 40 2007-02-09 05:17:29.368756876 original +4 1 false -72 -127 127 30.774 127.561431 -106.561431000000000000 90.284799488 90.284799488 1 6229-06-28 02:54:28.970117179 original +5 1 true -90 75 -38 109.2848 -128.75 98.750000000000000000 120.4 33.333 0.45 2002-05-10 05:29:48.990818073 original PREHOOK: query: -- Table-Non-Cascade CHANGE COLUMNS ... alter table part_change_various_various_tinyint replace columns (insert_num int, c1 TINYINT, c2 TINYINT, c3 TINYINT, c4 TINYINT, c5 TINYINT, c6 TINYINT, c7 TINYINT, c8 TINYINT, c9 TINYINT, c10 TINYINT, c11 TINYINT, b STRING) PREHOOK: type: ALTERTABLE_REPLACECOLS @@ -268,12 +273,12 @@ POSTHOOK: type: ALTERTABLE_REPLACECOLS POSTHOOK: Input: default@part_change_various_various_tinyint POSTHOOK: Output: default@part_change_various_various_tinyint PREHOOK: query: insert into table part_change_various_various_tinyint partition(part=2) - values (5, 23, 71, 127, 1, 131, -60, 68, -230, -182, 40, 93, 'new') + values (6, 23, 71, 127, 1, 131, -60, 68, -230, -182, 40, 93, 'new') PREHOOK: type: QUERY PREHOOK: Input: default@values__tmp__table__5 PREHOOK: Output: default@part_change_various_various_tinyint@part=2 POSTHOOK: query: insert into table part_change_various_various_tinyint partition(part=2) - values (5, 23, 71, 127, 1, 131, -60, 68, -230, -182, 40, 93, 'new') + values (6, 23, 71, 127, 1, 131, -60, 68, -230, -182, 40, 93, 'new') POSTHOOK: type: QUERY POSTHOOK: Input: default@values__tmp__table__5 POSTHOOK: Output: default@part_change_various_various_tinyint@part=2 @@ -292,12 +297,12 @@ POSTHOOK: Lineage: part_change_various_various_tinyint PARTITION(part=2).c9 EXPR POSTHOOK: Lineage: part_change_various_various_tinyint PARTITION(part=2).insert_num EXPRESSION [(values__tmp__table__5)values__tmp__table__5.FieldSchema(name:tmp_values_col1, type:string, comment:), ] _col0 _col1 _col2 _col3 _col4 _col5 _col6 _col7 _col8 _col9 _col10 _col11 _col12 PREHOOK: query: insert into table part_change_various_various_tinyint partition(part=1) - values (6, -248, 85, -126, -167, 91, 113, -28, -63, 0, 8, 237, 'new') + values (7, -120, 85, -126, -167, 91, 113, -28, -63, 0, 8, 237, 'new') PREHOOK: type: QUERY PREHOOK: Input: default@values__tmp__table__6 PREHOOK: Output: default@part_change_various_various_tinyint@part=1 POSTHOOK: query: insert into table part_change_various_various_tinyint partition(part=1) - values (6, -248, 85, -126, -167, 91, 113, -28, -63, 0, 8, 237, 'new') + values (7, -120, 85, -126, -167, 91, 113, -28, -63, 0, 8, 237, 'new') POSTHOOK: type: QUERY POSTHOOK: Input: default@values__tmp__table__6 POSTHOOK: Output: default@part_change_various_various_tinyint@part=1 @@ -332,24 +337,24 @@ STAGE PLANS: Map Operator Tree: TableScan alias: part_change_various_various_tinyint - Statistics: Num rows: 6 Data size: 673 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 837 Basic stats: COMPLETE Column stats: NONE Select Operator expressions: insert_num (type: int), part (type: int), c1 (type: tinyint), c2 (type: tinyint), c3 (type: tinyint), c4 (type: tinyint), c5 (type: tinyint), c6 (type: tinyint), c7 (type: tinyint), c8 (type: tinyint), c9 (type: tinyint), c10 (type: tinyint), c11 (type: tinyint), b (type: string) outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6, _col7, _col8, _col9, _col10, _col11, _col12, _col13 - Statistics: Num rows: 6 Data size: 673 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 837 Basic stats: COMPLETE Column stats: NONE Reduce Output Operator key expressions: _col0 (type: int) sort order: + - Statistics: Num rows: 6 Data size: 673 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 837 Basic stats: COMPLETE Column stats: NONE value expressions: _col1 (type: int), _col2 (type: tinyint), _col3 (type: tinyint), _col4 (type: tinyint), _col5 (type: tinyint), _col6 (type: tinyint), _col7 (type: tinyint), _col8 (type: tinyint), _col9 (type: tinyint), _col10 (type: tinyint), _col11 (type: tinyint), _col12 (type: tinyint), _col13 (type: string) Reduce Operator Tree: Select Operator expressions: KEY.reducesinkkey0 (type: int), VALUE._col0 (type: int), VALUE._col1 (type: tinyint), VALUE._col2 (type: tinyint), VALUE._col3 (type: tinyint), VALUE._col4 (type: tinyint), VALUE._col5 (type: tinyint), VALUE._col6 (type: tinyint), VALUE._col7 (type: tinyint), VALUE._col8 (type: tinyint), VALUE._col9 (type: tinyint), VALUE._col10 (type: tinyint), VALUE._col11 (type: tinyint), VALUE._col12 (type: string) outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6, _col7, _col8, _col9, _col10, _col11, _col12, _col13 - Statistics: Num rows: 6 Data size: 673 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 837 Basic stats: COMPLETE Column stats: NONE File Output Operator compressed: false - Statistics: Num rows: 6 Data size: 673 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 837 Basic stats: COMPLETE Column stats: NONE table: input format: org.apache.hadoop.mapred.SequenceFileInputFormat output format: org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat @@ -374,12 +379,13 @@ POSTHOOK: Input: default@part_change_various_various_tinyint@part=1 POSTHOOK: Input: default@part_change_various_various_tinyint@part=2 #### A masked pattern was here #### insert_num part c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 b -1 1 1 -48 -51 -66 -29 119 119 73 73 73 -43 original -2 1 1 -24 -63 -25 -67 34 34 NULL NULL NULL 105 original -3 1 0 NULL -66 -38 30 85 85 1 1 1 84 original -4 1 1 NULL 87 6 34 36 36 -77 -77 -77 60 original -5 2 23 71 127 1 NULL -60 68 NULL NULL 40 93 new -6 1 NULL 85 -126 NULL 91 113 -28 -63 0 8 NULL new +1 1 1 -48 -51 -66 -29 119 119 -127 -128 73 -43 original +2 1 1 -128 -48 -20 0 0 -1 -128 -99 40 105 original +3 1 1 127 100 -13 0 0 0 -128 -99 40 105 original +4 1 0 -72 -127 127 30 127 -106 90 NULL 1 84 original +5 1 1 -90 75 -38 109 -128 98 120 NULL NULL 60 original +6 2 23 71 127 1 NULL -60 68 NULL NULL 40 93 new +7 1 NULL 85 -126 NULL 91 113 -28 -63 0 8 NULL new PREHOOK: query: drop table part_change_various_various_tinyint PREHOOK: type: DROPTABLE PREHOOK: Input: default@part_change_various_various_tinyint @@ -390,6 +396,7 @@ POSTHOOK: Input: default@part_change_various_various_tinyint POSTHOOK: Output: default@part_change_various_various_tinyint PREHOOK: query: -- -- SUBSECTION: ALTER TABLE CHANGE COLUMNS for Various --> Various: (BOOLEAN, TINYINT, INT, LONG, FLOAT, DOUBLE, DECIMAL, STRING, CHAR, VARCHAR, TIMESTAMP) --> SMALLINT +-- -32768 and a maximum value of 32767 -- CREATE TABLE part_change_various_various_smallint(insert_num int, c1 BOOLEAN, c2 TINYINT, c3 INT, c4 BIGINT, c5 FLOAT, c6 DOUBLE, c7 DECIMAL(38,18), c8 STRING, c9 CHAR(25), c10 VARCHAR(25), c11 TIMESTAMP, b STRING) PARTITIONED BY(part INT) PREHOOK: type: CREATETABLE @@ -397,6 +404,7 @@ PREHOOK: Output: database:default PREHOOK: Output: default@part_change_various_various_smallint POSTHOOK: query: -- -- SUBSECTION: ALTER TABLE CHANGE COLUMNS for Various --> Various: (BOOLEAN, TINYINT, INT, LONG, FLOAT, DOUBLE, DECIMAL, STRING, CHAR, VARCHAR, TIMESTAMP) --> SMALLINT +-- -32768 and a maximum value of 32767 -- CREATE TABLE part_change_various_various_smallint(insert_num int, c1 BOOLEAN, c2 TINYINT, c3 INT, c4 BIGINT, c5 FLOAT, c6 DOUBLE, c7 DECIMAL(38,18), c8 STRING, c9 CHAR(25), c10 VARCHAR(25), c11 TIMESTAMP, b STRING) PARTITIONED BY(part INT) POSTHOOK: type: CREATETABLE @@ -404,17 +412,19 @@ POSTHOOK: Output: database:default POSTHOOK: Output: default@part_change_various_various_smallint PREHOOK: query: insert into table part_change_various_various_smallint partition(part=1) values(1, -2999, 200, 72909, 3244222, -29.0764, 470614135, 470614135, '-2999', '-2999', '-2999', '0004-09-22 18:26:29.519542222', 'original'), - (2, 0, 100, 483777, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), - (3, false, 72, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '1', '1', '1', '6229-06-28 02:54:28.970117179', 'original'), - (4, 1, -90, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '5299', '5299', '5299', '2002-05-10 05:29:48.990818073', 'original') + (2, 0, 100, -32768 , 32767, -3651.672121, -9223372036854775808.0, 9223372036854775807.0, '9000', '32767', '-32768', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, -127, -40000 , 32768, -3651.672121, -9223372036854775809.0, 9223372036854775808.0, '9000', '32767', '-32768', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, 72, 32422, -9322, 30.774, -6675.561431, -6675.561431, '1', '1', '1', '6229-06-28 02:54:28.970117179', 'original'), + (5, 1, -90, 7151, 3094, 30000.284799488 ,-9000.75, 0.75, '5299', '5299', '5299', '2002-05-10 05:29:48.990818073', 'original') PREHOOK: type: QUERY PREHOOK: Input: default@values__tmp__table__7 PREHOOK: Output: default@part_change_various_various_smallint@part=1 POSTHOOK: query: insert into table part_change_various_various_smallint partition(part=1) values(1, -2999, 200, 72909, 3244222, -29.0764, 470614135, 470614135, '-2999', '-2999', '-2999', '0004-09-22 18:26:29.519542222', 'original'), - (2, 0, 100, 483777, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), - (3, false, 72, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '1', '1', '1', '6229-06-28 02:54:28.970117179', 'original'), - (4, 1, -90, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '5299', '5299', '5299', '2002-05-10 05:29:48.990818073', 'original') + (2, 0, 100, -32768 , 32767, -3651.672121, -9223372036854775808.0, 9223372036854775807.0, '9000', '32767', '-32768', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, -127, -40000 , 32768, -3651.672121, -9223372036854775809.0, 9223372036854775808.0, '9000', '32767', '-32768', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, 72, 32422, -9322, 30.774, -6675.561431, -6675.561431, '1', '1', '1', '6229-06-28 02:54:28.970117179', 'original'), + (5, 1, -90, 7151, 3094, 30000.284799488 ,-9000.75, 0.75, '5299', '5299', '5299', '2002-05-10 05:29:48.990818073', 'original') POSTHOOK: type: QUERY POSTHOOK: Input: default@values__tmp__table__7 POSTHOOK: Output: default@part_change_various_various_smallint@part=1 @@ -444,9 +454,10 @@ POSTHOOK: Input: default@part_change_various_various_smallint@part=1 #### A masked pattern was here #### insert_num part c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 b 1 1 true NULL 72909 3244222 -29.0764 4.70614135E8 470614135.000000000000000000 -2999 -2999 -2999 0004-09-22 18:26:29.519542222 original -2 1 true 100 483777 -23866739993 -3651.672 46114.284799488 46114.284799488000000000 2007-02-09 05:17:29.368756876 original -3 1 false 72 3244222 -93222 30.774 -66475.561431 -66475.561431000000000000 1 1 1 6229-06-28 02:54:28.970117179 original -4 1 true -90 754072151 3289094 46114.285 9250340.75 9250340.750000000000000000 5299 5299 5299 2002-05-10 05:29:48.990818073 original +2 1 true 100 -32768 32767 -3651.672 -9.223372036854776E18 9223372036854775807.000000000000000000 9000 32767 -32768 2007-02-09 05:17:29.368756876 original +3 1 true -127 -40000 32768 -3651.672 -9.223372036854776E18 9223372036854775808.000000000000000000 9000 32767 -32768 2007-02-09 05:17:29.368756876 original +4 1 false 72 32422 -9322 30.774 -6675.561431 -6675.561431000000000000 1 1 1 6229-06-28 02:54:28.970117179 original +5 1 true -90 7151 3094 30000.285 -9000.75 0.750000000000000000 5299 5299 5299 2002-05-10 05:29:48.990818073 original PREHOOK: query: -- Table-Non-Cascade CHANGE COLUMNS ... alter table part_change_various_various_smallint replace columns (insert_num int, c1 SMALLINT, c2 SMALLINT, c3 SMALLINT, c4 SMALLINT, c5 SMALLINT, c6 SMALLINT, c7 SMALLINT, c8 SMALLINT, c9 SMALLINT, c10 SMALLINT, c11 SMALLINT, b STRING) PREHOOK: type: ALTERTABLE_REPLACECOLS @@ -458,12 +469,12 @@ POSTHOOK: type: ALTERTABLE_REPLACECOLS POSTHOOK: Input: default@part_change_various_various_smallint POSTHOOK: Output: default@part_change_various_various_smallint PREHOOK: query: insert into table part_change_various_various_smallint partition(part=2) - values (5, -30486, 15230, 3117, 1, -117, -7131, 20227, -24858, -28771, 46114, 72909, 'new') + values (6, -30486, 15230, 3117, 1, -117, -7131, 20227, -24858, -28771, 46114, 72909, 'new') PREHOOK: type: QUERY PREHOOK: Input: default@values__tmp__table__8 PREHOOK: Output: default@part_change_various_various_smallint@part=2 POSTHOOK: query: insert into table part_change_various_various_smallint partition(part=2) - values (5, -30486, 15230, 3117, 1, -117, -7131, 20227, -24858, -28771, 46114, 72909, 'new') + values (6, -30486, 15230, 3117, 1, -117, -7131, 20227, -24858, -28771, 46114, 72909, 'new') POSTHOOK: type: QUERY POSTHOOK: Input: default@values__tmp__table__8 POSTHOOK: Output: default@part_change_various_various_smallint@part=2 @@ -482,12 +493,12 @@ POSTHOOK: Lineage: part_change_various_various_smallint PARTITION(part=2).c9 EXP POSTHOOK: Lineage: part_change_various_various_smallint PARTITION(part=2).insert_num EXPRESSION [(values__tmp__table__8)values__tmp__table__8.FieldSchema(name:tmp_values_col1, type:string, comment:), ] _col0 _col1 _col2 _col3 _col4 _col5 _col6 _col7 _col8 _col9 _col10 _col11 _col12 PREHOOK: query: insert into table part_change_various_various_smallint partition(part=1) - values (6, -10542, -1805, -4844, 15507, 91, 22385, -28, -12268, 0, 66475, 774, 'new') + values (7, -10542, -1805, -4844, 15507, 91, 22385, -28, -12268, 0, 66475, 774, 'new') PREHOOK: type: QUERY PREHOOK: Input: default@values__tmp__table__9 PREHOOK: Output: default@part_change_various_various_smallint@part=1 POSTHOOK: query: insert into table part_change_various_various_smallint partition(part=1) - values (6, -10542, -1805, -4844, 15507, 91, 22385, -28, -12268, 0, 66475, 774, 'new') + values (7, -10542, -1805, -4844, 15507, 91, 22385, -28, -12268, 0, 66475, 774, 'new') POSTHOOK: type: QUERY POSTHOOK: Input: default@values__tmp__table__9 POSTHOOK: Output: default@part_change_various_various_smallint@part=1 @@ -522,24 +533,24 @@ STAGE PLANS: Map Operator Tree: TableScan alias: part_change_various_various_smallint - Statistics: Num rows: 6 Data size: 712 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 886 Basic stats: COMPLETE Column stats: NONE Select Operator expressions: insert_num (type: int), part (type: int), c1 (type: smallint), c2 (type: smallint), c3 (type: smallint), c4 (type: smallint), c5 (type: smallint), c6 (type: smallint), c7 (type: smallint), c8 (type: smallint), c9 (type: smallint), c10 (type: smallint), c11 (type: smallint), b (type: string) outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6, _col7, _col8, _col9, _col10, _col11, _col12, _col13 - Statistics: Num rows: 6 Data size: 712 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 886 Basic stats: COMPLETE Column stats: NONE Reduce Output Operator key expressions: _col0 (type: int) sort order: + - Statistics: Num rows: 6 Data size: 712 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 886 Basic stats: COMPLETE Column stats: NONE value expressions: _col1 (type: int), _col2 (type: smallint), _col3 (type: smallint), _col4 (type: smallint), _col5 (type: smallint), _col6 (type: smallint), _col7 (type: smallint), _col8 (type: smallint), _col9 (type: smallint), _col10 (type: smallint), _col11 (type: smallint), _col12 (type: smallint), _col13 (type: string) Reduce Operator Tree: Select Operator expressions: KEY.reducesinkkey0 (type: int), VALUE._col0 (type: int), VALUE._col1 (type: smallint), VALUE._col2 (type: smallint), VALUE._col3 (type: smallint), VALUE._col4 (type: smallint), VALUE._col5 (type: smallint), VALUE._col6 (type: smallint), VALUE._col7 (type: smallint), VALUE._col8 (type: smallint), VALUE._col9 (type: smallint), VALUE._col10 (type: smallint), VALUE._col11 (type: smallint), VALUE._col12 (type: string) outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6, _col7, _col8, _col9, _col10, _col11, _col12, _col13 - Statistics: Num rows: 6 Data size: 712 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 886 Basic stats: COMPLETE Column stats: NONE File Output Operator compressed: false - Statistics: Num rows: 6 Data size: 712 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 886 Basic stats: COMPLETE Column stats: NONE table: input format: org.apache.hadoop.mapred.SequenceFileInputFormat output format: org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat @@ -565,11 +576,12 @@ POSTHOOK: Input: default@part_change_various_various_smallint@part=2 #### A masked pattern was here #### insert_num part c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 b 1 1 1 NULL 7373 -32578 -29 119 119 -2999 -2999 -2999 -11819 original -2 1 1 100 25025 29415 -3651 -19422 -19422 NULL NULL NULL 29801 original -3 1 0 72 -32578 -27686 30 -939 -939 1 1 1 -8620 original -4 1 1 -90 14935 12294 -19422 9764 9764 5299 5299 5299 -17092 original -5 2 -30486 15230 3117 1 -117 -7131 20227 -24858 -28771 NULL NULL new -6 1 NULL NULL -4844 15507 91 22385 -28 -12268 0 NULL NULL new +2 1 1 100 -32768 32767 -3651 0 -1 9000 32767 -32768 29801 original +3 1 1 -127 25536 -32768 -3651 0 0 9000 32767 -32768 29801 original +4 1 0 72 32422 -9322 30 -6675 -6675 1 1 1 -8620 original +5 1 1 -90 7151 3094 30000 -9000 0 5299 5299 5299 -17092 original +6 2 -30486 15230 3117 1 -117 -7131 20227 -24858 -28771 NULL NULL new +7 1 NULL NULL -4844 15507 91 22385 -28 -12268 0 NULL NULL new PREHOOK: query: drop table part_change_various_various_smallint PREHOOK: type: DROPTABLE PREHOOK: Input: default@part_change_various_various_smallint @@ -580,6 +592,7 @@ POSTHOOK: Input: default@part_change_various_various_smallint POSTHOOK: Output: default@part_change_various_various_smallint PREHOOK: query: -- -- SUBSECTION: ALTER TABLE CHANGE COLUMNS for Various --> Various: (BOOLEAN, TINYINT, SMALLINT, LONG, FLOAT, DOUBLE, DECIMAL, STRING, CHAR, VARCHAR, TIMESTAMP) --> INT +-- –2147483648 to 2147483647 -- CREATE TABLE part_change_various_various_int(insert_num int, c1 BOOLEAN, c2 TINYINT, c3 SMALLINT, c4 BIGINT, c5 FLOAT, c6 DOUBLE, c7 DECIMAL(38,18), c8 STRING, c9 CHAR(25), c10 VARCHAR(25), c11 TIMESTAMP, b STRING) PARTITIONED BY(part INT) PREHOOK: type: CREATETABLE @@ -587,6 +600,7 @@ PREHOOK: Output: database:default PREHOOK: Output: default@part_change_various_various_int POSTHOOK: query: -- -- SUBSECTION: ALTER TABLE CHANGE COLUMNS for Various --> Various: (BOOLEAN, TINYINT, SMALLINT, LONG, FLOAT, DOUBLE, DECIMAL, STRING, CHAR, VARCHAR, TIMESTAMP) --> INT +-- –2147483648 to 2147483647 -- CREATE TABLE part_change_various_various_int(insert_num int, c1 BOOLEAN, c2 TINYINT, c3 SMALLINT, c4 BIGINT, c5 FLOAT, c6 DOUBLE, c7 DECIMAL(38,18), c8 STRING, c9 CHAR(25), c10 VARCHAR(25), c11 TIMESTAMP, b STRING) PARTITIONED BY(part INT) POSTHOOK: type: CREATETABLE @@ -594,17 +608,19 @@ POSTHOOK: Output: database:default POSTHOOK: Output: default@part_change_various_various_int PREHOOK: query: insert into table part_change_various_various_int partition(part=1) values(1, -2999, 200, 72909, 3244222, -29.0764, 470614135, 470614135, '-2999', '-2999', '-2999', '0004-09-22 18:26:29.519542222', 'original'), - (2, 0, 100, 483777, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), - (3, false, 72, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '1', '1', '1', '6229-06-28 02:54:28.970117179', 'original'), - (4, 1, -90, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '5299', '5299', '5299', '2002-05-10 05:29:48.990818073', 'original') + (2, 0, 100, 2147483647, -23866739993, -3651.672121, -9223372036854775808.0, 9223372036854775807.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, 100, 2147483648, -23866739993, -3651.672121, -9223372036854775809.0, 9223372036854775808.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, 72, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '1', '1', '1', '6229-06-28 02:54:28.970117179', 'original'), + (5, 1, -90, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '5299', '5299', '5299', '2002-05-10 05:29:48.990818073', 'original') PREHOOK: type: QUERY PREHOOK: Input: default@values__tmp__table__10 PREHOOK: Output: default@part_change_various_various_int@part=1 POSTHOOK: query: insert into table part_change_various_various_int partition(part=1) values(1, -2999, 200, 72909, 3244222, -29.0764, 470614135, 470614135, '-2999', '-2999', '-2999', '0004-09-22 18:26:29.519542222', 'original'), - (2, 0, 100, 483777, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), - (3, false, 72, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '1', '1', '1', '6229-06-28 02:54:28.970117179', 'original'), - (4, 1, -90, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '5299', '5299', '5299', '2002-05-10 05:29:48.990818073', 'original') + (2, 0, 100, 2147483647, -23866739993, -3651.672121, -9223372036854775808.0, 9223372036854775807.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, 100, 2147483648, -23866739993, -3651.672121, -9223372036854775809.0, 9223372036854775808.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, 72, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '1', '1', '1', '6229-06-28 02:54:28.970117179', 'original'), + (5, 1, -90, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '5299', '5299', '5299', '2002-05-10 05:29:48.990818073', 'original') POSTHOOK: type: QUERY POSTHOOK: Input: default@values__tmp__table__10 POSTHOOK: Output: default@part_change_various_various_int@part=1 @@ -634,9 +650,10 @@ POSTHOOK: Input: default@part_change_various_various_int@part=1 #### A masked pattern was here #### insert_num part c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 b 1 1 true NULL NULL 3244222 -29.0764 4.70614135E8 470614135.000000000000000000 -2999 -2999 -2999 0004-09-22 18:26:29.519542222 original -2 1 true 100 NULL -23866739993 -3651.672 46114.284799488 46114.284799488000000000 2007-02-09 05:17:29.368756876 original -3 1 false 72 NULL -93222 30.774 -66475.561431 -66475.561431000000000000 1 1 1 6229-06-28 02:54:28.970117179 original -4 1 true -90 NULL 3289094 46114.285 9250340.75 9250340.750000000000000000 5299 5299 5299 2002-05-10 05:29:48.990818073 original +2 1 true 100 NULL -23866739993 -3651.672 -9.223372036854776E18 9223372036854775807.000000000000000000 2007-02-09 05:17:29.368756876 original +3 1 true 100 NULL -23866739993 -3651.672 -9.223372036854776E18 9223372036854775808.000000000000000000 2007-02-09 05:17:29.368756876 original +4 1 false 72 NULL -93222 30.774 -66475.561431 -66475.561431000000000000 1 1 1 6229-06-28 02:54:28.970117179 original +5 1 true -90 NULL 3289094 46114.285 9250340.75 9250340.750000000000000000 5299 5299 5299 2002-05-10 05:29:48.990818073 original PREHOOK: query: -- Table-Non-Cascade CHANGE COLUMNS ... alter table part_change_various_various_int replace columns (insert_num int, c1 INT, c2 INT, c3 INT, c4 INT, c5 INT, c6 INT, c7 INT, c8 INT, c9 INT, c10 INT, c11 INT, b STRING) PREHOOK: type: ALTERTABLE_REPLACECOLS @@ -712,24 +729,24 @@ STAGE PLANS: Map Operator Tree: TableScan alias: part_change_various_various_int - Statistics: Num rows: 6 Data size: 729 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 913 Basic stats: COMPLETE Column stats: NONE Select Operator expressions: insert_num (type: int), part (type: int), c1 (type: int), c2 (type: int), c3 (type: int), c4 (type: int), c5 (type: int), c6 (type: int), c7 (type: int), c8 (type: int), c9 (type: int), c10 (type: int), c11 (type: int), b (type: string) outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6, _col7, _col8, _col9, _col10, _col11, _col12, _col13 - Statistics: Num rows: 6 Data size: 729 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 913 Basic stats: COMPLETE Column stats: NONE Reduce Output Operator key expressions: _col0 (type: int) sort order: + - Statistics: Num rows: 6 Data size: 729 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 913 Basic stats: COMPLETE Column stats: NONE value expressions: _col1 (type: int), _col2 (type: int), _col3 (type: int), _col4 (type: int), _col5 (type: int), _col6 (type: int), _col7 (type: int), _col8 (type: int), _col9 (type: int), _col10 (type: int), _col11 (type: int), _col12 (type: int), _col13 (type: string) Reduce Operator Tree: Select Operator expressions: KEY.reducesinkkey0 (type: int), VALUE._col0 (type: int), VALUE._col1 (type: int), VALUE._col2 (type: int), VALUE._col3 (type: int), VALUE._col4 (type: int), VALUE._col5 (type: int), VALUE._col6 (type: int), VALUE._col7 (type: int), VALUE._col8 (type: int), VALUE._col9 (type: int), VALUE._col10 (type: int), VALUE._col11 (type: int), VALUE._col12 (type: string) outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6, _col7, _col8, _col9, _col10, _col11, _col12, _col13 - Statistics: Num rows: 6 Data size: 729 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 913 Basic stats: COMPLETE Column stats: NONE File Output Operator compressed: false - Statistics: Num rows: 6 Data size: 729 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 913 Basic stats: COMPLETE Column stats: NONE table: input format: org.apache.hadoop.mapred.SequenceFileInputFormat output format: org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat @@ -755,9 +772,10 @@ POSTHOOK: Input: default@part_change_various_various_int@part=2 #### A masked pattern was here #### insert_num part c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 b 1 1 1 NULL NULL 3244222 -29 470614135 470614135 -2999 -2999 -2999 -1888628267 original -2 1 1 100 NULL 1903063783 -3651 46114 46114 NULL NULL NULL 1171027049 original -3 1 0 72 NULL -93222 30 -66475 -66475 1 1 1 1272503892 original -4 1 1 -90 NULL 3289094 46114 9250340 9250340 5299 5299 5299 1021033788 original +2 1 1 100 NULL 1903063783 -3651 -2147483648 -1 NULL NULL NULL 1171027049 original +3 1 1 100 NULL 1903063783 -3651 -2147483648 0 NULL NULL NULL 1171027049 original +4 1 0 72 NULL -93222 30 -66475 -66475 1 1 1 1272503892 original +5 1 1 -90 NULL 3289094 46114 9250340 9250340 5299 5299 5299 1021033788 original 5 2 560930 -1281818 127 1 84269672 -60 27094665 -36016110 -182 3244222 561431 new 6 1 NULL NULL NULL -167 91 113 -164341325 -134237413 0 6229 NULL new PREHOOK: query: drop table part_change_various_various_int @@ -770,6 +788,7 @@ POSTHOOK: Input: default@part_change_various_various_int POSTHOOK: Output: default@part_change_various_various_int PREHOOK: query: -- -- SUBSECTION: ALTER TABLE CHANGE COLUMNS for Various --> Various: (BOOLEAN, TINYINT, SMALLINT, INT, FLOAT, DOUBLE, DECIMAL, STRING, CHAR, VARCHAR, TIMESTAMP) --> BIGINT +-- -9223372036854775808 to 9223372036854775807 -- CREATE TABLE part_change_various_various_bigint(insert_num int, c1 BOOLEAN, c2 TINYINT, c3 SMALLINT, c4 INT, c5 FLOAT, c6 DOUBLE, c7 DECIMAL(38,18), c8 STRING, c9 CHAR(25), c10 VARCHAR(25), c11 TIMESTAMP, b STRING) PARTITIONED BY(part INT) PREHOOK: type: CREATETABLE @@ -777,6 +796,7 @@ PREHOOK: Output: database:default PREHOOK: Output: default@part_change_various_various_bigint POSTHOOK: query: -- -- SUBSECTION: ALTER TABLE CHANGE COLUMNS for Various --> Various: (BOOLEAN, TINYINT, SMALLINT, INT, FLOAT, DOUBLE, DECIMAL, STRING, CHAR, VARCHAR, TIMESTAMP) --> BIGINT +-- -9223372036854775808 to 9223372036854775807 -- CREATE TABLE part_change_various_various_bigint(insert_num int, c1 BOOLEAN, c2 TINYINT, c3 SMALLINT, c4 INT, c5 FLOAT, c6 DOUBLE, c7 DECIMAL(38,18), c8 STRING, c9 CHAR(25), c10 VARCHAR(25), c11 TIMESTAMP, b STRING) PARTITIONED BY(part INT) POSTHOOK: type: CREATETABLE @@ -784,17 +804,19 @@ POSTHOOK: Output: database:default POSTHOOK: Output: default@part_change_various_various_bigint PREHOOK: query: insert into table part_change_various_various_bigint partition(part=1) values(1, -2999, 200, 72909, 3244222, -29.0764, 470614135, 470614135, '-2999', '-2999', '-2999', '0004-09-22 18:26:29.519542222', 'original'), - (2, 0, 100, 483777, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), - (3, false, 72, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '1', '1', '1', '6229-06-28 02:54:28.970117179', 'original'), - (4, 1, -90, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '1998287.3541', '1998287.3541', '1998287.3541', '2002-05-10 05:29:48.990818073', 'original') + (2, 0, 100, 32767, -23372036854775, -3651.672121, -9223372036854775808.0, 9223372036854775807.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, 100, -32768, 23372036854775, -3651.672121, -9223372036854775809.0, 9223372036854775808.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, 72, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '1', '1', '1', '6229-06-28 02:54:28.970117179', 'original'), + (5, 1, -90, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '1998287.3541', '1998287.3541', '1998287.3541', '2002-05-10 05:29:48.990818073', 'original') PREHOOK: type: QUERY PREHOOK: Input: default@values__tmp__table__13 PREHOOK: Output: default@part_change_various_various_bigint@part=1 POSTHOOK: query: insert into table part_change_various_various_bigint partition(part=1) values(1, -2999, 200, 72909, 3244222, -29.0764, 470614135, 470614135, '-2999', '-2999', '-2999', '0004-09-22 18:26:29.519542222', 'original'), - (2, 0, 100, 483777, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), - (3, false, 72, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '1', '1', '1', '6229-06-28 02:54:28.970117179', 'original'), - (4, 1, -90, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '1998287.3541', '1998287.3541', '1998287.3541', '2002-05-10 05:29:48.990818073', 'original') + (2, 0, 100, 32767, -23372036854775, -3651.672121, -9223372036854775808.0, 9223372036854775807.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, 100, -32768, 23372036854775, -3651.672121, -9223372036854775809.0, 9223372036854775808.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, 72, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '1', '1', '1', '6229-06-28 02:54:28.970117179', 'original'), + (5, 1, -90, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '1998287.3541', '1998287.3541', '1998287.3541', '2002-05-10 05:29:48.990818073', 'original') POSTHOOK: type: QUERY POSTHOOK: Input: default@values__tmp__table__13 POSTHOOK: Output: default@part_change_various_various_bigint@part=1 @@ -824,9 +846,10 @@ POSTHOOK: Input: default@part_change_various_various_bigint@part=1 #### A masked pattern was here #### insert_num part c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 b 1 1 true NULL NULL 3244222 -29.0764 4.70614135E8 470614135.000000000000000000 -2999 -2999 -2999 0004-09-22 18:26:29.519542222 original -2 1 true 100 NULL NULL -3651.672 46114.284799488 46114.284799488000000000 2007-02-09 05:17:29.368756876 original -3 1 false 72 NULL -93222 30.774 -66475.561431 -66475.561431000000000000 1 1 1 6229-06-28 02:54:28.970117179 original -4 1 true -90 NULL 3289094 46114.285 9250340.75 9250340.750000000000000000 1998287.3541 1998287.3541 1998287.3541 2002-05-10 05:29:48.990818073 original +2 1 true 100 32767 NULL -3651.672 -9.223372036854776E18 9223372036854775807.000000000000000000 2007-02-09 05:17:29.368756876 original +3 1 true 100 -32768 NULL -3651.672 -9.223372036854776E18 9223372036854775808.000000000000000000 2007-02-09 05:17:29.368756876 original +4 1 false 72 NULL -93222 30.774 -66475.561431 -66475.561431000000000000 1 1 1 6229-06-28 02:54:28.970117179 original +5 1 true -90 NULL 3289094 46114.285 9250340.75 9250340.750000000000000000 1998287.3541 1998287.3541 1998287.3541 2002-05-10 05:29:48.990818073 original PREHOOK: query: -- Table-Non-Cascade CHANGE COLUMNS ... alter table part_change_various_various_bigint replace columns (insert_num int, c1 BIGINT, c2 BIGINT, c3 BIGINT, c4 BIGINT, c5 BIGINT, c6 BIGINT, c7 BIGINT, c8 BIGINT, c9 BIGINT, c10 BIGINT, c11 BIGINT, b STRING) PREHOOK: type: ALTERTABLE_REPLACECOLS @@ -838,12 +861,12 @@ POSTHOOK: type: ALTERTABLE_REPLACECOLS POSTHOOK: Input: default@part_change_various_various_bigint POSTHOOK: Output: default@part_change_various_various_bigint PREHOOK: query: insert into table part_change_various_various_bigint partition(part=2) - values (5, 5573199346255528403, 71, 151775655, 1, 131, -60, 6275638713485623898, -230, -695025, 519542222, -29.0764, 'new') + values (6, 5573199346255528403, 71, 151775655, 1, 131, -60, 6275638713485623898, -230, -695025, 519542222, -29.0764, 'new') PREHOOK: type: QUERY PREHOOK: Input: default@values__tmp__table__14 PREHOOK: Output: default@part_change_various_various_bigint@part=2 POSTHOOK: query: insert into table part_change_various_various_bigint partition(part=2) - values (5, 5573199346255528403, 71, 151775655, 1, 131, -60, 6275638713485623898, -230, -695025, 519542222, -29.0764, 'new') + values (6, 5573199346255528403, 71, 151775655, 1, 131, -60, 6275638713485623898, -230, -695025, 519542222, -29.0764, 'new') POSTHOOK: type: QUERY POSTHOOK: Input: default@values__tmp__table__14 POSTHOOK: Output: default@part_change_various_various_bigint@part=2 @@ -862,12 +885,12 @@ POSTHOOK: Lineage: part_change_various_various_bigint PARTITION(part=2).c9 EXPRE POSTHOOK: Lineage: part_change_various_various_bigint PARTITION(part=2).insert_num EXPRESSION [(values__tmp__table__14)values__tmp__table__14.FieldSchema(name:tmp_values_col1, type:string, comment:), ] _col0 _col1 _col2 _col3 _col4 _col5 _col6 _col7 _col8 _col9 _col10 _col11 _col12 PREHOOK: query: insert into table part_change_various_various_bigint partition(part=1) - values (6, -164341325, 9043162437544575070, -126, -6566204574741299000, 91, 113, -28, -63, 0, 3244222, -90, 'new') + values (7, -164341325, 9043162437544575070, -126, -6566204574741299000, 91, 113, -28, -63, 0, 3244222, -90, 'new') PREHOOK: type: QUERY PREHOOK: Input: default@values__tmp__table__15 PREHOOK: Output: default@part_change_various_various_bigint@part=1 POSTHOOK: query: insert into table part_change_various_various_bigint partition(part=1) - values (6, -164341325, 9043162437544575070, -126, -6566204574741299000, 91, 113, -28, -63, 0, 3244222, -90, 'new') + values (7, -164341325, 9043162437544575070, -126, -6566204574741299000, 91, 113, -28, -63, 0, 3244222, -90, 'new') POSTHOOK: type: QUERY POSTHOOK: Input: default@values__tmp__table__15 POSTHOOK: Output: default@part_change_various_various_bigint@part=1 @@ -902,24 +925,24 @@ STAGE PLANS: Map Operator Tree: TableScan alias: part_change_various_various_bigint - Statistics: Num rows: 6 Data size: 764 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 945 Basic stats: COMPLETE Column stats: NONE Select Operator expressions: insert_num (type: int), part (type: int), c1 (type: bigint), c2 (type: bigint), c3 (type: bigint), c4 (type: bigint), c5 (type: bigint), c6 (type: bigint), c7 (type: bigint), c8 (type: bigint), c9 (type: bigint), c10 (type: bigint), c11 (type: bigint), b (type: string) outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6, _col7, _col8, _col9, _col10, _col11, _col12, _col13 - Statistics: Num rows: 6 Data size: 764 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 945 Basic stats: COMPLETE Column stats: NONE Reduce Output Operator key expressions: _col0 (type: int) sort order: + - Statistics: Num rows: 6 Data size: 764 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 945 Basic stats: COMPLETE Column stats: NONE value expressions: _col1 (type: int), _col2 (type: bigint), _col3 (type: bigint), _col4 (type: bigint), _col5 (type: bigint), _col6 (type: bigint), _col7 (type: bigint), _col8 (type: bigint), _col9 (type: bigint), _col10 (type: bigint), _col11 (type: bigint), _col12 (type: bigint), _col13 (type: string) Reduce Operator Tree: Select Operator expressions: KEY.reducesinkkey0 (type: int), VALUE._col0 (type: int), VALUE._col1 (type: bigint), VALUE._col2 (type: bigint), VALUE._col3 (type: bigint), VALUE._col4 (type: bigint), VALUE._col5 (type: bigint), VALUE._col6 (type: bigint), VALUE._col7 (type: bigint), VALUE._col8 (type: bigint), VALUE._col9 (type: bigint), VALUE._col10 (type: bigint), VALUE._col11 (type: bigint), VALUE._col12 (type: string) outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6, _col7, _col8, _col9, _col10, _col11, _col12, _col13 - Statistics: Num rows: 6 Data size: 764 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 945 Basic stats: COMPLETE Column stats: NONE File Output Operator compressed: false - Statistics: Num rows: 6 Data size: 764 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 945 Basic stats: COMPLETE Column stats: NONE table: input format: org.apache.hadoop.mapred.SequenceFileInputFormat output format: org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat @@ -945,11 +968,12 @@ POSTHOOK: Input: default@part_change_various_various_bigint@part=2 #### A masked pattern was here #### insert_num part c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 b 1 1 1 NULL NULL 3244222 -29 470614135 470614135 -2999 -2999 -2999 -62018170411 original -2 1 1 100 NULL NULL -3651 46114 46114 NULL NULL NULL 1171027049 original -3 1 0 72 NULL -93222 30 -66475 -66475 1 1 1 134416490068 original -4 1 1 -90 NULL 3289094 46114 9250340 9250340 1998287 NULL NULL 1021033788 original -5 2 5573199346255528403 71 151775655 1 131 -60 6275638713485623898 -230 -695025 519542222 -29 new -6 1 NULL NULL -126 NULL 91 113 -28 -63 0 3244222 NULL new +2 1 1 100 32767 NULL -3651 -9223372036854775808 9223372036854775807 NULL NULL NULL 1171027049 original +3 1 1 100 -32768 NULL -3651 -9223372036854775808 -9223372036854775808 NULL NULL NULL 1171027049 original +4 1 0 72 NULL -93222 30 -66475 -66475 1 1 1 134416490068 original +5 1 1 -90 NULL 3289094 46114 9250340 9250340 1998287 NULL NULL 1021033788 original +6 2 5573199346255528403 71 151775655 1 131 -60 6275638713485623898 -230 -695025 519542222 -29 new +7 1 NULL NULL -126 NULL 91 113 -28 -63 0 3244222 NULL new PREHOOK: query: drop table part_change_various_various_bigint PREHOOK: type: DROPTABLE PREHOOK: Input: default@part_change_various_various_bigint @@ -974,17 +998,19 @@ POSTHOOK: Output: database:default POSTHOOK: Output: default@part_change_various_various_float PREHOOK: query: insert into table part_change_various_various_float partition(part=1) values(1, -2999, 200, 72909, 3244222, -29.0764, 470614135, 470614135, '-2999', '-2999', '-2999', '0004-09-22 18:26:29.519542222', 'original'), - (2, 0, 100, 483777, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), - (3, false, 72, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '2402.3', '2402.3', '2402.3', '6229-06-28 02:54:28.970117179', 'original'), - (4, 1, -90, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '5299', '5299', '5299', '2002-05-10 05:29:48.990818073', 'original') + (2, 0, 100, 32767, -23372036854775, -3651.672121, -9223372036854775808.0, 9223372036854775807.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, 100, -32768, 23372036854775, -3651.672121, -9223372036854775809.0, 9223372036854775808.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, 72, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '2402.3', '2402.3', '2402.3', '6229-06-28 02:54:28.970117179', 'original'), + (5, 1, -90, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '5299', '5299', '5299', '2002-05-10 05:29:48.990818073', 'original') PREHOOK: type: QUERY PREHOOK: Input: default@values__tmp__table__16 PREHOOK: Output: default@part_change_various_various_float@part=1 POSTHOOK: query: insert into table part_change_various_various_float partition(part=1) values(1, -2999, 200, 72909, 3244222, -29.0764, 470614135, 470614135, '-2999', '-2999', '-2999', '0004-09-22 18:26:29.519542222', 'original'), - (2, 0, 100, 483777, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), - (3, false, 72, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '2402.3', '2402.3', '2402.3', '6229-06-28 02:54:28.970117179', 'original'), - (4, 1, -90, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '5299', '5299', '5299', '2002-05-10 05:29:48.990818073', 'original') + (2, 0, 100, 32767, -23372036854775, -3651.672121, -9223372036854775808.0, 9223372036854775807.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, 100, -32768, 23372036854775, -3651.672121, -9223372036854775809.0, 9223372036854775808.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, 72, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '2402.3', '2402.3', '2402.3', '6229-06-28 02:54:28.970117179', 'original'), + (5, 1, -90, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '5299', '5299', '5299', '2002-05-10 05:29:48.990818073', 'original') POSTHOOK: type: QUERY POSTHOOK: Input: default@values__tmp__table__16 POSTHOOK: Output: default@part_change_various_various_float@part=1 @@ -1014,9 +1040,10 @@ POSTHOOK: Input: default@part_change_various_various_float@part=1 #### A masked pattern was here #### insert_num part c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 b 1 1 true NULL NULL 3244222 -29 4.70614135E8 470614135.000000000000000000 -2999 -2999 -2999 0004-09-22 18:26:29.519542222 original -2 1 true 100 NULL NULL -3651 46114.284799488 46114.284799488000000000 2007-02-09 05:17:29.368756876 original -3 1 false 72 NULL -93222 30 -66475.561431 -66475.561431000000000000 2402.3 2402.3 2402.3 6229-06-28 02:54:28.970117179 original -4 1 true -90 NULL 3289094 46114 9250340.75 9250340.750000000000000000 5299 5299 5299 2002-05-10 05:29:48.990818073 original +2 1 true 100 32767 NULL -3651 -9.223372036854776E18 9223372036854775807.000000000000000000 2007-02-09 05:17:29.368756876 original +3 1 true 100 -32768 NULL -3651 -9.223372036854776E18 9223372036854775808.000000000000000000 2007-02-09 05:17:29.368756876 original +4 1 false 72 NULL -93222 30 -66475.561431 -66475.561431000000000000 2402.3 2402.3 2402.3 6229-06-28 02:54:28.970117179 original +5 1 true -90 NULL 3289094 46114 9250340.75 9250340.750000000000000000 5299 5299 5299 2002-05-10 05:29:48.990818073 original PREHOOK: query: -- Table-Non-Cascade CHANGE COLUMNS ... alter table part_change_various_various_float replace columns (insert_num int, c1 FLOAT, c2 FLOAT, c3 FLOAT, c4 FLOAT, c5 FLOAT, c6 FLOAT, c7 FLOAT, c8 FLOAT, c9 FLOAT, c10 FLOAT, c11 FLOAT, b STRING) PREHOOK: type: ALTERTABLE_REPLACECOLS @@ -1028,12 +1055,12 @@ POSTHOOK: type: ALTERTABLE_REPLACECOLS POSTHOOK: Input: default@part_change_various_various_float POSTHOOK: Output: default@part_change_various_various_float PREHOOK: query: insert into table part_change_various_various_float partition(part=2) - values (5, 953967041., 62.0791539559013466, 718.78, 1, 203.199548118, -60, 6275638713485623898, -230, -695025, -3651.67212, 46114.28, 'new') + values (6, 953967041., 62.0791539559013466, 718.78, 1, 203.199548118, -60, 6275638713485623898, -230, -695025, -3651.67212, 46114.28, 'new') PREHOOK: type: QUERY PREHOOK: Input: default@values__tmp__table__17 PREHOOK: Output: default@part_change_various_various_float@part=2 POSTHOOK: query: insert into table part_change_various_various_float partition(part=2) - values (5, 953967041., 62.0791539559013466, 718.78, 1, 203.199548118, -60, 6275638713485623898, -230, -695025, -3651.67212, 46114.28, 'new') + values (6, 953967041., 62.0791539559013466, 718.78, 1, 203.199548118, -60, 6275638713485623898, -230, -695025, -3651.67212, 46114.28, 'new') POSTHOOK: type: QUERY POSTHOOK: Input: default@values__tmp__table__17 POSTHOOK: Output: default@part_change_various_various_float@part=2 @@ -1052,12 +1079,12 @@ POSTHOOK: Lineage: part_change_various_various_float PARTITION(part=2).c9 EXPRES POSTHOOK: Lineage: part_change_various_various_float PARTITION(part=2).insert_num EXPRESSION [(values__tmp__table__17)values__tmp__table__17.FieldSchema(name:tmp_values_col1, type:string, comment:), ] _col0 _col1 _col2 _col3 _col4 _col5 _col6 _col7 _col8 _col9 _col10 _col11 _col12 PREHOOK: query: insert into table part_change_various_various_float partition(part=1) - values (6, -1255178165.77663, 9043162437544575070.974, -4314.7918, -1240033819, 91, 1698.95, -100.3597812, -63, 0, -93222.200, 29.076, 'new') + values (7, -1255178165.77663, 9043162437544575070.974, -4314.7918, -1240033819, 91, 1698.95, -100.3597812, -63, 0, -93222.200, 29.076, 'new') PREHOOK: type: QUERY PREHOOK: Input: default@values__tmp__table__18 PREHOOK: Output: default@part_change_various_various_float@part=1 POSTHOOK: query: insert into table part_change_various_various_float partition(part=1) - values (6, -1255178165.77663, 9043162437544575070.974, -4314.7918, -1240033819, 91, 1698.95, -100.3597812, -63, 0, -93222.200, 29.076, 'new') + values (7, -1255178165.77663, 9043162437544575070.974, -4314.7918, -1240033819, 91, 1698.95, -100.3597812, -63, 0, -93222.200, 29.076, 'new') POSTHOOK: type: QUERY POSTHOOK: Input: default@values__tmp__table__18 POSTHOOK: Output: default@part_change_various_various_float@part=1 @@ -1092,24 +1119,24 @@ STAGE PLANS: Map Operator Tree: TableScan alias: part_change_various_various_float - Statistics: Num rows: 6 Data size: 764 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 941 Basic stats: COMPLETE Column stats: NONE Select Operator expressions: insert_num (type: int), part (type: int), c1 (type: float), c2 (type: float), c3 (type: float), c4 (type: float), c5 (type: float), c6 (type: float), c7 (type: float), c8 (type: float), c9 (type: float), c10 (type: float), c11 (type: float), b (type: string) outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6, _col7, _col8, _col9, _col10, _col11, _col12, _col13 - Statistics: Num rows: 6 Data size: 764 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 941 Basic stats: COMPLETE Column stats: NONE Reduce Output Operator key expressions: _col0 (type: int) sort order: + - Statistics: Num rows: 6 Data size: 764 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 941 Basic stats: COMPLETE Column stats: NONE value expressions: _col1 (type: int), _col2 (type: float), _col3 (type: float), _col4 (type: float), _col5 (type: float), _col6 (type: float), _col7 (type: float), _col8 (type: float), _col9 (type: float), _col10 (type: float), _col11 (type: float), _col12 (type: float), _col13 (type: string) Reduce Operator Tree: Select Operator expressions: KEY.reducesinkkey0 (type: int), VALUE._col0 (type: int), VALUE._col1 (type: float), VALUE._col2 (type: float), VALUE._col3 (type: float), VALUE._col4 (type: float), VALUE._col5 (type: float), VALUE._col6 (type: float), VALUE._col7 (type: float), VALUE._col8 (type: float), VALUE._col9 (type: float), VALUE._col10 (type: float), VALUE._col11 (type: float), VALUE._col12 (type: string) outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6, _col7, _col8, _col9, _col10, _col11, _col12, _col13 - Statistics: Num rows: 6 Data size: 764 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 941 Basic stats: COMPLETE Column stats: NONE File Output Operator compressed: false - Statistics: Num rows: 6 Data size: 764 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 941 Basic stats: COMPLETE Column stats: NONE table: input format: org.apache.hadoop.mapred.SequenceFileInputFormat output format: org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat @@ -1135,11 +1162,12 @@ POSTHOOK: Input: default@part_change_various_various_float@part=2 #### A masked pattern was here #### insert_num part c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 b 1 1 1.0 NULL NULL 3244222.0 -29.0 4.70614144E8 4.70614144E8 -2999.0 -2999.0 -2999.0 -6.2018171E10 original -2 1 1.0 100.0 NULL NULL -3651.0 46114.285 46114.285 NULL NULL NULL 1.17102707E9 original -3 1 0.0 72.0 NULL -93222.0 30.0 -66475.56 -66475.56 2402.3 2402.3 2402.3 1.3441649E11 original -4 1 1.0 -90.0 NULL 3289094.0 46114.0 9250341.0 9250341.0 5299.0 5299.0 5299.0 1.02103379E9 original -5 2 9.5396704E8 62.079155 718.78 1.0 203.19955 -60.0 6.2756385E18 -230.0 -695025.0 -3651.672 46114.28 new -6 1 NULL NULL -4314.0 NULL 91.0 1698.95 -100.35978 -63.0 0.0 -93222.2 NULL new +2 1 1.0 100.0 32767.0 NULL -3651.0 -9.223372E18 9.223372E18 NULL NULL NULL 1.17102707E9 original +3 1 1.0 100.0 -32768.0 NULL -3651.0 -9.223372E18 9.223372E18 NULL NULL NULL 1.17102707E9 original +4 1 0.0 72.0 NULL -93222.0 30.0 -66475.56 -66475.56 2402.3 2402.3 2402.3 1.3441649E11 original +5 1 1.0 -90.0 NULL 3289094.0 46114.0 9250341.0 9250341.0 5299.0 5299.0 5299.0 1.02103379E9 original +6 2 9.5396704E8 62.079155 718.78 1.0 203.19955 -60.0 6.2756385E18 -230.0 -695025.0 -3651.672 46114.28 new +7 1 NULL NULL -4314.0 NULL 91.0 1698.95 -100.35978 -63.0 0.0 -93222.2 NULL new PREHOOK: query: drop table part_change_various_various_float PREHOOK: type: DROPTABLE PREHOOK: Input: default@part_change_various_various_float @@ -1164,17 +1192,19 @@ POSTHOOK: Output: database:default POSTHOOK: Output: default@part_change_various_various_double PREHOOK: query: insert into table part_change_various_various_double partition(part=1) values(1, -2999, 200, 72909, 3244222, -29.0764, 470614135, 470614135, '-2999', '-2999', '-2999', '0004-09-22 18:26:29.519542222', 'original'), - (2, 0, 100, 483777, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), - (3, false, 72, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '1', '1', '1', '6229-06-28 02:54:28.970117179', 'original'), - (4, 1, -90, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '5299', '5299', '5299', '2002-05-10 05:29:48.990818073', 'original') + (2, 0, 100, 32767, -23372036854775, -3651.672121, -9223372036854775808.0, 9223372036854775807.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, 100, -32768, 23372036854775, -3651.672121, -9223372036854775809.0, 9223372036854775808.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, 72, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '1', '1', '1', '6229-06-28 02:54:28.970117179', 'original'), + (5, 1, -90, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '5299', '5299', '5299', '2002-05-10 05:29:48.990818073', 'original') PREHOOK: type: QUERY PREHOOK: Input: default@values__tmp__table__19 PREHOOK: Output: default@part_change_various_various_double@part=1 POSTHOOK: query: insert into table part_change_various_various_double partition(part=1) values(1, -2999, 200, 72909, 3244222, -29.0764, 470614135, 470614135, '-2999', '-2999', '-2999', '0004-09-22 18:26:29.519542222', 'original'), - (2, 0, 100, 483777, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), - (3, false, 72, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '1', '1', '1', '6229-06-28 02:54:28.970117179', 'original'), - (4, 1, -90, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '5299', '5299', '5299', '2002-05-10 05:29:48.990818073', 'original') + (2, 0, 100, 32767, -23372036854775, -3651.672121, -9223372036854775808.0, 9223372036854775807.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, 100, -32768, 23372036854775, -3651.672121, -9223372036854775809.0, 9223372036854775808.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, 72, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '1', '1', '1', '6229-06-28 02:54:28.970117179', 'original'), + (5, 1, -90, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '5299', '5299', '5299', '2002-05-10 05:29:48.990818073', 'original') POSTHOOK: type: QUERY POSTHOOK: Input: default@values__tmp__table__19 POSTHOOK: Output: default@part_change_various_various_double@part=1 @@ -1204,9 +1234,10 @@ POSTHOOK: Input: default@part_change_various_various_double@part=1 #### A masked pattern was here #### insert_num part c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 b 1 1 true NULL NULL 3244222 -29 4.70614135E8 470614135.000000000000000000 -2999 -2999 -2999 0004-09-22 18:26:29.519542222 original -2 1 true 100 NULL NULL -3651 46114.284799488 46114.284799488000000000 2007-02-09 05:17:29.368756876 original -3 1 false 72 NULL -93222 30 -66475.561431 -66475.561431000000000000 1 1 1 6229-06-28 02:54:28.970117179 original -4 1 true -90 NULL 3289094 46114 9250340.75 9250340.750000000000000000 5299 5299 5299 2002-05-10 05:29:48.990818073 original +2 1 true 100 32767 NULL -3651 -9.223372036854776E18 9223372036854775807.000000000000000000 2007-02-09 05:17:29.368756876 original +3 1 true 100 -32768 NULL -3651 -9.223372036854776E18 9223372036854775808.000000000000000000 2007-02-09 05:17:29.368756876 original +4 1 false 72 NULL -93222 30 -66475.561431 -66475.561431000000000000 1 1 1 6229-06-28 02:54:28.970117179 original +5 1 true -90 NULL 3289094 46114 9250340.75 9250340.750000000000000000 5299 5299 5299 2002-05-10 05:29:48.990818073 original PREHOOK: query: -- Table-Non-Cascade CHANGE COLUMNS ... alter table part_change_various_various_double replace columns (insert_num int, c1 DOUBLE, c2 DOUBLE, c3 DOUBLE, c4 DOUBLE, c5 DOUBLE, c6 DOUBLE, c7 DOUBLE, c8 DOUBLE, c9 DOUBLE, c10 DOUBLE, c11 DOUBLE, b STRING) PREHOOK: type: ALTERTABLE_REPLACECOLS @@ -1218,12 +1249,12 @@ POSTHOOK: type: ALTERTABLE_REPLACECOLS POSTHOOK: Input: default@part_change_various_various_double POSTHOOK: Output: default@part_change_various_various_double PREHOOK: query: insert into table part_change_various_various_double partition(part=2) - values (5, 953967041., 62.0791539559013466, 718.78, 1, 203.199548118, -60, 6275638713485623898, -230, -695025, 0.00007011717, 4.28479948, 'new') + values (6, 953967041., 62.0791539559013466, 718.78, 1, 203.199548118, -60, 6275638713485623898, -230, -695025, 0.00007011717, 4.28479948, 'new') PREHOOK: type: QUERY PREHOOK: Input: default@values__tmp__table__20 PREHOOK: Output: default@part_change_various_various_double@part=2 POSTHOOK: query: insert into table part_change_various_various_double partition(part=2) - values (5, 953967041., 62.0791539559013466, 718.78, 1, 203.199548118, -60, 6275638713485623898, -230, -695025, 0.00007011717, 4.28479948, 'new') + values (6, 953967041., 62.0791539559013466, 718.78, 1, 203.199548118, -60, 6275638713485623898, -230, -695025, 0.00007011717, 4.28479948, 'new') POSTHOOK: type: QUERY POSTHOOK: Input: default@values__tmp__table__20 POSTHOOK: Output: default@part_change_various_various_double@part=2 @@ -1242,12 +1273,12 @@ POSTHOOK: Lineage: part_change_various_various_double PARTITION(part=2).c9 EXPRE POSTHOOK: Lineage: part_change_various_various_double PARTITION(part=2).insert_num EXPRESSION [(values__tmp__table__20)values__tmp__table__20.FieldSchema(name:tmp_values_col1, type:string, comment:), ] _col0 _col1 _col2 _col3 _col4 _col5 _col6 _col7 _col8 _col9 _col10 _col11 _col12 PREHOOK: query: insert into table part_change_various_various_double partition(part=1) - values (6, -1255178165.77663, 9043162437544575070.974, -4314.7918, -1240033819, 91, 1698.95, -100.3597812, -63, 0, -66475.0000008, -284799488.1, 'new') + values (7, -1255178165.77663, 9043162437544575070.974, -4314.7918, -1240033819, 91, 1698.95, -100.3597812, -63, 0, -66475.0000008, -284799488.1, 'new') PREHOOK: type: QUERY PREHOOK: Input: default@values__tmp__table__21 PREHOOK: Output: default@part_change_various_various_double@part=1 POSTHOOK: query: insert into table part_change_various_various_double partition(part=1) - values (6, -1255178165.77663, 9043162437544575070.974, -4314.7918, -1240033819, 91, 1698.95, -100.3597812, -63, 0, -66475.0000008, -284799488.1, 'new') + values (7, -1255178165.77663, 9043162437544575070.974, -4314.7918, -1240033819, 91, 1698.95, -100.3597812, -63, 0, -66475.0000008, -284799488.1, 'new') POSTHOOK: type: QUERY POSTHOOK: Input: default@values__tmp__table__21 POSTHOOK: Output: default@part_change_various_various_double@part=1 @@ -1282,24 +1313,24 @@ STAGE PLANS: Map Operator Tree: TableScan alias: part_change_various_various_double - Statistics: Num rows: 6 Data size: 812 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 989 Basic stats: COMPLETE Column stats: NONE Select Operator expressions: insert_num (type: int), part (type: int), c1 (type: double), c2 (type: double), c3 (type: double), c4 (type: double), c5 (type: double), c6 (type: double), c7 (type: double), c8 (type: double), c9 (type: double), c10 (type: double), c11 (type: double), b (type: string) outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6, _col7, _col8, _col9, _col10, _col11, _col12, _col13 - Statistics: Num rows: 6 Data size: 812 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 989 Basic stats: COMPLETE Column stats: NONE Reduce Output Operator key expressions: _col0 (type: int) sort order: + - Statistics: Num rows: 6 Data size: 812 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 989 Basic stats: COMPLETE Column stats: NONE value expressions: _col1 (type: int), _col2 (type: double), _col3 (type: double), _col4 (type: double), _col5 (type: double), _col6 (type: double), _col7 (type: double), _col8 (type: double), _col9 (type: double), _col10 (type: double), _col11 (type: double), _col12 (type: double), _col13 (type: string) Reduce Operator Tree: Select Operator expressions: KEY.reducesinkkey0 (type: int), VALUE._col0 (type: int), VALUE._col1 (type: double), VALUE._col2 (type: double), VALUE._col3 (type: double), VALUE._col4 (type: double), VALUE._col5 (type: double), VALUE._col6 (type: double), VALUE._col7 (type: double), VALUE._col8 (type: double), VALUE._col9 (type: double), VALUE._col10 (type: double), VALUE._col11 (type: double), VALUE._col12 (type: string) outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6, _col7, _col8, _col9, _col10, _col11, _col12, _col13 - Statistics: Num rows: 6 Data size: 812 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 989 Basic stats: COMPLETE Column stats: NONE File Output Operator compressed: false - Statistics: Num rows: 6 Data size: 812 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 989 Basic stats: COMPLETE Column stats: NONE table: input format: org.apache.hadoop.mapred.SequenceFileInputFormat output format: org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat @@ -1325,11 +1356,12 @@ POSTHOOK: Input: default@part_change_various_various_double@part=2 #### A masked pattern was here #### insert_num part c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 b 1 1 1.0 NULL NULL 3244222.0 -29.0 4.70614135E8 4.70614135E8 -2999.0 -2999.0 -2999.0 -6.201817041048046E10 original -2 1 1.0 100.0 NULL NULL -3651.0 46114.284799488 46114.284799488 NULL NULL NULL 1.1710270493687568E9 original -3 1 0.0 72.0 NULL -93222.0 30.0 -66475.561431 -66475.561431 1.0 1.0 1.0 1.3441649006897012E11 original -4 1 1.0 -90.0 NULL 3289094.0 46114.0 9250340.75 9250340.75 5299.0 5299.0 5299.0 1.021033788990818E9 original -5 2 9.53967041E8 62.07915395590135 718.78 1.0 203.199548118 -60.0 6.2756387134856243E18 -230.0 -695025.0 7.011717E-5 4.28479948 new -6 1 NULL NULL -4314.0 NULL 91.0 1698.95 -100.3597812 -63.0 0.0 -66475.0000008 NULL new +2 1 1.0 100.0 32767.0 NULL -3651.0 -9.223372036854776E18 9.223372036854776E18 NULL NULL NULL 1.1710270493687568E9 original +3 1 1.0 100.0 -32768.0 NULL -3651.0 -9.223372036854776E18 9.223372036854776E18 NULL NULL NULL 1.1710270493687568E9 original +4 1 0.0 72.0 NULL -93222.0 30.0 -66475.561431 -66475.561431 1.0 1.0 1.0 1.3441649006897012E11 original +5 1 1.0 -90.0 NULL 3289094.0 46114.0 9250340.75 9250340.75 5299.0 5299.0 5299.0 1.021033788990818E9 original +6 2 9.53967041E8 62.07915395590135 718.78 1.0 203.199548118 -60.0 6.2756387134856243E18 -230.0 -695025.0 7.011717E-5 4.28479948 new +7 1 NULL NULL -4314.0 NULL 91.0 1698.95 -100.3597812 -63.0 0.0 -66475.0000008 NULL new PREHOOK: query: drop table part_change_various_various_double PREHOOK: type: DROPTABLE PREHOOK: Input: default@part_change_various_various_double @@ -1354,17 +1386,19 @@ POSTHOOK: Output: database:default POSTHOOK: Output: default@part_change_various_various_decimal PREHOOK: query: insert into table part_change_various_various_decimal partition(part=1) values(1, -2999, 200, 72909, 3244222, -29.0764, 470614135, 470614135, '--1551801.09502', '--1551801.09502', '--1551801.09502', '0004-09-22 18:26:29.519542222', 'original'), - (2, 0, 100, 483777, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), - (3, false, 72, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '1', '1', '1', '6229-06-28 02:54:28.970117179', 'original'), - (4, 1, -90, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '2402.3', '2402.3', '2402.3', '2002-05-10 05:29:48.990818073', 'original') + (2, 0, 100, 32767, -23372036854775, -3651.672121, -9223372036854775808.0, 9223372036854775807.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, 100, -32768, 23372036854775, -3651.672121, -9223372036854775809.0, 9223372036854775808.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, 72, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '1', '1', '1', '6229-06-28 02:54:28.970117179', 'original'), + (5, 1, -90, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '2402.3', '2402.3', '2402.3', '2002-05-10 05:29:48.990818073', 'original') PREHOOK: type: QUERY PREHOOK: Input: default@values__tmp__table__22 PREHOOK: Output: default@part_change_various_various_decimal@part=1 POSTHOOK: query: insert into table part_change_various_various_decimal partition(part=1) values(1, -2999, 200, 72909, 3244222, -29.0764, 470614135, 470614135, '--1551801.09502', '--1551801.09502', '--1551801.09502', '0004-09-22 18:26:29.519542222', 'original'), - (2, 0, 100, 483777, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), - (3, false, 72, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '1', '1', '1', '6229-06-28 02:54:28.970117179', 'original'), - (4, 1, -90, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '2402.3', '2402.3', '2402.3', '2002-05-10 05:29:48.990818073', 'original') + (2, 0, 100, 32767, -23372036854775, -3651.672121, -9223372036854775808.0, 9223372036854775807.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, 100, -32768, 23372036854775, -3651.672121, -9223372036854775809.0, 9223372036854775808.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, 72, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '1', '1', '1', '6229-06-28 02:54:28.970117179', 'original'), + (5, 1, -90, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '2402.3', '2402.3', '2402.3', '2002-05-10 05:29:48.990818073', 'original') POSTHOOK: type: QUERY POSTHOOK: Input: default@values__tmp__table__22 POSTHOOK: Output: default@part_change_various_various_decimal@part=1 @@ -1394,9 +1428,10 @@ POSTHOOK: Input: default@part_change_various_various_decimal@part=1 #### A masked pattern was here #### insert_num part c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 b 1 1 true NULL NULL 3244222 -29 4.70614144E8 4.70614135E8 --1551801.09502 --1551801.09502 --1551801.09502 0004-09-22 18:26:29.519542222 original -2 1 true 100 NULL NULL -3651 46114.285 46114.284799488 2007-02-09 05:17:29.368756876 original -3 1 false 72 NULL -93222 30 -66475.56 -66475.561431 1 1 1 6229-06-28 02:54:28.970117179 original -4 1 true -90 NULL 3289094 46114 9250341.0 9250340.75 2402.3 2402.3 2402.3 2002-05-10 05:29:48.990818073 original +2 1 true 100 32767 NULL -3651 -9.223372E18 9.223372036854776E18 2007-02-09 05:17:29.368756876 original +3 1 true 100 -32768 NULL -3651 -9.223372E18 9.223372036854776E18 2007-02-09 05:17:29.368756876 original +4 1 false 72 NULL -93222 30 -66475.56 -66475.561431 1 1 1 6229-06-28 02:54:28.970117179 original +5 1 true -90 NULL 3289094 46114 9250341.0 9250340.75 2402.3 2402.3 2402.3 2002-05-10 05:29:48.990818073 original PREHOOK: query: -- Table-Non-Cascade CHANGE COLUMNS ... alter table part_change_various_various_decimal replace columns (insert_num int, c1 DECIMAL(38,18), c2 DECIMAL(38,18), c3 DECIMAL(38,18), c4 DECIMAL(38,18), c5 DECIMAL(38,18), c6 DECIMAL(38,18), c7 DECIMAL(38,18), c8 DECIMAL(38,18), c9 DECIMAL(38,18), c10 DECIMAL(38,18), c11 DECIMAL(38,18), b STRING) PREHOOK: type: ALTERTABLE_REPLACECOLS @@ -1408,12 +1443,12 @@ POSTHOOK: type: ALTERTABLE_REPLACECOLS POSTHOOK: Input: default@part_change_various_various_decimal POSTHOOK: Output: default@part_change_various_various_decimal PREHOOK: query: insert into table part_change_various_various_decimal partition(part=2) - values (5, 953967041., 62.0791539559013466, 718.78, 1, 203.199548118, -60, 6275638713485623898, -230, -695025, 0.00007011717, 4.28479948, 'new') + values (6, 953967041., 62.0791539559013466, 718.78, 1, 203.199548118, -60, 6275638713485623898, -230, -695025, 0.00007011717, 4.28479948, 'new') PREHOOK: type: QUERY PREHOOK: Input: default@values__tmp__table__23 PREHOOK: Output: default@part_change_various_various_decimal@part=2 POSTHOOK: query: insert into table part_change_various_various_decimal partition(part=2) - values (5, 953967041., 62.0791539559013466, 718.78, 1, 203.199548118, -60, 6275638713485623898, -230, -695025, 0.00007011717, 4.28479948, 'new') + values (6, 953967041., 62.0791539559013466, 718.78, 1, 203.199548118, -60, 6275638713485623898, -230, -695025, 0.00007011717, 4.28479948, 'new') POSTHOOK: type: QUERY POSTHOOK: Input: default@values__tmp__table__23 POSTHOOK: Output: default@part_change_various_various_decimal@part=2 @@ -1432,12 +1467,12 @@ POSTHOOK: Lineage: part_change_various_various_decimal PARTITION(part=2).c9 EXPR POSTHOOK: Lineage: part_change_various_various_decimal PARTITION(part=2).insert_num EXPRESSION [(values__tmp__table__23)values__tmp__table__23.FieldSchema(name:tmp_values_col1, type:string, comment:), ] _col0 _col1 _col2 _col3 _col4 _col5 _col6 _col7 _col8 _col9 _col10 _col11 _col12 PREHOOK: query: insert into table part_change_various_various_decimal partition(part=1) - values (6,-1255178165.77663, 9043162437544575070.974, -4314.7918, -1240033819, 91, 1698.95, -100.3597812, -63, 0, -66475.0000008, -284799488.1, 'new') + values (7,-1255178165.77663, 9043162437544575070.974, -4314.7918, -1240033819, 91, 1698.95, -100.3597812, -63, 0, -66475.0000008, -284799488.1, 'new') PREHOOK: type: QUERY PREHOOK: Input: default@values__tmp__table__24 PREHOOK: Output: default@part_change_various_various_decimal@part=1 POSTHOOK: query: insert into table part_change_various_various_decimal partition(part=1) - values (6,-1255178165.77663, 9043162437544575070.974, -4314.7918, -1240033819, 91, 1698.95, -100.3597812, -63, 0, -66475.0000008, -284799488.1, 'new') + values (7,-1255178165.77663, 9043162437544575070.974, -4314.7918, -1240033819, 91, 1698.95, -100.3597812, -63, 0, -66475.0000008, -284799488.1, 'new') POSTHOOK: type: QUERY POSTHOOK: Input: default@values__tmp__table__24 POSTHOOK: Output: default@part_change_various_various_decimal@part=1 @@ -1472,24 +1507,24 @@ STAGE PLANS: Map Operator Tree: TableScan alias: part_change_various_various_decimal - Statistics: Num rows: 6 Data size: 1084 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 1222 Basic stats: COMPLETE Column stats: NONE Select Operator expressions: insert_num (type: int), part (type: int), c1 (type: decimal(38,18)), c2 (type: decimal(38,18)), c3 (type: decimal(38,18)), c4 (type: decimal(38,18)), c5 (type: decimal(38,18)), c6 (type: decimal(38,18)), c7 (type: decimal(38,18)), c8 (type: decimal(38,18)), c9 (type: decimal(38,18)), c10 (type: decimal(38,18)), c11 (type: decimal(38,18)), b (type: string) outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6, _col7, _col8, _col9, _col10, _col11, _col12, _col13 - Statistics: Num rows: 6 Data size: 1084 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 1222 Basic stats: COMPLETE Column stats: NONE Reduce Output Operator key expressions: _col0 (type: int) sort order: + - Statistics: Num rows: 6 Data size: 1084 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 1222 Basic stats: COMPLETE Column stats: NONE value expressions: _col1 (type: int), _col2 (type: decimal(38,18)), _col3 (type: decimal(38,18)), _col4 (type: decimal(38,18)), _col5 (type: decimal(38,18)), _col6 (type: decimal(38,18)), _col7 (type: decimal(38,18)), _col8 (type: decimal(38,18)), _col9 (type: decimal(38,18)), _col10 (type: decimal(38,18)), _col11 (type: decimal(38,18)), _col12 (type: decimal(38,18)), _col13 (type: string) Reduce Operator Tree: Select Operator expressions: KEY.reducesinkkey0 (type: int), VALUE._col0 (type: int), VALUE._col1 (type: decimal(38,18)), VALUE._col2 (type: decimal(38,18)), VALUE._col3 (type: decimal(38,18)), VALUE._col4 (type: decimal(38,18)), VALUE._col5 (type: decimal(38,18)), VALUE._col6 (type: decimal(38,18)), VALUE._col7 (type: decimal(38,18)), VALUE._col8 (type: decimal(38,18)), VALUE._col9 (type: decimal(38,18)), VALUE._col10 (type: decimal(38,18)), VALUE._col11 (type: decimal(38,18)), VALUE._col12 (type: string) outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6, _col7, _col8, _col9, _col10, _col11, _col12, _col13 - Statistics: Num rows: 6 Data size: 1084 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 1222 Basic stats: COMPLETE Column stats: NONE File Output Operator compressed: false - Statistics: Num rows: 6 Data size: 1084 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 1222 Basic stats: COMPLETE Column stats: NONE table: input format: org.apache.hadoop.mapred.SequenceFileInputFormat output format: org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat @@ -1515,11 +1550,12 @@ POSTHOOK: Input: default@part_change_various_various_decimal@part=2 #### A masked pattern was here #### insert_num part c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 b 1 1 1.000000000000000000 NULL NULL 3244222.000000000000000000 -29.000000000000000000 470614144.000000000000000000 470614135.000000000000000000 NULL NULL NULL -62018170410.480460000000000000 original -2 1 1.000000000000000000 100.000000000000000000 NULL NULL -3651.000000000000000000 46114.285000000000000000 46114.284799488000000000 NULL NULL NULL 1171027049.368756800000000000 original -3 1 0.000000000000000000 72.000000000000000000 NULL -93222.000000000000000000 30.000000000000000000 -66475.560000000000000000 -66475.561431000000000000 1.000000000000000000 1.000000000000000000 1.000000000000000000 134416490068.970120000000000000 original -4 1 1.000000000000000000 -90.000000000000000000 NULL 3289094.000000000000000000 46114.000000000000000000 9250341.000000000000000000 9250340.750000000000000000 2402.300000000000000000 2402.300000000000000000 2402.300000000000000000 1021033788.990818000000000000 original -5 2 953967041.000000000000000000 62.079153955901346600 718.780000000000000000 1.000000000000000000 203.199548118000000000 -60.000000000000000000 6275638713485623898.000000000000000000 -230.000000000000000000 -695025.000000000000000000 0.000070117170000000 4.284799480000000000 new -6 1 NULL NULL -4314.000000000000000000 -1240033819.000000000000000000 91.000000000000000000 1698.950000000000000000 -100.359781200000000000 -63.000000000000000000 0.000000000000000000 -66475.000000800000000000 NULL new +2 1 1.000000000000000000 100.000000000000000000 32767.000000000000000000 NULL -3651.000000000000000000 -9223372000000000000.000000000000000000 9223372036854776000.000000000000000000 NULL NULL NULL 1171027049.368756800000000000 original +3 1 1.000000000000000000 100.000000000000000000 -32768.000000000000000000 NULL -3651.000000000000000000 -9223372000000000000.000000000000000000 9223372036854776000.000000000000000000 NULL NULL NULL 1171027049.368756800000000000 original +4 1 0.000000000000000000 72.000000000000000000 NULL -93222.000000000000000000 30.000000000000000000 -66475.560000000000000000 -66475.561431000000000000 1.000000000000000000 1.000000000000000000 1.000000000000000000 134416490068.970120000000000000 original +5 1 1.000000000000000000 -90.000000000000000000 NULL 3289094.000000000000000000 46114.000000000000000000 9250341.000000000000000000 9250340.750000000000000000 2402.300000000000000000 2402.300000000000000000 2402.300000000000000000 1021033788.990818000000000000 original +6 2 953967041.000000000000000000 62.079153955901346600 718.780000000000000000 1.000000000000000000 203.199548118000000000 -60.000000000000000000 6275638713485623898.000000000000000000 -230.000000000000000000 -695025.000000000000000000 0.000070117170000000 4.284799480000000000 new +7 1 NULL NULL -4314.000000000000000000 -1240033819.000000000000000000 91.000000000000000000 1698.950000000000000000 -100.359781200000000000 -63.000000000000000000 0.000000000000000000 -66475.000000800000000000 NULL new PREHOOK: query: drop table part_change_various_various_decimal PREHOOK: type: DROPTABLE PREHOOK: Input: default@part_change_various_various_decimal @@ -1544,17 +1580,19 @@ POSTHOOK: Output: database:default POSTHOOK: Output: default@part_change_various_various_string PREHOOK: query: insert into table part_change_various_various_string partition(part=1) values(1, true, 200, 72909, 3244222, -99999999999, -29.0764, 470614135, 470614135, 'dynamic reptile ', 'dynamic reptile ', '0004-09-22 18:26:29.519542222', '2007-02-09', 'binary', 'original'), - (2, 0, 100, 483777, 14, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, ' baffling ', ' baffling ', '2007-02-09 05:17:29.368756876', '0004-09-22', 'binary', 'original'), - (3, false, 72, 3244222, -93222, 30.774, - 66475.561431, -66475.561431, 0.561431, '1', '1', '6229-06-28 02:54:28.970117179', '5966-07-09', 'binary', 'original'), - (4, 1, -90, 754072151, 3289094, 46114.284799488, 9250340.75, 9250340.75, 9250340.75, 'junkyard', 'junkyard', '2002-05-10 05:29:48.990818073', '1815-05-06', 'binary', 'original') + (2, 0, 100, 32767, -23372036854775, -3651.672121, -9223372036854775808.0, 9223372036854775807.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, 100, -32768, 23372036854775, -3651.672121, -9223372036854775809.0, 9223372036854775808.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, 72, 3244222, -93222, 30.774, - 66475.561431, -66475.561431, 0.561431, '1', '1', '6229-06-28 02:54:28.970117179', '5966-07-09', 'binary', 'original'), + (5, 1, -90, 754072151, 3289094, 46114.284799488, 9250340.75, 9250340.75, 9250340.75, 'junkyard', 'junkyard', '2002-05-10 05:29:48.990818073', '1815-05-06', 'binary', 'original') PREHOOK: type: QUERY PREHOOK: Input: default@values__tmp__table__25 PREHOOK: Output: default@part_change_various_various_string@part=1 POSTHOOK: query: insert into table part_change_various_various_string partition(part=1) values(1, true, 200, 72909, 3244222, -99999999999, -29.0764, 470614135, 470614135, 'dynamic reptile ', 'dynamic reptile ', '0004-09-22 18:26:29.519542222', '2007-02-09', 'binary', 'original'), - (2, 0, 100, 483777, 14, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, ' baffling ', ' baffling ', '2007-02-09 05:17:29.368756876', '0004-09-22', 'binary', 'original'), - (3, false, 72, 3244222, -93222, 30.774, - 66475.561431, -66475.561431, 0.561431, '1', '1', '6229-06-28 02:54:28.970117179', '5966-07-09', 'binary', 'original'), - (4, 1, -90, 754072151, 3289094, 46114.284799488, 9250340.75, 9250340.75, 9250340.75, 'junkyard', 'junkyard', '2002-05-10 05:29:48.990818073', '1815-05-06', 'binary', 'original') + (2, 0, 100, 32767, -23372036854775, -3651.672121, -9223372036854775808.0, 9223372036854775807.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, 100, -32768, 23372036854775, -3651.672121, -9223372036854775809.0, 9223372036854775808.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, 72, 3244222, -93222, 30.774, - 66475.561431, -66475.561431, 0.561431, '1', '1', '6229-06-28 02:54:28.970117179', '5966-07-09', 'binary', 'original'), + (5, 1, -90, 754072151, 3289094, 46114.284799488, 9250340.75, 9250340.75, 9250340.75, 'junkyard', 'junkyard', '2002-05-10 05:29:48.990818073', '1815-05-06', 'binary', 'original') POSTHOOK: type: QUERY POSTHOOK: Input: default@values__tmp__table__25 POSTHOOK: Output: default@part_change_various_various_string@part=1 @@ -1586,9 +1624,10 @@ POSTHOOK: Input: default@part_change_various_various_string@part=1 #### A masked pattern was here #### insert_num part c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 c12 c13 b 1 1 true NULL NULL 3244222 -99999999999 -29.0764 4.70614135E8 470614135.000000000000000000 dynamic reptile dynamic reptile 0004-09-22 18:26:29.519542222 2007-02-09 binary original -2 1 true 100 NULL 14 -23866739993 -3651.672 46114.284799488 46114.284799488000000000 baffling baffling 2007-02-09 05:17:29.368756876 0004-09-22 binary original -3 1 false 72 NULL -93222 30 -66475.56 -66475.561431 0.561431000000000000 1 1 6229-06-28 02:54:28.970117179 5966-07-09 binary original -4 1 true -90 NULL 3289094 46114 9250341.0 9250340.75 9250340.750000000000000000 junkyard junkyard 2002-05-10 05:29:48.990818073 1815-05-06 binary original +2 1 true 100 32767 NULL -3651 -9.223372E18 9.223372036854776E18 NULL 2007-02-09 05:17:29.368756876 NULL NULL NULL +3 1 true 100 -32768 NULL -3651 -9.223372E18 9.223372036854776E18 NULL 2007-02-09 05:17:29.368756876 NULL NULL NULL +4 1 false 72 NULL -93222 30 -66475.56 -66475.561431 0.561431000000000000 1 1 6229-06-28 02:54:28.970117179 5966-07-09 binary original +5 1 true -90 NULL 3289094 46114 9250341.0 9250340.75 9250340.750000000000000000 junkyard junkyard 2002-05-10 05:29:48.990818073 1815-05-06 binary original PREHOOK: query: -- Table-Non-Cascade CHANGE COLUMNS ... alter table part_change_various_various_string replace columns (insert_num int, c1 STRING, c2 STRING, c3 STRING, c4 STRING, c5 STRING, c6 STRING, c7 STRING, c8 STRING, c9 STRING, c10 STRING, c11 STRING, c12 STRING, c13 STRING, b STRING) PREHOOK: type: ALTERTABLE_REPLACECOLS @@ -1600,12 +1639,12 @@ POSTHOOK: type: ALTERTABLE_REPLACECOLS POSTHOOK: Input: default@part_change_various_various_string POSTHOOK: Output: default@part_change_various_various_string PREHOOK: query: insert into table part_change_various_various_string partition(part=2) - values (5, 'true', '400', '44388', -'100', '953967041.', '62.079153', '718.78', '1', 'verdict', 'verdict', 'timestamp', 'date', 'binary', 'new') + values (6, 'true', '400', '44388', -'100', '953967041.', '62.079153', '718.78', '1', 'verdict', 'verdict', 'timestamp', 'date', 'binary', 'new') PREHOOK: type: QUERY PREHOOK: Input: default@values__tmp__table__26 PREHOOK: Output: default@part_change_various_various_string@part=2 POSTHOOK: query: insert into table part_change_various_various_string partition(part=2) - values (5, 'true', '400', '44388', -'100', '953967041.', '62.079153', '718.78', '1', 'verdict', 'verdict', 'timestamp', 'date', 'binary', 'new') + values (6, 'true', '400', '44388', -'100', '953967041.', '62.079153', '718.78', '1', 'verdict', 'verdict', 'timestamp', 'date', 'binary', 'new') POSTHOOK: type: QUERY POSTHOOK: Input: default@values__tmp__table__26 POSTHOOK: Output: default@part_change_various_various_string@part=2 @@ -1626,12 +1665,12 @@ POSTHOOK: Lineage: part_change_various_various_string PARTITION(part=2).c9 SIMPL POSTHOOK: Lineage: part_change_various_various_string PARTITION(part=2).insert_num EXPRESSION [(values__tmp__table__26)values__tmp__table__26.FieldSchema(name:tmp_values_col1, type:string, comment:), ] _col0 _col1 _col2 _col3 _col4 _col5 _col6 _col7 _col8 _col9 _col10 _col11 _col12 _col13 _col14 PREHOOK: query: insert into table part_change_various_various_string partition(part=1) - values (6,-'false', '-67', '833', '63993', ' 1255178165.77663', '905070.974', '-4314.7918', -'1240033819', 'trial', 'trial', '2016-03-07 03:02:22.0', '2016-03-07', 'binary', 'new') + values (7,-'false', '-67', '833', '63993', ' 1255178165.77663', '905070.974', '-4314.7918', -'1240033819', 'trial', 'trial', '2016-03-07 03:02:22.0', '2016-03-07', 'binary', 'new') PREHOOK: type: QUERY PREHOOK: Input: default@values__tmp__table__27 PREHOOK: Output: default@part_change_various_various_string@part=1 POSTHOOK: query: insert into table part_change_various_various_string partition(part=1) - values (6,-'false', '-67', '833', '63993', ' 1255178165.77663', '905070.974', '-4314.7918', -'1240033819', 'trial', 'trial', '2016-03-07 03:02:22.0', '2016-03-07', 'binary', 'new') + values (7,-'false', '-67', '833', '63993', ' 1255178165.77663', '905070.974', '-4314.7918', -'1240033819', 'trial', 'trial', '2016-03-07 03:02:22.0', '2016-03-07', 'binary', 'new') POSTHOOK: type: QUERY POSTHOOK: Input: default@values__tmp__table__27 POSTHOOK: Output: default@part_change_various_various_string@part=1 @@ -1668,24 +1707,24 @@ STAGE PLANS: Map Operator Tree: TableScan alias: part_change_various_various_string - Statistics: Num rows: 6 Data size: 914 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 991 Basic stats: COMPLETE Column stats: NONE Select Operator expressions: insert_num (type: int), part (type: int), c1 (type: string), c2 (type: string), c3 (type: string), c4 (type: string), c5 (type: string), c6 (type: string), c7 (type: string), c8 (type: string), c9 (type: string), c10 (type: string), c11 (type: string), c12 (type: string), c13 (type: string), b (type: string) outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6, _col7, _col8, _col9, _col10, _col11, _col12, _col13, _col14, _col15 - Statistics: Num rows: 6 Data size: 914 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 991 Basic stats: COMPLETE Column stats: NONE Reduce Output Operator key expressions: _col0 (type: int) sort order: + - Statistics: Num rows: 6 Data size: 914 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 991 Basic stats: COMPLETE Column stats: NONE value expressions: _col1 (type: int), _col2 (type: string), _col3 (type: string), _col4 (type: string), _col5 (type: string), _col6 (type: string), _col7 (type: string), _col8 (type: string), _col9 (type: string), _col10 (type: string), _col11 (type: string), _col12 (type: string), _col13 (type: string), _col14 (type: string), _col15 (type: string) Reduce Operator Tree: Select Operator expressions: KEY.reducesinkkey0 (type: int), VALUE._col0 (type: int), VALUE._col1 (type: string), VALUE._col2 (type: string), VALUE._col3 (type: string), VALUE._col4 (type: string), VALUE._col5 (type: string), VALUE._col6 (type: string), VALUE._col7 (type: string), VALUE._col8 (type: string), VALUE._col9 (type: string), VALUE._col10 (type: string), VALUE._col11 (type: string), VALUE._col12 (type: string), VALUE._col13 (type: string), VALUE._col14 (type: string) outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6, _col7, _col8, _col9, _col10, _col11, _col12, _col13, _col14, _col15 - Statistics: Num rows: 6 Data size: 914 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 991 Basic stats: COMPLETE Column stats: NONE File Output Operator compressed: false - Statistics: Num rows: 6 Data size: 914 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 991 Basic stats: COMPLETE Column stats: NONE table: input format: org.apache.hadoop.mapred.SequenceFileInputFormat output format: org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat @@ -1711,11 +1750,12 @@ POSTHOOK: Input: default@part_change_various_various_string@part=2 #### A masked pattern was here #### insert_num part c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 c12 c13 b 1 1 TRUE NULL NULL 3244222 -99999999999 -29.0764 4.70614135E8 470614135 dynamic reptile dynamic reptile 0004-09-22 18:26:29.519542222 2007-02-09 binary original -2 1 TRUE 100 NULL 14 -23866739993 -3651.672 46114.284799488 46114.284799488 baffling baffling 2007-02-09 05:17:29.368756876 0004-09-22 binary original -3 1 FALSE 72 NULL -93222 30 -66475.56 -66475.561431 0.561431 1 1 6229-06-28 02:54:28.970117179 5966-07-09 binary original -4 1 TRUE -90 NULL 3289094 46114 9250341.0 9250340.75 9250340.75 junkyard junkyard 2002-05-10 05:29:48.990818073 1815-05-06 binary original -5 2 true 400 44388 -100 953967041. 62.079153 718.78 1 verdict verdict timestamp date binary new -6 1 NULL -67 833 63993 NULL 905071.0 -4314.7918 -1240033819 trial trial 2016-03-07 03:02:22 2016-03-07 n)گ new +2 1 TRUE 100 32767 NULL -3651 -9.223372E18 9.223372036854776E18 NULL 2007-02-09 05:17:29.368756876 NULL NULL NULL +3 1 TRUE 100 -32768 NULL -3651 -9.223372E18 9.223372036854776E18 NULL 2007-02-09 05:17:29.368756876 NULL NULL NULL +4 1 FALSE 72 NULL -93222 30 -66475.56 -66475.561431 0.561431 1 1 6229-06-28 02:54:28.970117179 5966-07-09 binary original +5 1 TRUE -90 NULL 3289094 46114 9250341.0 9250340.75 9250340.75 junkyard junkyard 2002-05-10 05:29:48.990818073 1815-05-06 binary original +6 2 true 400 44388 -100 953967041. 62.079153 718.78 1 verdict verdict timestamp date binary new +7 1 NULL -67 833 63993 NULL 905071.0 -4314.7918 -1240033819 trial trial 2016-03-07 03:02:22 2016-03-07 n)گ new PREHOOK: query: drop table part_change_various_various_string PREHOOK: type: DROPTABLE PREHOOK: Input: default@part_change_various_various_string @@ -1740,17 +1780,19 @@ POSTHOOK: Output: database:default POSTHOOK: Output: default@part_change_various_various_char PREHOOK: query: insert into table part_change_various_various_char partition(part=1) values(1, true, 200, 72909, 3244222, -99999999999, -29.0764, 470614135, 470614135, 'dynamic reptile ', 'dynamic reptile ', '0004-09-22 18:26:29.519542222', '2007-02-09', 'binary', 'original'), - (2, 0, 100, 483777, 14, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, ' baffling ', ' baffling ', '2007-02-09 05:17:29.368756876', '0004-09-22', 'binary', 'original'), - (3, false, 72, 3244222, -93222, 30.774, - 66475.561431, -66475.561431, 0.561431, '1', '1', '6229-06-28 02:54:28.970117179', '5966-07-09', 'binary', 'original'), - (4, 1, -90, 754072151, 3289094, 46114.284799488, 9250340.75, 9250340.75, 9250340.75, 'junkyard', 'junkyard', '2002-05-10 05:29:48.990818073', '1815-05-06', 'binary', 'original') + (2, 0, 100, 32767, -23372036854775, -3651.672121, -9223372036854775808.0, 9223372036854775807.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, 100, -32768, 23372036854775, -3651.672121, -9223372036854775809.0, 9223372036854775808.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, 72, 3244222, -93222, 30.774, - 66475.561431, -66475.561431, 0.561431, '1', '1', '6229-06-28 02:54:28.970117179', '5966-07-09', 'binary', 'original'), + (5, 1, -90, 754072151, 3289094, 46114.284799488, 9250340.75, 9250340.75, 9250340.75, 'junkyard', 'junkyard', '2002-05-10 05:29:48.990818073', '1815-05-06', 'binary', 'original') PREHOOK: type: QUERY PREHOOK: Input: default@values__tmp__table__28 PREHOOK: Output: default@part_change_various_various_char@part=1 POSTHOOK: query: insert into table part_change_various_various_char partition(part=1) values(1, true, 200, 72909, 3244222, -99999999999, -29.0764, 470614135, 470614135, 'dynamic reptile ', 'dynamic reptile ', '0004-09-22 18:26:29.519542222', '2007-02-09', 'binary', 'original'), - (2, 0, 100, 483777, 14, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, ' baffling ', ' baffling ', '2007-02-09 05:17:29.368756876', '0004-09-22', 'binary', 'original'), - (3, false, 72, 3244222, -93222, 30.774, - 66475.561431, -66475.561431, 0.561431, '1', '1', '6229-06-28 02:54:28.970117179', '5966-07-09', 'binary', 'original'), - (4, 1, -90, 754072151, 3289094, 46114.284799488, 9250340.75, 9250340.75, 9250340.75, 'junkyard', 'junkyard', '2002-05-10 05:29:48.990818073', '1815-05-06', 'binary', 'original') + (2, 0, 100, 32767, -23372036854775, -3651.672121, -9223372036854775808.0, 9223372036854775807.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, 100, -32768, 23372036854775, -3651.672121, -9223372036854775809.0, 9223372036854775808.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, 72, 3244222, -93222, 30.774, - 66475.561431, -66475.561431, 0.561431, '1', '1', '6229-06-28 02:54:28.970117179', '5966-07-09', 'binary', 'original'), + (5, 1, -90, 754072151, 3289094, 46114.284799488, 9250340.75, 9250340.75, 9250340.75, 'junkyard', 'junkyard', '2002-05-10 05:29:48.990818073', '1815-05-06', 'binary', 'original') POSTHOOK: type: QUERY POSTHOOK: Input: default@values__tmp__table__28 POSTHOOK: Output: default@part_change_various_various_char@part=1 @@ -1782,9 +1824,10 @@ POSTHOOK: Input: default@part_change_various_various_char@part=1 #### A masked pattern was here #### insert_num part c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 c12 c13 b 1 1 true NULL NULL 3244222 -99999999999 -29.0764 4.70614135E8 470614135.000000000000000000 dynamic reptile dynamic reptile 0004-09-22 18:26:29.519542222 2007-02-09 binary original -2 1 true 100 NULL 14 -23866739993 -3651.672 46114.284799488 46114.284799488000000000 baffling baffling 2007-02-09 05:17:29.368756876 0004-09-22 binary original -3 1 false 72 NULL -93222 30 -66475.56 -66475.561431 0.561431000000000000 1 1 6229-06-28 02:54:28.970117179 5966-07-09 binary original -4 1 true -90 NULL 3289094 46114 9250341.0 9250340.75 9250340.750000000000000000 junkyard junkyard 2002-05-10 05:29:48.990818073 1815-05-06 binary original +2 1 true 100 32767 NULL -3651 -9.223372E18 9.223372036854776E18 NULL 2007-02-09 05:17:29.368756876 NULL NULL NULL +3 1 true 100 -32768 NULL -3651 -9.223372E18 9.223372036854776E18 NULL 2007-02-09 05:17:29.368756876 NULL NULL NULL +4 1 false 72 NULL -93222 30 -66475.56 -66475.561431 0.561431000000000000 1 1 6229-06-28 02:54:28.970117179 5966-07-09 binary original +5 1 true -90 NULL 3289094 46114 9250341.0 9250340.75 9250340.750000000000000000 junkyard junkyard 2002-05-10 05:29:48.990818073 1815-05-06 binary original PREHOOK: query: -- Table-Non-Cascade CHANGE COLUMNS ... alter table part_change_various_various_char replace columns (insert_num int, c1 CHAR(25), c2 CHAR(25), c3 CHAR(25), c4 CHAR(25), c5 CHAR(25), c6 CHAR(25), c7 CHAR(25), c8 CHAR(25), c9 CHAR(25), c10 CHAR(25), c11 CHAR(25), c12 CHAR(25), c13 CHAR(25), b STRING) PREHOOK: type: ALTERTABLE_REPLACECOLS @@ -1796,12 +1839,12 @@ POSTHOOK: type: ALTERTABLE_REPLACECOLS POSTHOOK: Input: default@part_change_various_various_char POSTHOOK: Output: default@part_change_various_various_char PREHOOK: query: insert into table part_change_various_various_char partition(part=2) - values (5, 'true', '400', '44388', -'100', '953967041.', '62.079153', '718.78', '1', 'verdict', 'verdict', 'timestamp', 'date', 'binary', 'new') + values (6, 'true', '400', '44388', -'100', '953967041.', '62.079153', '718.78', '1', 'verdict', 'verdict', 'timestamp', 'date', 'binary', 'new') PREHOOK: type: QUERY PREHOOK: Input: default@values__tmp__table__29 PREHOOK: Output: default@part_change_various_various_char@part=2 POSTHOOK: query: insert into table part_change_various_various_char partition(part=2) - values (5, 'true', '400', '44388', -'100', '953967041.', '62.079153', '718.78', '1', 'verdict', 'verdict', 'timestamp', 'date', 'binary', 'new') + values (6, 'true', '400', '44388', -'100', '953967041.', '62.079153', '718.78', '1', 'verdict', 'verdict', 'timestamp', 'date', 'binary', 'new') POSTHOOK: type: QUERY POSTHOOK: Input: default@values__tmp__table__29 POSTHOOK: Output: default@part_change_various_various_char@part=2 @@ -1822,12 +1865,12 @@ POSTHOOK: Lineage: part_change_various_various_char PARTITION(part=2).c9 EXPRESS POSTHOOK: Lineage: part_change_various_various_char PARTITION(part=2).insert_num EXPRESSION [(values__tmp__table__29)values__tmp__table__29.FieldSchema(name:tmp_values_col1, type:string, comment:), ] _col0 _col1 _col2 _col3 _col4 _col5 _col6 _col7 _col8 _col9 _col10 _col11 _col12 _col13 _col14 PREHOOK: query: insert into table part_change_various_various_char partition(part=1) - values (6,-'false', '-67', '833', '63993', ' 1255178165.77663', '905070.974', '-4314.7918', -'1240033819', 'trial', 'trial', '2016-03-07 03:02:22.0', '2016-03-07', 'binary', 'new') + values (7,-'false', '-67', '833', '63993', ' 1255178165.77663', '905070.974', '-4314.7918', -'1240033819', 'trial', 'trial', '2016-03-07 03:02:22.0', '2016-03-07', 'binary', 'new') PREHOOK: type: QUERY PREHOOK: Input: default@values__tmp__table__30 PREHOOK: Output: default@part_change_various_various_char@part=1 POSTHOOK: query: insert into table part_change_various_various_char partition(part=1) - values (6,-'false', '-67', '833', '63993', ' 1255178165.77663', '905070.974', '-4314.7918', -'1240033819', 'trial', 'trial', '2016-03-07 03:02:22.0', '2016-03-07', 'binary', 'new') + values (7,-'false', '-67', '833', '63993', ' 1255178165.77663', '905070.974', '-4314.7918', -'1240033819', 'trial', 'trial', '2016-03-07 03:02:22.0', '2016-03-07', 'binary', 'new') POSTHOOK: type: QUERY POSTHOOK: Input: default@values__tmp__table__30 POSTHOOK: Output: default@part_change_various_various_char@part=1 @@ -1864,24 +1907,24 @@ STAGE PLANS: Map Operator Tree: TableScan alias: part_change_various_various_char - Statistics: Num rows: 6 Data size: 1317 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 1355 Basic stats: COMPLETE Column stats: NONE Select Operator expressions: insert_num (type: int), part (type: int), c1 (type: char(25)), c2 (type: char(25)), c3 (type: char(25)), c4 (type: char(25)), c5 (type: char(25)), c6 (type: char(25)), c7 (type: char(25)), c8 (type: char(25)), c9 (type: char(25)), c10 (type: char(25)), c11 (type: char(25)), c12 (type: char(25)), c13 (type: char(25)), b (type: string) outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6, _col7, _col8, _col9, _col10, _col11, _col12, _col13, _col14, _col15 - Statistics: Num rows: 6 Data size: 1317 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 1355 Basic stats: COMPLETE Column stats: NONE Reduce Output Operator key expressions: _col0 (type: int) sort order: + - Statistics: Num rows: 6 Data size: 1317 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 1355 Basic stats: COMPLETE Column stats: NONE value expressions: _col1 (type: int), _col2 (type: char(25)), _col3 (type: char(25)), _col4 (type: char(25)), _col5 (type: char(25)), _col6 (type: char(25)), _col7 (type: char(25)), _col8 (type: char(25)), _col9 (type: char(25)), _col10 (type: char(25)), _col11 (type: char(25)), _col12 (type: char(25)), _col13 (type: char(25)), _col14 (type: char(25)), _col15 (type: string) Reduce Operator Tree: Select Operator expressions: KEY.reducesinkkey0 (type: int), VALUE._col0 (type: int), VALUE._col1 (type: char(25)), VALUE._col2 (type: char(25)), VALUE._col3 (type: char(25)), VALUE._col4 (type: char(25)), VALUE._col5 (type: char(25)), VALUE._col6 (type: char(25)), VALUE._col7 (type: char(25)), VALUE._col8 (type: char(25)), VALUE._col9 (type: char(25)), VALUE._col10 (type: char(25)), VALUE._col11 (type: char(25)), VALUE._col12 (type: char(25)), VALUE._col13 (type: char(25)), VALUE._col14 (type: string) outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6, _col7, _col8, _col9, _col10, _col11, _col12, _col13, _col14, _col15 - Statistics: Num rows: 6 Data size: 1317 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 1355 Basic stats: COMPLETE Column stats: NONE File Output Operator compressed: false - Statistics: Num rows: 6 Data size: 1317 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 1355 Basic stats: COMPLETE Column stats: NONE table: input format: org.apache.hadoop.mapred.SequenceFileInputFormat output format: org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat @@ -1907,11 +1950,12 @@ POSTHOOK: Input: default@part_change_various_various_char@part=2 #### A masked pattern was here #### insert_num part c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 c12 c13 b 1 1 TRUE NULL NULL 3244222 -99999999999 -29.0764 4.70614135E8 470614135 dynamic reptile dynamic reptile 0004-09-22 18:26:29.51954 2007-02-09 binary original -2 1 TRUE 100 NULL 14 -23866739993 -3651.672 46114.284799488 46114.284799488 baffling baffling 2007-02-09 05:17:29.36875 0004-09-22 binary original -3 1 FALSE 72 NULL -93222 30 -66475.56 -66475.561431 0.561431 1 1 6229-06-28 02:54:28.97011 5966-07-09 binary original -4 1 TRUE -90 NULL 3289094 46114 9250341.0 9250340.75 9250340.75 junkyard junkyard 2002-05-10 05:29:48.99081 1815-05-06 binary original -5 2 true 400 44388 -100 953967041. 62.079153 718.78 1 verdict verdict timestamp date binary new -6 1 NULL NULL NULL NULL NULL 905071.0 -4314.7918 -1240033819 trial trial 2016-03-07 03:02:22 NULL n)گ new +2 1 TRUE 100 32767 NULL -3651 -9.223372E18 9.223372036854776E18 NULL 2007-02-09 05:17:29.36875 NULL NULL NULL +3 1 TRUE 100 -32768 NULL -3651 -9.223372E18 9.223372036854776E18 NULL 2007-02-09 05:17:29.36875 NULL NULL NULL +4 1 FALSE 72 NULL -93222 30 -66475.56 -66475.561431 0.561431 1 1 6229-06-28 02:54:28.97011 5966-07-09 binary original +5 1 TRUE -90 NULL 3289094 46114 9250341.0 9250340.75 9250340.75 junkyard junkyard 2002-05-10 05:29:48.99081 1815-05-06 binary original +6 2 true 400 44388 -100 953967041. 62.079153 718.78 1 verdict verdict timestamp date binary new +7 1 NULL NULL NULL NULL NULL 905071.0 -4314.7918 -1240033819 trial trial 2016-03-07 03:02:22 NULL n)گ new PREHOOK: query: drop table part_change_various_various_char PREHOOK: type: DROPTABLE PREHOOK: Input: default@part_change_various_various_char @@ -1936,17 +1980,19 @@ POSTHOOK: Output: database:default POSTHOOK: Output: default@part_change_various_various_char_trunc PREHOOK: query: insert into table part_change_various_various_char_trunc partition(part=1) values(1, true, 200, 72909, 3244222, -99999999999, -29.0764, 470614135, 470614135, 'dynamic reptile ', 'dynamic reptile ', '0004-09-22 18:26:29.519542222', '2007-02-09', 'binary', 'original'), - (2, 0, 100, 483777, 14, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, ' baffling ', ' baffling ', '2007-02-09 05:17:29.368756876', '0004-09-22', 'binary', 'original'), - (3, false, 72, 3244222, -93222, 30.774, - 66475.561431, -66475.561431, 0.561431, '1', '1', '6229-06-28 02:54:28.970117179', '5966-07-09', 'binary', 'original'), - (4, 1, -90, 754072151, 3289094, 46114.284799488, 9250340.75, 9250340.75, 9250340.75, 'junkyard', 'junkyard', '2002-05-10 05:29:48.990818073', '1815-05-06', 'binary', 'original') + (2, 0, 100, 32767, -23372036854775, -3651.672121, -9223372036854775808.0, 9223372036854775807.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, 100, -32768, 23372036854775, -3651.672121, -9223372036854775809.0, 9223372036854775808.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, 72, 3244222, -93222, 30.774, - 66475.561431, -66475.561431, 0.561431, '1', '1', '6229-06-28 02:54:28.970117179', '5966-07-09', 'binary', 'original'), + (5, 1, -90, 754072151, 3289094, 46114.284799488, 9250340.75, 9250340.75, 9250340.75, 'junkyard', 'junkyard', '2002-05-10 05:29:48.990818073', '1815-05-06', 'binary', 'original') PREHOOK: type: QUERY PREHOOK: Input: default@values__tmp__table__31 PREHOOK: Output: default@part_change_various_various_char_trunc@part=1 POSTHOOK: query: insert into table part_change_various_various_char_trunc partition(part=1) values(1, true, 200, 72909, 3244222, -99999999999, -29.0764, 470614135, 470614135, 'dynamic reptile ', 'dynamic reptile ', '0004-09-22 18:26:29.519542222', '2007-02-09', 'binary', 'original'), - (2, 0, 100, 483777, 14, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, ' baffling ', ' baffling ', '2007-02-09 05:17:29.368756876', '0004-09-22', 'binary', 'original'), - (3, false, 72, 3244222, -93222, 30.774, - 66475.561431, -66475.561431, 0.561431, '1', '1', '6229-06-28 02:54:28.970117179', '5966-07-09', 'binary', 'original'), - (4, 1, -90, 754072151, 3289094, 46114.284799488, 9250340.75, 9250340.75, 9250340.75, 'junkyard', 'junkyard', '2002-05-10 05:29:48.990818073', '1815-05-06', 'binary', 'original') + (2, 0, 100, 32767, -23372036854775, -3651.672121, -9223372036854775808.0, 9223372036854775807.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, 100, -32768, 23372036854775, -3651.672121, -9223372036854775809.0, 9223372036854775808.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, 72, 3244222, -93222, 30.774, - 66475.561431, -66475.561431, 0.561431, '1', '1', '6229-06-28 02:54:28.970117179', '5966-07-09', 'binary', 'original'), + (5, 1, -90, 754072151, 3289094, 46114.284799488, 9250340.75, 9250340.75, 9250340.75, 'junkyard', 'junkyard', '2002-05-10 05:29:48.990818073', '1815-05-06', 'binary', 'original') POSTHOOK: type: QUERY POSTHOOK: Input: default@values__tmp__table__31 POSTHOOK: Output: default@part_change_various_various_char_trunc@part=1 @@ -1978,9 +2024,10 @@ POSTHOOK: Input: default@part_change_various_various_char_trunc@part=1 #### A masked pattern was here #### insert_num part c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 c12 c13 b 1 1 true NULL NULL 3244222 -99999999999 -29.0764 4.70614135E8 470614135.000000000000000000 dynamic reptile dynamic 0004-09-22 18:26:29.519542222 2007-02-09 binary original -2 1 true 100 NULL 14 -23866739993 -3651.672 46114.284799488 46114.284799488000000000 baffling baffli 2007-02-09 05:17:29.368756876 0004-09-22 binary original -3 1 false 72 NULL -93222 30 -66475.56 -66475.561431 0.561431000000000000 1 1 6229-06-28 02:54:28.970117179 5966-07-09 binary original -4 1 true -90 NULL 3289094 46114 9250341.0 9250340.75 9250340.750000000000000000 junkyard junkyard 2002-05-10 05:29:48.990818073 1815-05-06 binary original +2 1 true 100 32767 NULL -3651 -9.223372E18 9.223372036854776E18 NULL 2007-02-09 05:17:29.368756876 NULL NULL NULL +3 1 true 100 -32768 NULL -3651 -9.223372E18 9.223372036854776E18 NULL 2007-02-09 05:17:29.368756876 NULL NULL NULL +4 1 false 72 NULL -93222 30 -66475.56 -66475.561431 0.561431000000000000 1 1 6229-06-28 02:54:28.970117179 5966-07-09 binary original +5 1 true -90 NULL 3289094 46114 9250341.0 9250340.75 9250340.750000000000000000 junkyard junkyard 2002-05-10 05:29:48.990818073 1815-05-06 binary original PREHOOK: query: -- Table-Non-Cascade CHANGE COLUMNS ... alter table part_change_various_various_char_trunc replace columns (insert_num int, c1 CHAR(8), c2 CHAR(8), c3 CHAR(8), c4 CHAR(8), c5 CHAR(8), c6 CHAR(8), c7 CHAR(8), c8 CHAR(8), c9 CHAR(8), c10 CHAR(8), c11 CHAR(8), c12 CHAR(8), c13 CHAR(8), b STRING) PREHOOK: type: ALTERTABLE_REPLACECOLS @@ -1992,12 +2039,12 @@ POSTHOOK: type: ALTERTABLE_REPLACECOLS POSTHOOK: Input: default@part_change_various_various_char_trunc POSTHOOK: Output: default@part_change_various_various_char_trunc PREHOOK: query: insert into table part_change_various_various_char_trunc partition(part=2) - values (5, 'true', '400', '44388', -'100', '953967041.', '62.079153', '718.78', '1', 'verdict', 'verdict', 'timestamp', 'date', 'binary', 'new') + values (6, 'true', '400', '44388', -'100', '953967041.', '62.079153', '718.78', '1', 'verdict', 'verdict', 'timestamp', 'date', 'binary', 'new') PREHOOK: type: QUERY PREHOOK: Input: default@values__tmp__table__32 PREHOOK: Output: default@part_change_various_various_char_trunc@part=2 POSTHOOK: query: insert into table part_change_various_various_char_trunc partition(part=2) - values (5, 'true', '400', '44388', -'100', '953967041.', '62.079153', '718.78', '1', 'verdict', 'verdict', 'timestamp', 'date', 'binary', 'new') + values (6, 'true', '400', '44388', -'100', '953967041.', '62.079153', '718.78', '1', 'verdict', 'verdict', 'timestamp', 'date', 'binary', 'new') POSTHOOK: type: QUERY POSTHOOK: Input: default@values__tmp__table__32 POSTHOOK: Output: default@part_change_various_various_char_trunc@part=2 @@ -2018,12 +2065,12 @@ POSTHOOK: Lineage: part_change_various_various_char_trunc PARTITION(part=2).c9 E POSTHOOK: Lineage: part_change_various_various_char_trunc PARTITION(part=2).insert_num EXPRESSION [(values__tmp__table__32)values__tmp__table__32.FieldSchema(name:tmp_values_col1, type:string, comment:), ] _col0 _col1 _col2 _col3 _col4 _col5 _col6 _col7 _col8 _col9 _col10 _col11 _col12 _col13 _col14 PREHOOK: query: insert into table part_change_various_various_char_trunc partition(part=1) - values (6,-'false', '-67', '833', '63993', ' 1255178165.77663', '905070.974', '-4314.7918', -'1240033819', 'trial', 'trial', '2016-03-07 03:02:22.0', '2016-03-07', 'binary', 'new') + values (7,-'false', '-67', '833', '63993', ' 1255178165.77663', '905070.974', '-4314.7918', -'1240033819', 'trial', 'trial', '2016-03-07 03:02:22.0', '2016-03-07', 'binary', 'new') PREHOOK: type: QUERY PREHOOK: Input: default@values__tmp__table__33 PREHOOK: Output: default@part_change_various_various_char_trunc@part=1 POSTHOOK: query: insert into table part_change_various_various_char_trunc partition(part=1) - values (6,-'false', '-67', '833', '63993', ' 1255178165.77663', '905070.974', '-4314.7918', -'1240033819', 'trial', 'trial', '2016-03-07 03:02:22.0', '2016-03-07', 'binary', 'new') + values (7,-'false', '-67', '833', '63993', ' 1255178165.77663', '905070.974', '-4314.7918', -'1240033819', 'trial', 'trial', '2016-03-07 03:02:22.0', '2016-03-07', 'binary', 'new') POSTHOOK: type: QUERY POSTHOOK: Input: default@values__tmp__table__33 POSTHOOK: Output: default@part_change_various_various_char_trunc@part=1 @@ -2060,24 +2107,24 @@ STAGE PLANS: Map Operator Tree: TableScan alias: part_change_various_various_char_trunc - Statistics: Num rows: 6 Data size: 860 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 904 Basic stats: COMPLETE Column stats: NONE Select Operator expressions: insert_num (type: int), part (type: int), c1 (type: char(8)), c2 (type: char(8)), c3 (type: char(8)), c4 (type: char(8)), c5 (type: char(8)), c6 (type: char(8)), c7 (type: char(8)), c8 (type: char(8)), c9 (type: char(8)), c10 (type: char(8)), c11 (type: char(8)), c12 (type: char(8)), c13 (type: char(8)), b (type: string) outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6, _col7, _col8, _col9, _col10, _col11, _col12, _col13, _col14, _col15 - Statistics: Num rows: 6 Data size: 860 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 904 Basic stats: COMPLETE Column stats: NONE Reduce Output Operator key expressions: _col0 (type: int) sort order: + - Statistics: Num rows: 6 Data size: 860 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 904 Basic stats: COMPLETE Column stats: NONE value expressions: _col1 (type: int), _col2 (type: char(8)), _col3 (type: char(8)), _col4 (type: char(8)), _col5 (type: char(8)), _col6 (type: char(8)), _col7 (type: char(8)), _col8 (type: char(8)), _col9 (type: char(8)), _col10 (type: char(8)), _col11 (type: char(8)), _col12 (type: char(8)), _col13 (type: char(8)), _col14 (type: char(8)), _col15 (type: string) Reduce Operator Tree: Select Operator expressions: KEY.reducesinkkey0 (type: int), VALUE._col0 (type: int), VALUE._col1 (type: char(8)), VALUE._col2 (type: char(8)), VALUE._col3 (type: char(8)), VALUE._col4 (type: char(8)), VALUE._col5 (type: char(8)), VALUE._col6 (type: char(8)), VALUE._col7 (type: char(8)), VALUE._col8 (type: char(8)), VALUE._col9 (type: char(8)), VALUE._col10 (type: char(8)), VALUE._col11 (type: char(8)), VALUE._col12 (type: char(8)), VALUE._col13 (type: char(8)), VALUE._col14 (type: string) outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6, _col7, _col8, _col9, _col10, _col11, _col12, _col13, _col14, _col15 - Statistics: Num rows: 6 Data size: 860 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 904 Basic stats: COMPLETE Column stats: NONE File Output Operator compressed: false - Statistics: Num rows: 6 Data size: 860 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 904 Basic stats: COMPLETE Column stats: NONE table: input format: org.apache.hadoop.mapred.SequenceFileInputFormat output format: org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat @@ -2103,11 +2150,12 @@ POSTHOOK: Input: default@part_change_various_various_char_trunc@part=2 #### A masked pattern was here #### insert_num part c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 c12 c13 b 1 1 TRUE NULL NULL 3244222 -9999999 -29.0764 4.706141 47061413 dynamic dynamic 0004-09- 2007-02- binary original -2 1 TRUE 100 NULL 14 -2386673 -3651.67 46114.28 46114.28 baffli baffli 2007-02- 0004-09- binary original -3 1 FALSE 72 NULL -93222 30 -66475.5 -66475.5 0.561431 1 1 6229-06- 5966-07- binary original -4 1 TRUE -90 NULL 3289094 46114 9250341. 9250340. 9250340. junkyard junkyard 2002-05- 1815-05- binary original -5 2 true 400 44388 -100 95396704 62.07915 718.78 1 verdict verdict timestam date binary new -6 1 NULL NULL NULL NULL NULL 905070.9 -4314.79 -1240033 trial trial NULL NULL n)گ new +2 1 TRUE 100 32767 NULL -3651 -9.22337 9.223372 NULL 2007-02- NULL NULL NULL +3 1 TRUE 100 -32768 NULL -3651 -9.22337 9.223372 NULL 2007-02- NULL NULL NULL +4 1 FALSE 72 NULL -93222 30 -66475.5 -66475.5 0.561431 1 1 6229-06- 5966-07- binary original +5 1 TRUE -90 NULL 3289094 46114 9250341. 9250340. 9250340. junkyard junkyard 2002-05- 1815-05- binary original +6 2 true 400 44388 -100 95396704 62.07915 718.78 1 verdict verdict timestam date binary new +7 1 NULL NULL NULL NULL NULL 905070.9 -4314.79 -1240033 trial trial NULL NULL n)گ new PREHOOK: query: drop table part_change_various_various_char_trunc PREHOOK: type: DROPTABLE PREHOOK: Input: default@part_change_various_various_char_trunc @@ -2132,17 +2180,19 @@ POSTHOOK: Output: database:default POSTHOOK: Output: default@part_change_various_various_varchar PREHOOK: query: insert into table part_change_various_various_varchar partition(part=1) values(1, true, 200, 72909, 3244222, -99999999999, -29.0764, 470614135, 470614135, 'dynamic reptile ', 'dynamic reptile ', '0004-09-22 18:26:29.519542222', '2007-02-09', 'binary', 'original'), - (2, 0, 100, 483777, 14, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, ' baffling ', ' baffling ', '2007-02-09 05:17:29.368756876', '0004-09-22', 'binary', 'original'), - (3, false, 72, 3244222, -93222, 30.774, - 66475.561431, -66475.561431, 0.561431, '1', '1', '6229-06-28 02:54:28.970117179', '5966-07-09', 'binary', 'original'), - (4, 1, -90, 754072151, 3289094, 46114.284799488, 9250340.75, 9250340.75, 9250340.75, 'junkyard', 'junkyard', '2002-05-10 05:29:48.990818073', '1815-05-06', 'binary', 'original') + (2, 0, 100, 32767, -23372036854775, -9223372036854775808.0, -9223372036854775808.0, 9223372036854775807.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, 100, -32768, 23372036854775, -9223372036854775809.0, -9223372036854775809.0, 9223372036854775808.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, 72, 3244222, -93222, 30.774, - 66475.561431, -66475.561431, 0.561431, '1', '1', '6229-06-28 02:54:28.970117179', '5966-07-09', 'binary', 'original'), + (5, 1, -90, 754072151, 3289094, 46114.284799488, 9250340.75, 9250340.75, 9250340.75, 'junkyard', 'junkyard', '2002-05-10 05:29:48.990818073', '1815-05-06', 'binary', 'original') PREHOOK: type: QUERY PREHOOK: Input: default@values__tmp__table__34 PREHOOK: Output: default@part_change_various_various_varchar@part=1 POSTHOOK: query: insert into table part_change_various_various_varchar partition(part=1) values(1, true, 200, 72909, 3244222, -99999999999, -29.0764, 470614135, 470614135, 'dynamic reptile ', 'dynamic reptile ', '0004-09-22 18:26:29.519542222', '2007-02-09', 'binary', 'original'), - (2, 0, 100, 483777, 14, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, ' baffling ', ' baffling ', '2007-02-09 05:17:29.368756876', '0004-09-22', 'binary', 'original'), - (3, false, 72, 3244222, -93222, 30.774, - 66475.561431, -66475.561431, 0.561431, '1', '1', '6229-06-28 02:54:28.970117179', '5966-07-09', 'binary', 'original'), - (4, 1, -90, 754072151, 3289094, 46114.284799488, 9250340.75, 9250340.75, 9250340.75, 'junkyard', 'junkyard', '2002-05-10 05:29:48.990818073', '1815-05-06', 'binary', 'original') + (2, 0, 100, 32767, -23372036854775, -9223372036854775808.0, -9223372036854775808.0, 9223372036854775807.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, 100, -32768, 23372036854775, -9223372036854775809.0, -9223372036854775809.0, 9223372036854775808.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, 72, 3244222, -93222, 30.774, - 66475.561431, -66475.561431, 0.561431, '1', '1', '6229-06-28 02:54:28.970117179', '5966-07-09', 'binary', 'original'), + (5, 1, -90, 754072151, 3289094, 46114.284799488, 9250340.75, 9250340.75, 9250340.75, 'junkyard', 'junkyard', '2002-05-10 05:29:48.990818073', '1815-05-06', 'binary', 'original') POSTHOOK: type: QUERY POSTHOOK: Input: default@values__tmp__table__34 POSTHOOK: Output: default@part_change_various_various_varchar@part=1 @@ -2174,9 +2224,10 @@ POSTHOOK: Input: default@part_change_various_various_varchar@part=1 #### A masked pattern was here #### insert_num part c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 c12 c13 b 1 1 true NULL NULL 3244222 -99999999999 -29.0764 4.70614135E8 470614135.000000000000000000 dynamic reptile dynamic reptile 0004-09-22 18:26:29.519542222 2007-02-09 binary original -2 1 true 100 NULL 14 -23866739993 -3651.672 46114.284799488 46114.284799488000000000 baffling baffling 2007-02-09 05:17:29.368756876 0004-09-22 binary original -3 1 false 72 NULL -93222 30 -66475.56 -66475.561431 0.561431000000000000 1 1 6229-06-28 02:54:28.970117179 5966-07-09 binary original -4 1 true -90 NULL 3289094 46114 9250341.0 9250340.75 9250340.750000000000000000 junkyard junkyard 2002-05-10 05:29:48.990818073 1815-05-06 binary original +2 1 true 100 32767 NULL -9223372036854775808 -9.223372E18 9.223372036854776E18 NULL 2007-02-09 05:17:29.368756876 NULL NULL NULL +3 1 true 100 -32768 NULL NULL -9.223372E18 9.223372036854776E18 NULL 2007-02-09 05:17:29.368756876 NULL NULL NULL +4 1 false 72 NULL -93222 30 -66475.56 -66475.561431 0.561431000000000000 1 1 6229-06-28 02:54:28.970117179 5966-07-09 binary original +5 1 true -90 NULL 3289094 46114 9250341.0 9250340.75 9250340.750000000000000000 junkyard junkyard 2002-05-10 05:29:48.990818073 1815-05-06 binary original PREHOOK: query: -- Table-Non-Cascade CHANGE COLUMNS ... alter table part_change_various_various_varchar replace columns (insert_num int, c1 VARCHAR(25), c2 VARCHAR(25), c3 VARCHAR(25), c4 VARCHAR(25), c5 VARCHAR(25), c6 VARCHAR(25), c7 VARCHAR(25), c8 VARCHAR(25), c9 VARCHAR(25), c10 VARCHAR(25), c11 VARCHAR(25), c12 VARCHAR(25), c13 VARCHAR(25), b STRING) PREHOOK: type: ALTERTABLE_REPLACECOLS @@ -2188,12 +2239,12 @@ POSTHOOK: type: ALTERTABLE_REPLACECOLS POSTHOOK: Input: default@part_change_various_various_varchar POSTHOOK: Output: default@part_change_various_various_varchar PREHOOK: query: insert into table part_change_various_various_varchar partition(part=2) - values (5, 'true', '400', '44388', -'100', '953967041.', '62.079153', '718.78', '1', 'verdict', 'verdict', 'timestamp', 'date', 'binary', 'new') + values (6, 'true', '400', '44388', -'100', '953967041.', '62.079153', '718.78', '1', 'verdict', 'verdict', 'timestamp', 'date', 'binary', 'new') PREHOOK: type: QUERY PREHOOK: Input: default@values__tmp__table__35 PREHOOK: Output: default@part_change_various_various_varchar@part=2 POSTHOOK: query: insert into table part_change_various_various_varchar partition(part=2) - values (5, 'true', '400', '44388', -'100', '953967041.', '62.079153', '718.78', '1', 'verdict', 'verdict', 'timestamp', 'date', 'binary', 'new') + values (6, 'true', '400', '44388', -'100', '953967041.', '62.079153', '718.78', '1', 'verdict', 'verdict', 'timestamp', 'date', 'binary', 'new') POSTHOOK: type: QUERY POSTHOOK: Input: default@values__tmp__table__35 POSTHOOK: Output: default@part_change_various_various_varchar@part=2 @@ -2214,12 +2265,12 @@ POSTHOOK: Lineage: part_change_various_various_varchar PARTITION(part=2).c9 EXPR POSTHOOK: Lineage: part_change_various_various_varchar PARTITION(part=2).insert_num EXPRESSION [(values__tmp__table__35)values__tmp__table__35.FieldSchema(name:tmp_values_col1, type:string, comment:), ] _col0 _col1 _col2 _col3 _col4 _col5 _col6 _col7 _col8 _col9 _col10 _col11 _col12 _col13 _col14 PREHOOK: query: insert into table part_change_various_various_varchar partition(part=1) - values (6,-'false', '-67', '833', '63993', ' 1255178165.77663', '905070.974', '-4314.7918', -'1240033819', 'trial', 'trial', '2016-03-07 03:02:22.0', '2016-03-07', 'binary', 'new') + values (7,-'false', '-67', '833', '63993', ' 1255178165.77663', '905070.974', '-4314.7918', -'1240033819', 'trial', 'trial', '2016-03-07 03:02:22.0', '2016-03-07', 'binary', 'new') PREHOOK: type: QUERY PREHOOK: Input: default@values__tmp__table__36 PREHOOK: Output: default@part_change_various_various_varchar@part=1 POSTHOOK: query: insert into table part_change_various_various_varchar partition(part=1) - values (6,-'false', '-67', '833', '63993', ' 1255178165.77663', '905070.974', '-4314.7918', -'1240033819', 'trial', 'trial', '2016-03-07 03:02:22.0', '2016-03-07', 'binary', 'new') + values (7,-'false', '-67', '833', '63993', ' 1255178165.77663', '905070.974', '-4314.7918', -'1240033819', 'trial', 'trial', '2016-03-07 03:02:22.0', '2016-03-07', 'binary', 'new') POSTHOOK: type: QUERY POSTHOOK: Input: default@values__tmp__table__36 POSTHOOK: Output: default@part_change_various_various_varchar@part=1 @@ -2256,24 +2307,24 @@ STAGE PLANS: Map Operator Tree: TableScan alias: part_change_various_various_varchar - Statistics: Num rows: 6 Data size: 914 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 1003 Basic stats: COMPLETE Column stats: NONE Select Operator expressions: insert_num (type: int), part (type: int), c1 (type: varchar(25)), c2 (type: varchar(25)), c3 (type: varchar(25)), c4 (type: varchar(25)), c5 (type: varchar(25)), c6 (type: varchar(25)), c7 (type: varchar(25)), c8 (type: varchar(25)), c9 (type: varchar(25)), c10 (type: varchar(25)), c11 (type: varchar(25)), c12 (type: varchar(25)), c13 (type: varchar(25)), b (type: string) outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6, _col7, _col8, _col9, _col10, _col11, _col12, _col13, _col14, _col15 - Statistics: Num rows: 6 Data size: 914 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 1003 Basic stats: COMPLETE Column stats: NONE Reduce Output Operator key expressions: _col0 (type: int) sort order: + - Statistics: Num rows: 6 Data size: 914 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 1003 Basic stats: COMPLETE Column stats: NONE value expressions: _col1 (type: int), _col2 (type: varchar(25)), _col3 (type: varchar(25)), _col4 (type: varchar(25)), _col5 (type: varchar(25)), _col6 (type: varchar(25)), _col7 (type: varchar(25)), _col8 (type: varchar(25)), _col9 (type: varchar(25)), _col10 (type: varchar(25)), _col11 (type: varchar(25)), _col12 (type: varchar(25)), _col13 (type: varchar(25)), _col14 (type: varchar(25)), _col15 (type: string) Reduce Operator Tree: Select Operator expressions: KEY.reducesinkkey0 (type: int), VALUE._col0 (type: int), VALUE._col1 (type: varchar(25)), VALUE._col2 (type: varchar(25)), VALUE._col3 (type: varchar(25)), VALUE._col4 (type: varchar(25)), VALUE._col5 (type: varchar(25)), VALUE._col6 (type: varchar(25)), VALUE._col7 (type: varchar(25)), VALUE._col8 (type: varchar(25)), VALUE._col9 (type: varchar(25)), VALUE._col10 (type: varchar(25)), VALUE._col11 (type: varchar(25)), VALUE._col12 (type: varchar(25)), VALUE._col13 (type: varchar(25)), VALUE._col14 (type: string) outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6, _col7, _col8, _col9, _col10, _col11, _col12, _col13, _col14, _col15 - Statistics: Num rows: 6 Data size: 914 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 1003 Basic stats: COMPLETE Column stats: NONE File Output Operator compressed: false - Statistics: Num rows: 6 Data size: 914 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 1003 Basic stats: COMPLETE Column stats: NONE table: input format: org.apache.hadoop.mapred.SequenceFileInputFormat output format: org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat @@ -2299,11 +2350,12 @@ POSTHOOK: Input: default@part_change_various_various_varchar@part=2 #### A masked pattern was here #### insert_num part c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 c12 c13 b 1 1 TRUE NULL NULL 3244222 -99999999999 -29.0764 4.70614135E8 470614135 dynamic reptile dynamic reptile 0004-09-22 18:26:29.51954 2007-02-09 binary original -2 1 TRUE 100 NULL 14 -23866739993 -3651.672 46114.284799488 46114.284799488 baffling baffling 2007-02-09 05:17:29.36875 0004-09-22 binary original -3 1 FALSE 72 NULL -93222 30 -66475.56 -66475.561431 0.561431 1 1 6229-06-28 02:54:28.97011 5966-07-09 binary original -4 1 TRUE -90 NULL 3289094 46114 9250341.0 9250340.75 9250340.75 junkyard junkyard 2002-05-10 05:29:48.99081 1815-05-06 binary original -5 2 true 400 44388 -100 953967041. 62.079153 718.78 1 verdict verdict timestamp date binary new -6 1 NULL -67 833 63993 NULL 905071.0 -4314.7918 -1240033819 trial trial 2016-03-07 03:02:22 2016-03-07 n)گ new +2 1 TRUE 100 32767 NULL -9223372036854775808 -9.223372E18 9.223372036854776E18 NULL 2007-02-09 05:17:29.36875 NULL NULL NULL +3 1 TRUE 100 -32768 NULL NULL -9.223372E18 9.223372036854776E18 NULL 2007-02-09 05:17:29.36875 NULL NULL NULL +4 1 FALSE 72 NULL -93222 30 -66475.56 -66475.561431 0.561431 1 1 6229-06-28 02:54:28.97011 5966-07-09 binary original +5 1 TRUE -90 NULL 3289094 46114 9250341.0 9250340.75 9250340.75 junkyard junkyard 2002-05-10 05:29:48.99081 1815-05-06 binary original +6 2 true 400 44388 -100 953967041. 62.079153 718.78 1 verdict verdict timestamp date binary new +7 1 NULL -67 833 63993 NULL 905071.0 -4314.7918 -1240033819 trial trial 2016-03-07 03:02:22 2016-03-07 n)گ new PREHOOK: query: drop table part_change_various_various_varchar PREHOOK: type: DROPTABLE PREHOOK: Input: default@part_change_various_various_varchar @@ -2328,7 +2380,8 @@ POSTHOOK: Output: database:default POSTHOOK: Output: default@part_change_various_various_varchar_trunc PREHOOK: query: insert into table part_change_various_various_varchar_trunc partition(part=1) values(1, true, 200, 72909, 3244222, -99999999999, -29.0764, 470614135, 470614135, 'dynamic reptile ', 'dynamic reptile ', '0004-09-22 18:26:29.519542222', '2007-02-09', 'binary', 'original'), - (2, 0, 100, 483777, 14, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, ' baffling ', ' baffling ', '2007-02-09 05:17:29.368756876', '0004-09-22', 'binary', 'original'), + (2, 0, 100, 32767, -23372036854775, -9223372036854775808.0, -9223372036854775808.0, 9223372036854775807.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, 100, -32768, 23372036854775, -9223372036854775809.0, -9223372036854775809.0, 9223372036854775808.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), (3, false, 72, 3244222, -93222, 30.774, - 66475.561431, -66475.561431, 0.561431, '1', '1', '6229-06-28 02:54:28.970117179', '5966-07-09', 'binary', 'original'), (4, 1, -90, 754072151, 3289094, 46114.284799488, 9250340.75, 9250340.75, 9250340.75, 'junkyard', 'junkyard', '2002-05-10 05:29:48.990818073', '1815-05-06', 'binary', 'original') PREHOOK: type: QUERY @@ -2336,7 +2389,8 @@ PREHOOK: Input: default@values__tmp__table__37 PREHOOK: Output: default@part_change_various_various_varchar_trunc@part=1 POSTHOOK: query: insert into table part_change_various_various_varchar_trunc partition(part=1) values(1, true, 200, 72909, 3244222, -99999999999, -29.0764, 470614135, 470614135, 'dynamic reptile ', 'dynamic reptile ', '0004-09-22 18:26:29.519542222', '2007-02-09', 'binary', 'original'), - (2, 0, 100, 483777, 14, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, ' baffling ', ' baffling ', '2007-02-09 05:17:29.368756876', '0004-09-22', 'binary', 'original'), + (2, 0, 100, 32767, -23372036854775, -9223372036854775808.0, -9223372036854775808.0, 9223372036854775807.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, 100, -32768, 23372036854775, -9223372036854775809.0, -9223372036854775809.0, 9223372036854775808.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), (3, false, 72, 3244222, -93222, 30.774, - 66475.561431, -66475.561431, 0.561431, '1', '1', '6229-06-28 02:54:28.970117179', '5966-07-09', 'binary', 'original'), (4, 1, -90, 754072151, 3289094, 46114.284799488, 9250340.75, 9250340.75, 9250340.75, 'junkyard', 'junkyard', '2002-05-10 05:29:48.990818073', '1815-05-06', 'binary', 'original') POSTHOOK: type: QUERY @@ -2370,8 +2424,9 @@ POSTHOOK: Input: default@part_change_various_various_varchar_trunc@part=1 #### A masked pattern was here #### insert_num part c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 c12 c13 b 1 1 true NULL NULL 3244222 -99999999999 -29.0764 4.70614135E8 470614135.000000000000000000 dynamic reptile dynamic reptile 0004-09-22 18:26:29.519542222 2007-02-09 binary original -2 1 true 100 NULL 14 -23866739993 -3651.672 46114.284799488 46114.284799488000000000 baffling baffling 2007-02-09 05:17:29.368756876 0004-09-22 binary original +2 1 true 100 32767 NULL -9223372036854775808 -9.223372E18 9.223372036854776E18 NULL 2007-02-09 05:17:29.368756876 NULL NULL NULL 3 1 false 72 NULL -93222 30 -66475.56 -66475.561431 0.561431000000000000 1 1 6229-06-28 02:54:28.970117179 5966-07-09 binary original +3 1 true 100 -32768 NULL NULL -9.223372E18 9.223372036854776E18 NULL 2007-02-09 05:17:29.368756876 NULL NULL NULL 4 1 true -90 NULL 3289094 46114 9250341.0 9250340.75 9250340.750000000000000000 junkyard junkyard 2002-05-10 05:29:48.990818073 1815-05-06 binary original PREHOOK: query: -- Table-Non-Cascade CHANGE COLUMNS ... alter table part_change_various_various_varchar_trunc replace columns (insert_num int, c1 VARCHAR(8), c2 VARCHAR(8), c3 VARCHAR(8), c4 VARCHAR(8), c5 VARCHAR(8), c6 VARCHAR(8), c7 VARCHAR(8), c8 VARCHAR(8), c9 VARCHAR(8), c10 VARCHAR(8), c11 VARCHAR(8), c12 VARCHAR(8), c13 VARCHAR(8), b STRING) @@ -2452,24 +2507,24 @@ STAGE PLANS: Map Operator Tree: TableScan alias: part_change_various_various_varchar_trunc - Statistics: Num rows: 6 Data size: 879 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 968 Basic stats: COMPLETE Column stats: NONE Select Operator expressions: insert_num (type: int), part (type: int), c1 (type: varchar(8)), c2 (type: varchar(8)), c3 (type: varchar(8)), c4 (type: varchar(8)), c5 (type: varchar(8)), c6 (type: varchar(8)), c7 (type: varchar(8)), c8 (type: varchar(8)), c9 (type: varchar(8)), c10 (type: varchar(8)), c11 (type: varchar(8)), c12 (type: varchar(8)), c13 (type: varchar(8)), b (type: string) outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6, _col7, _col8, _col9, _col10, _col11, _col12, _col13, _col14, _col15 - Statistics: Num rows: 6 Data size: 879 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 968 Basic stats: COMPLETE Column stats: NONE Reduce Output Operator key expressions: _col0 (type: int) sort order: + - Statistics: Num rows: 6 Data size: 879 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 968 Basic stats: COMPLETE Column stats: NONE value expressions: _col1 (type: int), _col2 (type: varchar(8)), _col3 (type: varchar(8)), _col4 (type: varchar(8)), _col5 (type: varchar(8)), _col6 (type: varchar(8)), _col7 (type: varchar(8)), _col8 (type: varchar(8)), _col9 (type: varchar(8)), _col10 (type: varchar(8)), _col11 (type: varchar(8)), _col12 (type: varchar(8)), _col13 (type: varchar(8)), _col14 (type: varchar(8)), _col15 (type: string) Reduce Operator Tree: Select Operator expressions: KEY.reducesinkkey0 (type: int), VALUE._col0 (type: int), VALUE._col1 (type: varchar(8)), VALUE._col2 (type: varchar(8)), VALUE._col3 (type: varchar(8)), VALUE._col4 (type: varchar(8)), VALUE._col5 (type: varchar(8)), VALUE._col6 (type: varchar(8)), VALUE._col7 (type: varchar(8)), VALUE._col8 (type: varchar(8)), VALUE._col9 (type: varchar(8)), VALUE._col10 (type: varchar(8)), VALUE._col11 (type: varchar(8)), VALUE._col12 (type: varchar(8)), VALUE._col13 (type: varchar(8)), VALUE._col14 (type: string) outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6, _col7, _col8, _col9, _col10, _col11, _col12, _col13, _col14, _col15 - Statistics: Num rows: 6 Data size: 879 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 968 Basic stats: COMPLETE Column stats: NONE File Output Operator compressed: false - Statistics: Num rows: 6 Data size: 879 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 968 Basic stats: COMPLETE Column stats: NONE table: input format: org.apache.hadoop.mapred.SequenceFileInputFormat output format: org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat @@ -2495,8 +2550,9 @@ POSTHOOK: Input: default@part_change_various_various_varchar_trunc@part=2 #### A masked pattern was here #### insert_num part c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 c12 c13 b 1 1 TRUE NULL NULL 3244222 -9999999 -29.0764 4.706141 47061413 dynamic dynamic 0004-09- 2007-02- binary original -2 1 TRUE 100 NULL 14 -2386673 -3651.67 46114.28 46114.28 baffli baffli 2007-02- 0004-09- binary original +2 1 TRUE 100 32767 NULL -9223372 -9.22337 9.223372 NULL 2007-02- NULL NULL NULL 3 1 FALSE 72 NULL -93222 30 -66475.5 -66475.5 0.561431 1 1 6229-06- 5966-07- binary original +3 1 TRUE 100 -32768 NULL NULL -9.22337 9.223372 NULL 2007-02- NULL NULL NULL 4 1 TRUE -90 NULL 3289094 46114 9250341. 9250340. 9250340. junkyard junkyard 2002-05- 1815-05- binary original 5 2 true 400 44388 -100 95396704 62.07915 718.78 1 verdict verdict timestam date binary new 6 1 NULL -67 833 63993 NULL 905070.9 -4314.79 -1240033 trial trial NULL NULL n)گ new @@ -2524,17 +2580,19 @@ POSTHOOK: Output: database:default POSTHOOK: Output: default@part_change_various_various_timestamp PREHOOK: query: insert into table part_change_various_various_timestamp partition(part=1) values(1, true, 200, 72909, 3244222, -99999999999, -29.0764, 470614135, 470614135, '0004-09-22 18:26:29.519542222', '0004-09-22 18:26:29.519542222', '0004-09-22 18:26:29.519542222', '2007-02-09', 'original'), - (2, 0, 100, 483777, 14, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, '2007-02-09 05:17:29.368756876', '2007-02-09 05:17:29.368756876', '2007-02-09 05:17:29.368756876', '0004-09-22', 'original'), - (3, false, 72, 3244222, -93222, 30.774, - 66475.561431, -66475.561431, 0.561431, '6229-06-28 02:54:28.970117179', '6229-06-28 02:54:28.970117179', '6229-06-28 02:54:28.970117179', '5966-07-09', 'original'), - (4, 1, -90, 754072151, 3289094, 46114.284799488, 9250340.75, 9250340.75, 9250340.75, '2002-05-10 05:29:48.990818073', '2002-05-10 05:29:48.990818073', '2002-05-10 05:29:48.990818073', '1815-05-06', 'original') + (2, 0, 100, 32767, -23372036854775, -9223372036854775808.0, -9223372036854775808.0, 9223372036854775807.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, 100, -32768, 23372036854775, -9223372036854775809.0, -9223372036854775809.0, 9223372036854775808.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, 72, 3244222, -93222, 30.774, - 66475.561431, -66475.561431, 0.561431, '6229-06-28 02:54:28.970117179', '6229-06-28 02:54:28.970117179', '6229-06-28 02:54:28.970117179', '5966-07-09', 'original'), + (5, 1, -90, 754072151, 3289094, 46114.284799488, 9250340.75, 9250340.75, 9250340.75, '2002-05-10 05:29:48.990818073', '2002-05-10 05:29:48.990818073', '2002-05-10 05:29:48.990818073', '1815-05-06', 'original') PREHOOK: type: QUERY PREHOOK: Input: default@values__tmp__table__40 PREHOOK: Output: default@part_change_various_various_timestamp@part=1 POSTHOOK: query: insert into table part_change_various_various_timestamp partition(part=1) values(1, true, 200, 72909, 3244222, -99999999999, -29.0764, 470614135, 470614135, '0004-09-22 18:26:29.519542222', '0004-09-22 18:26:29.519542222', '0004-09-22 18:26:29.519542222', '2007-02-09', 'original'), - (2, 0, 100, 483777, 14, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, '2007-02-09 05:17:29.368756876', '2007-02-09 05:17:29.368756876', '2007-02-09 05:17:29.368756876', '0004-09-22', 'original'), - (3, false, 72, 3244222, -93222, 30.774, - 66475.561431, -66475.561431, 0.561431, '6229-06-28 02:54:28.970117179', '6229-06-28 02:54:28.970117179', '6229-06-28 02:54:28.970117179', '5966-07-09', 'original'), - (4, 1, -90, 754072151, 3289094, 46114.284799488, 9250340.75, 9250340.75, 9250340.75, '2002-05-10 05:29:48.990818073', '2002-05-10 05:29:48.990818073', '2002-05-10 05:29:48.990818073', '1815-05-06', 'original') + (2, 0, 100, 32767, -23372036854775, -9223372036854775808.0, -9223372036854775808.0, 9223372036854775807.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, 100, -32768, 23372036854775, -9223372036854775809.0, -9223372036854775809.0, 9223372036854775808.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, 72, 3244222, -93222, 30.774, - 66475.561431, -66475.561431, 0.561431, '6229-06-28 02:54:28.970117179', '6229-06-28 02:54:28.970117179', '6229-06-28 02:54:28.970117179', '5966-07-09', 'original'), + (5, 1, -90, 754072151, 3289094, 46114.284799488, 9250340.75, 9250340.75, 9250340.75, '2002-05-10 05:29:48.990818073', '2002-05-10 05:29:48.990818073', '2002-05-10 05:29:48.990818073', '1815-05-06', 'original') POSTHOOK: type: QUERY POSTHOOK: Input: default@values__tmp__table__40 POSTHOOK: Output: default@part_change_various_various_timestamp@part=1 @@ -2565,9 +2623,10 @@ POSTHOOK: Input: default@part_change_various_various_timestamp@part=1 #### A masked pattern was here #### insert_num part c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 c12 b 1 1 true NULL NULL 3244222 -99999999999 -29.0764 4.70614135E8 470614135.000000000000000000 0004-09-22 18:26:29.519542222 0004-09-22 18:26:29.51954 0004-09-22 18:26:29.51954 2007-02-09 original -2 1 true 100 NULL 14 -23866739993 -3651.672 46114.284799488 46114.284799488000000000 2007-02-09 05:17:29.368756876 2007-02-09 05:17:29.36875 2007-02-09 05:17:29.36875 0004-09-22 original -3 1 false 72 NULL -93222 30 -66475.56 -66475.561431 0.561431000000000000 6229-06-28 02:54:28.970117179 6229-06-28 02:54:28.97011 6229-06-28 02:54:28.97011 5966-07-09 original -4 1 true -90 NULL 3289094 46114 9250341.0 9250340.75 9250340.750000000000000000 2002-05-10 05:29:48.990818073 2002-05-10 05:29:48.99081 2002-05-10 05:29:48.99081 1815-05-06 original +2 1 true 100 32767 NULL -9223372036854775808 -9.223372E18 9.223372036854776E18 NULL 2007-02-09 05:17:29.36875 NULL NULL +3 1 true 100 -32768 NULL NULL -9.223372E18 9.223372036854776E18 NULL 2007-02-09 05:17:29.36875 NULL NULL +4 1 false 72 NULL -93222 30 -66475.56 -66475.561431 0.561431000000000000 6229-06-28 02:54:28.970117179 6229-06-28 02:54:28.97011 6229-06-28 02:54:28.97011 5966-07-09 original +5 1 true -90 NULL 3289094 46114 9250341.0 9250340.75 9250340.750000000000000000 2002-05-10 05:29:48.990818073 2002-05-10 05:29:48.99081 2002-05-10 05:29:48.99081 1815-05-06 original PREHOOK: query: -- Table-Non-Cascade CHANGE COLUMNS ... alter table part_change_various_various_timestamp replace columns (insert_num int, c1 TIMESTAMP, c2 TIMESTAMP, c3 TIMESTAMP, c4 TIMESTAMP, c5 TIMESTAMP, c6 TIMESTAMP, c7 TIMESTAMP, c8 TIMESTAMP, c9 TIMESTAMP, c10 TIMESTAMP, c11 TIMESTAMP, c12 TIMESTAMP, b STRING) PREHOOK: type: ALTERTABLE_REPLACECOLS @@ -2579,12 +2638,12 @@ POSTHOOK: type: ALTERTABLE_REPLACECOLS POSTHOOK: Input: default@part_change_various_various_timestamp POSTHOOK: Output: default@part_change_various_various_timestamp PREHOOK: query: insert into table part_change_various_various_timestamp partition(part=2) - values (5, 'true', '400', '44388', -'100', '953967041.', '62.079153', '718.78', '1', 'timestamp', 'timestamp', 'timestamp', 'date', 'new') + values (6, 'true', '400', '44388', -'100', '953967041.', '62.079153', '718.78', '1', 'timestamp', 'timestamp', 'timestamp', 'date', 'new') PREHOOK: type: QUERY PREHOOK: Input: default@values__tmp__table__41 PREHOOK: Output: default@part_change_various_various_timestamp@part=2 POSTHOOK: query: insert into table part_change_various_various_timestamp partition(part=2) - values (5, 'true', '400', '44388', -'100', '953967041.', '62.079153', '718.78', '1', 'timestamp', 'timestamp', 'timestamp', 'date', 'new') + values (6, 'true', '400', '44388', -'100', '953967041.', '62.079153', '718.78', '1', 'timestamp', 'timestamp', 'timestamp', 'date', 'new') POSTHOOK: type: QUERY POSTHOOK: Input: default@values__tmp__table__41 POSTHOOK: Output: default@part_change_various_various_timestamp@part=2 @@ -2604,12 +2663,12 @@ POSTHOOK: Lineage: part_change_various_various_timestamp PARTITION(part=2).c9 EX POSTHOOK: Lineage: part_change_various_various_timestamp PARTITION(part=2).insert_num EXPRESSION [(values__tmp__table__41)values__tmp__table__41.FieldSchema(name:tmp_values_col1, type:string, comment:), ] _col0 _col1 _col2 _col3 _col4 _col5 _col6 _col7 _col8 _col9 _col10 _col11 _col12 _col13 PREHOOK: query: insert into table part_change_various_various_timestamp partition(part=1) - values (6,-'false', '-67', '833', '63993', ' 1255178165.77663', '905070.974', '-4314.7918', -'1240033819', '2016-03-07 03:02:22.0', '2016-03-07 03:02:22.0', '2016-03-07 03:02:22.0', '2016-03-07', 'new') + values (7,-'false', '-67', '833', '63993', ' 1255178165.77663', '905070.974', '-4314.7918', -'1240033819', '2016-03-07 03:02:22.0', '2016-03-07 03:02:22.0', '2016-03-07 03:02:22.0', '2016-03-07', 'new') PREHOOK: type: QUERY PREHOOK: Input: default@values__tmp__table__42 PREHOOK: Output: default@part_change_various_various_timestamp@part=1 POSTHOOK: query: insert into table part_change_various_various_timestamp partition(part=1) - values (6,-'false', '-67', '833', '63993', ' 1255178165.77663', '905070.974', '-4314.7918', -'1240033819', '2016-03-07 03:02:22.0', '2016-03-07 03:02:22.0', '2016-03-07 03:02:22.0', '2016-03-07', 'new') + values (7,-'false', '-67', '833', '63993', ' 1255178165.77663', '905070.974', '-4314.7918', -'1240033819', '2016-03-07 03:02:22.0', '2016-03-07 03:02:22.0', '2016-03-07 03:02:22.0', '2016-03-07', 'new') POSTHOOK: type: QUERY POSTHOOK: Input: default@values__tmp__table__42 POSTHOOK: Output: default@part_change_various_various_timestamp@part=1 @@ -2645,24 +2704,24 @@ STAGE PLANS: Map Operator Tree: TableScan alias: part_change_various_various_timestamp - Statistics: Num rows: 6 Data size: 848 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 921 Basic stats: COMPLETE Column stats: NONE Select Operator expressions: insert_num (type: int), part (type: int), c1 (type: timestamp), c2 (type: timestamp), c3 (type: timestamp), c4 (type: timestamp), c5 (type: timestamp), c6 (type: timestamp), c7 (type: timestamp), c8 (type: timestamp), c9 (type: timestamp), c10 (type: timestamp), c11 (type: timestamp), c12 (type: timestamp), b (type: string) outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6, _col7, _col8, _col9, _col10, _col11, _col12, _col13, _col14 - Statistics: Num rows: 6 Data size: 848 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 921 Basic stats: COMPLETE Column stats: NONE Reduce Output Operator key expressions: _col0 (type: int) sort order: + - Statistics: Num rows: 6 Data size: 848 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 921 Basic stats: COMPLETE Column stats: NONE value expressions: _col1 (type: int), _col2 (type: timestamp), _col3 (type: timestamp), _col4 (type: timestamp), _col5 (type: timestamp), _col6 (type: timestamp), _col7 (type: timestamp), _col8 (type: timestamp), _col9 (type: timestamp), _col10 (type: timestamp), _col11 (type: timestamp), _col12 (type: timestamp), _col13 (type: timestamp), _col14 (type: string) Reduce Operator Tree: Select Operator expressions: KEY.reducesinkkey0 (type: int), VALUE._col0 (type: int), VALUE._col1 (type: timestamp), VALUE._col2 (type: timestamp), VALUE._col3 (type: timestamp), VALUE._col4 (type: timestamp), VALUE._col5 (type: timestamp), VALUE._col6 (type: timestamp), VALUE._col7 (type: timestamp), VALUE._col8 (type: timestamp), VALUE._col9 (type: timestamp), VALUE._col10 (type: timestamp), VALUE._col11 (type: timestamp), VALUE._col12 (type: timestamp), VALUE._col13 (type: string) outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6, _col7, _col8, _col9, _col10, _col11, _col12, _col13, _col14 - Statistics: Num rows: 6 Data size: 848 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 921 Basic stats: COMPLETE Column stats: NONE File Output Operator compressed: false - Statistics: Num rows: 6 Data size: 848 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 921 Basic stats: COMPLETE Column stats: NONE table: input format: org.apache.hadoop.mapred.SequenceFileInputFormat output format: org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat @@ -2688,11 +2747,12 @@ POSTHOOK: Input: default@part_change_various_various_timestamp@part=2 #### A masked pattern was here #### insert_num part c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 c12 b 1 1 1969-12-31 16:00:00.001 NULL NULL 1969-12-31 16:54:04.222 1966-10-31 06:13:20.001 1969-12-31 15:59:30.923599244 1984-11-29 14:08:55 1984-11-29 14:08:55 0004-09-22 18:26:29.519542222 0004-09-22 18:26:29.51954 0004-09-22 18:26:29.51954 2007-02-09 00:00:00 original -2 1 1969-12-31 16:00:00.001 1969-12-31 16:00:00.1 NULL 1969-12-31 16:00:00.014 1969-03-30 10:21:00.007 1969-12-31 14:59:08.32788086 1970-01-01 04:48:34.284799488 1970-01-01 04:48:34.284799488 2007-02-09 05:17:29.368756876 2007-02-09 05:17:29.36875 2007-02-09 05:17:29.36875 0004-09-22 00:00:00 original -3 1 1969-12-31 16:00:00 1969-12-31 16:00:00.072 NULL 1969-12-31 15:58:26.778 1969-12-31 16:00:00.03 1969-12-30 21:32:04.4375 1969-12-30 21:32:04.438569 1969-12-31 16:00:00.561431 6229-06-28 02:54:28.970117179 6229-06-28 02:54:28.97011 6229-06-28 02:54:28.97011 5966-07-09 00:00:00 original -4 1 1969-12-31 16:00:00.001 1969-12-31 15:59:59.91 NULL 1969-12-31 16:54:49.094 1969-12-31 16:00:46.114 1970-04-17 17:32:21 1970-04-17 17:32:20.75 1970-04-17 17:32:20.75 2002-05-10 05:29:48.990818073 2002-05-10 05:29:48.99081 2002-05-10 05:29:48.99081 1815-05-06 00:00:00 original -5 2 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL new -6 1 NULL NULL NULL NULL NULL NULL NULL NULL 2016-03-07 03:02:22 2016-03-07 03:02:22 2016-03-07 03:02:22 NULL new +2 1 1969-12-31 16:00:00.001 1969-12-31 16:00:00.1 1969-12-31 16:00:32.767 NULL NULL NULL 1969-12-31 15:59:58.72647168 NULL NULL NULL 2007-02-09 05:17:29.36875 NULL NULL +3 1 1969-12-31 16:00:00.001 1969-12-31 16:00:00.1 1969-12-31 15:59:27.232 NULL NULL NULL 1969-12-31 15:59:58.72647168 NULL NULL NULL 2007-02-09 05:17:29.36875 NULL NULL +4 1 1969-12-31 16:00:00 1969-12-31 16:00:00.072 NULL 1969-12-31 15:58:26.778 1969-12-31 16:00:00.03 1969-12-30 21:32:04.4375 1969-12-30 21:32:04.438569 1969-12-31 16:00:00.561431 6229-06-28 02:54:28.970117179 6229-06-28 02:54:28.97011 6229-06-28 02:54:28.97011 5966-07-09 00:00:00 original +5 1 1969-12-31 16:00:00.001 1969-12-31 15:59:59.91 NULL 1969-12-31 16:54:49.094 1969-12-31 16:00:46.114 1970-04-17 17:32:21 1970-04-17 17:32:20.75 1970-04-17 17:32:20.75 2002-05-10 05:29:48.990818073 2002-05-10 05:29:48.99081 2002-05-10 05:29:48.99081 1815-05-06 00:00:00 original +6 2 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL new +7 1 NULL NULL NULL NULL NULL NULL NULL NULL 2016-03-07 03:02:22 2016-03-07 03:02:22 2016-03-07 03:02:22 NULL new PREHOOK: query: drop table part_change_various_various_timestamp PREHOOK: type: DROPTABLE PREHOOK: Input: default@part_change_various_various_timestamp @@ -2870,169 +2930,3 @@ POSTHOOK: query: drop table part_change_various_various_date POSTHOOK: type: DROPTABLE POSTHOOK: Input: default@part_change_various_various_date POSTHOOK: Output: default@part_change_various_various_date -PREHOOK: query: -- --- SUBSECTION: ALTER TABLE CHANGE COLUMNS for Various --> Various: (STRING, CHAR, VARCHAR) --> BINARY --- -CREATE TABLE part_change_various_various_binary(insert_num int, c1 STRING, c2 CHAR(25), c3 VARCHAR(25), b STRING) PARTITIONED BY(part INT) -PREHOOK: type: CREATETABLE -PREHOOK: Output: database:default -PREHOOK: Output: default@part_change_various_various_binary -POSTHOOK: query: -- --- SUBSECTION: ALTER TABLE CHANGE COLUMNS for Various --> Various: (STRING, CHAR, VARCHAR) --> BINARY --- -CREATE TABLE part_change_various_various_binary(insert_num int, c1 STRING, c2 CHAR(25), c3 VARCHAR(25), b STRING) PARTITIONED BY(part INT) -POSTHOOK: type: CREATETABLE -POSTHOOK: Output: database:default -POSTHOOK: Output: default@part_change_various_various_binary -PREHOOK: query: insert into table part_change_various_various_binary partition(part=1) - values(1, 'binary', 'binary', 'binary', 'original'), - (2, 'binary', 'binary', 'binary', 'original'), - (3, 'binary', 'binary', 'binary', 'original'), - (4, 'binary', 'binary', 'binary', 'original') -PREHOOK: type: QUERY -PREHOOK: Input: default@values__tmp__table__46 -PREHOOK: Output: default@part_change_various_various_binary@part=1 -POSTHOOK: query: insert into table part_change_various_various_binary partition(part=1) - values(1, 'binary', 'binary', 'binary', 'original'), - (2, 'binary', 'binary', 'binary', 'original'), - (3, 'binary', 'binary', 'binary', 'original'), - (4, 'binary', 'binary', 'binary', 'original') -POSTHOOK: type: QUERY -POSTHOOK: Input: default@values__tmp__table__46 -POSTHOOK: Output: default@part_change_various_various_binary@part=1 -POSTHOOK: Lineage: part_change_various_various_binary PARTITION(part=1).b SIMPLE [(values__tmp__table__46)values__tmp__table__46.FieldSchema(name:tmp_values_col5, type:string, comment:), ] -POSTHOOK: Lineage: part_change_various_various_binary PARTITION(part=1).c1 SIMPLE [(values__tmp__table__46)values__tmp__table__46.FieldSchema(name:tmp_values_col2, type:string, comment:), ] -POSTHOOK: Lineage: part_change_various_various_binary PARTITION(part=1).c2 EXPRESSION [(values__tmp__table__46)values__tmp__table__46.FieldSchema(name:tmp_values_col3, type:string, comment:), ] -POSTHOOK: Lineage: part_change_various_various_binary PARTITION(part=1).c3 EXPRESSION [(values__tmp__table__46)values__tmp__table__46.FieldSchema(name:tmp_values_col4, type:string, comment:), ] -POSTHOOK: Lineage: part_change_various_various_binary PARTITION(part=1).insert_num EXPRESSION [(values__tmp__table__46)values__tmp__table__46.FieldSchema(name:tmp_values_col1, type:string, comment:), ] -_col0 _col1 _col2 _col3 _col4 -PREHOOK: query: select insert_num,part,c1,c2,c3,b from part_change_various_various_binary order by insert_num -PREHOOK: type: QUERY -PREHOOK: Input: default@part_change_various_various_binary -PREHOOK: Input: default@part_change_various_various_binary@part=1 -#### A masked pattern was here #### -POSTHOOK: query: select insert_num,part,c1,c2,c3,b from part_change_various_various_binary order by insert_num -POSTHOOK: type: QUERY -POSTHOOK: Input: default@part_change_various_various_binary -POSTHOOK: Input: default@part_change_various_various_binary@part=1 -#### A masked pattern was here #### -insert_num part c1 c2 c3 b -1 1 binary binary binary original -2 1 binary binary binary original -3 1 binary binary binary original -4 1 binary binary binary original -PREHOOK: query: -- Table-Non-Cascade CHANGE COLUMNS ... -alter table part_change_various_various_binary replace columns (insert_num int, c1 BINARY, c2 BINARY, c3 BINARY, b STRING) -PREHOOK: type: ALTERTABLE_REPLACECOLS -PREHOOK: Input: default@part_change_various_various_binary -PREHOOK: Output: default@part_change_various_various_binary -POSTHOOK: query: -- Table-Non-Cascade CHANGE COLUMNS ... -alter table part_change_various_various_binary replace columns (insert_num int, c1 BINARY, c2 BINARY, c3 BINARY, b STRING) -POSTHOOK: type: ALTERTABLE_REPLACECOLS -POSTHOOK: Input: default@part_change_various_various_binary -POSTHOOK: Output: default@part_change_various_various_binary -PREHOOK: query: insert into table part_change_various_various_binary partition(part=2) - values (5, 'binary', 'binary', 'binary', 'new') -PREHOOK: type: QUERY -PREHOOK: Input: default@values__tmp__table__47 -PREHOOK: Output: default@part_change_various_various_binary@part=2 -POSTHOOK: query: insert into table part_change_various_various_binary partition(part=2) - values (5, 'binary', 'binary', 'binary', 'new') -POSTHOOK: type: QUERY -POSTHOOK: Input: default@values__tmp__table__47 -POSTHOOK: Output: default@part_change_various_various_binary@part=2 -POSTHOOK: Lineage: part_change_various_various_binary PARTITION(part=2).b SIMPLE [(values__tmp__table__47)values__tmp__table__47.FieldSchema(name:tmp_values_col5, type:string, comment:), ] -POSTHOOK: Lineage: part_change_various_various_binary PARTITION(part=2).c1 EXPRESSION [(values__tmp__table__47)values__tmp__table__47.FieldSchema(name:tmp_values_col2, type:string, comment:), ] -POSTHOOK: Lineage: part_change_various_various_binary PARTITION(part=2).c2 EXPRESSION [(values__tmp__table__47)values__tmp__table__47.FieldSchema(name:tmp_values_col3, type:string, comment:), ] -POSTHOOK: Lineage: part_change_various_various_binary PARTITION(part=2).c3 EXPRESSION [(values__tmp__table__47)values__tmp__table__47.FieldSchema(name:tmp_values_col4, type:string, comment:), ] -POSTHOOK: Lineage: part_change_various_various_binary PARTITION(part=2).insert_num EXPRESSION [(values__tmp__table__47)values__tmp__table__47.FieldSchema(name:tmp_values_col1, type:string, comment:), ] -_col0 _col1 _col2 _col3 _col4 -PREHOOK: query: insert into table part_change_various_various_binary partition(part=1) - values (6,-'binary', 'binary', 'binary', 'new') -PREHOOK: type: QUERY -PREHOOK: Input: default@values__tmp__table__48 -PREHOOK: Output: default@part_change_various_various_binary@part=1 -POSTHOOK: query: insert into table part_change_various_various_binary partition(part=1) - values (6,-'binary', 'binary', 'binary', 'new') -POSTHOOK: type: QUERY -POSTHOOK: Input: default@values__tmp__table__48 -POSTHOOK: Output: default@part_change_various_various_binary@part=1 -POSTHOOK: Lineage: part_change_various_various_binary PARTITION(part=1).b SIMPLE [(values__tmp__table__48)values__tmp__table__48.FieldSchema(name:tmp_values_col5, type:string, comment:), ] -POSTHOOK: Lineage: part_change_various_various_binary PARTITION(part=1).c1 EXPRESSION [(values__tmp__table__48)values__tmp__table__48.FieldSchema(name:tmp_values_col2, type:string, comment:), ] -POSTHOOK: Lineage: part_change_various_various_binary PARTITION(part=1).c2 EXPRESSION [(values__tmp__table__48)values__tmp__table__48.FieldSchema(name:tmp_values_col3, type:string, comment:), ] -POSTHOOK: Lineage: part_change_various_various_binary PARTITION(part=1).c3 EXPRESSION [(values__tmp__table__48)values__tmp__table__48.FieldSchema(name:tmp_values_col4, type:string, comment:), ] -POSTHOOK: Lineage: part_change_various_various_binary PARTITION(part=1).insert_num EXPRESSION [(values__tmp__table__48)values__tmp__table__48.FieldSchema(name:tmp_values_col1, type:string, comment:), ] -_col0 _col1 _col2 _col3 _col4 -PREHOOK: query: explain -select insert_num,part,c1,c2,c3,b from part_change_various_various_binary order by insert_num -PREHOOK: type: QUERY -POSTHOOK: query: explain -select insert_num,part,c1,c2,c3,b from part_change_various_various_binary order by insert_num -POSTHOOK: type: QUERY -Explain -STAGE DEPENDENCIES: - Stage-1 is a root stage - Stage-0 depends on stages: Stage-1 - -STAGE PLANS: - Stage: Stage-1 - Map Reduce - Map Operator Tree: - TableScan - alias: part_change_various_various_binary - Statistics: Num rows: 6 Data size: 268 Basic stats: COMPLETE Column stats: NONE - Select Operator - expressions: insert_num (type: int), part (type: int), c1 (type: binary), c2 (type: binary), c3 (type: binary), b (type: string) - outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5 - Statistics: Num rows: 6 Data size: 268 Basic stats: COMPLETE Column stats: NONE - Reduce Output Operator - key expressions: _col0 (type: int) - sort order: + - Statistics: Num rows: 6 Data size: 268 Basic stats: COMPLETE Column stats: NONE - value expressions: _col1 (type: int), _col2 (type: binary), _col3 (type: binary), _col4 (type: binary), _col5 (type: string) - Reduce Operator Tree: - Select Operator - expressions: KEY.reducesinkkey0 (type: int), VALUE._col0 (type: int), VALUE._col1 (type: binary), VALUE._col2 (type: binary), VALUE._col3 (type: binary), VALUE._col4 (type: string) - outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5 - Statistics: Num rows: 6 Data size: 268 Basic stats: COMPLETE Column stats: NONE - File Output Operator - compressed: false - Statistics: Num rows: 6 Data size: 268 Basic stats: COMPLETE Column stats: NONE - table: - input format: org.apache.hadoop.mapred.SequenceFileInputFormat - output format: org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat - serde: org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe - - Stage: Stage-0 - Fetch Operator - limit: -1 - Processor Tree: - ListSink - -PREHOOK: query: select insert_num,part,c1,c2,c3,b from part_change_various_various_binary order by insert_num -PREHOOK: type: QUERY -PREHOOK: Input: default@part_change_various_various_binary -PREHOOK: Input: default@part_change_various_various_binary@part=1 -PREHOOK: Input: default@part_change_various_various_binary@part=2 -#### A masked pattern was here #### -POSTHOOK: query: select insert_num,part,c1,c2,c3,b from part_change_various_various_binary order by insert_num -POSTHOOK: type: QUERY -POSTHOOK: Input: default@part_change_various_various_binary -POSTHOOK: Input: default@part_change_various_various_binary@part=1 -POSTHOOK: Input: default@part_change_various_various_binary@part=2 -#### A masked pattern was here #### -insert_num part c1 c2 c3 b -1 1 binary binary binary original -2 1 binary binary binary original -3 1 binary binary binary original -4 1 binary binary binary original -5 2 binary binary binary new -6 1 LWJpbmFyeQ== YmluYXJ5 YmluYXJ5 new -PREHOOK: query: drop table part_change_various_various_binary -PREHOOK: type: DROPTABLE -PREHOOK: Input: default@part_change_various_various_binary -PREHOOK: Output: default@part_change_various_various_binary -POSTHOOK: query: drop table part_change_various_various_binary -POSTHOOK: type: DROPTABLE -POSTHOOK: Input: default@part_change_various_various_binary -POSTHOOK: Output: default@part_change_various_various_binary diff --git ql/src/test/results/clientpositive/schema_evol_text_vec_mapwork_part_all_primitive.q.out ql/src/test/results/clientpositive/schema_evol_text_vec_mapwork_part_all_primitive.q.out index 7f125fa..7a423dd 100644 --- ql/src/test/results/clientpositive/schema_evol_text_vec_mapwork_part_all_primitive.q.out +++ ql/src/test/results/clientpositive/schema_evol_text_vec_mapwork_part_all_primitive.q.out @@ -205,6 +205,7 @@ POSTHOOK: Input: default@part_change_various_various_boolean POSTHOOK: Output: default@part_change_various_various_boolean PREHOOK: query: -- -- SUBSECTION: ALTER TABLE CHANGE COLUMNS for Various --> Various: (BOOLEAN, SHORT, INT, LONG, FLOAT, DOUBLE, DECIMAL, STRING, CHAR, VARCHAR, TIMESTAMP) --> BYTE +-- -128 and a maximum value of 127 -- CREATE TABLE part_change_various_various_tinyint(insert_num int, c1 BOOLEAN, c2 SMALLINT, c3 INT, c4 BIGINT, c5 FLOAT, c6 DOUBLE, c7 DECIMAL(38,18), c8 STRING, c9 CHAR(25), c10 VARCHAR(25), c11 TIMESTAMP, b STRING) PARTITIONED BY(part INT) PREHOOK: type: CREATETABLE @@ -212,24 +213,27 @@ PREHOOK: Output: database:default PREHOOK: Output: default@part_change_various_various_tinyint POSTHOOK: query: -- -- SUBSECTION: ALTER TABLE CHANGE COLUMNS for Various --> Various: (BOOLEAN, SHORT, INT, LONG, FLOAT, DOUBLE, DECIMAL, STRING, CHAR, VARCHAR, TIMESTAMP) --> BYTE +-- -128 and a maximum value of 127 -- CREATE TABLE part_change_various_various_tinyint(insert_num int, c1 BOOLEAN, c2 SMALLINT, c3 INT, c4 BIGINT, c5 FLOAT, c6 DOUBLE, c7 DECIMAL(38,18), c8 STRING, c9 CHAR(25), c10 VARCHAR(25), c11 TIMESTAMP, b STRING) PARTITIONED BY(part INT) POSTHOOK: type: CREATETABLE POSTHOOK: Output: database:default POSTHOOK: Output: default@part_change_various_various_tinyint PREHOOK: query: insert into table part_change_various_various_tinyint partition(part=1) - values(1, true, 2000, 72909, 3244222, -29.0764, 470614135, 470614135, '-2999', '-2999', '-2999', '0004-09-22 18:26:29.519542222', 'original'), - (2, 0, 1000, 483777, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), - (3, false, 72909, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '1', '1', '1', '6229-06-28 02:54:28.970117179', 'original'), - (4, 1, 90000, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '5299', '5299', '5299', '2002-05-10 05:29:48.990818073', 'original') + values(1, true, 2000, 72909, 3244222, -29.0764, 470614135, 470614135, '129', '-128', '-2999', '0004-09-22 18:26:29.519542222', 'original'), + (2, 0, -128, -48, -20, -9223372036854775808.0, -9223372036854775808.0, 9223372036854775807.0, '128', '-99', '40', '2007-02-09 05:17:29.368756876', 'original'), + (3, -1, -129, 100, 499, -9223372036854775809.0, -9223372036854775809.0, 9223372036854775808.0, '128', '-99', '40', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, -72, -127, 127, 30.774, 127.561431, -106.561431, '90.284799488', '90.284799488', '1', '6229-06-28 02:54:28.970117179', 'original'), + (5, 1, -90, 75, -38, 109.284799488 ,-128.75, 98.75, '120.4', '33.333', '0.45', '2002-05-10 05:29:48.990818073', 'original') PREHOOK: type: QUERY PREHOOK: Input: default@values__tmp__table__4 PREHOOK: Output: default@part_change_various_various_tinyint@part=1 POSTHOOK: query: insert into table part_change_various_various_tinyint partition(part=1) - values(1, true, 2000, 72909, 3244222, -29.0764, 470614135, 470614135, '-2999', '-2999', '-2999', '0004-09-22 18:26:29.519542222', 'original'), - (2, 0, 1000, 483777, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), - (3, false, 72909, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '1', '1', '1', '6229-06-28 02:54:28.970117179', 'original'), - (4, 1, 90000, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '5299', '5299', '5299', '2002-05-10 05:29:48.990818073', 'original') + values(1, true, 2000, 72909, 3244222, -29.0764, 470614135, 470614135, '129', '-128', '-2999', '0004-09-22 18:26:29.519542222', 'original'), + (2, 0, -128, -48, -20, -9223372036854775808.0, -9223372036854775808.0, 9223372036854775807.0, '128', '-99', '40', '2007-02-09 05:17:29.368756876', 'original'), + (3, -1, -129, 100, 499, -9223372036854775809.0, -9223372036854775809.0, 9223372036854775808.0, '128', '-99', '40', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, -72, -127, 127, 30.774, 127.561431, -106.561431, '90.284799488', '90.284799488', '1', '6229-06-28 02:54:28.970117179', 'original'), + (5, 1, -90, 75, -38, 109.284799488 ,-128.75, 98.75, '120.4', '33.333', '0.45', '2002-05-10 05:29:48.990818073', 'original') POSTHOOK: type: QUERY POSTHOOK: Input: default@values__tmp__table__4 POSTHOOK: Output: default@part_change_various_various_tinyint@part=1 @@ -258,10 +262,11 @@ POSTHOOK: Input: default@part_change_various_various_tinyint POSTHOOK: Input: default@part_change_various_various_tinyint@part=1 #### A masked pattern was here #### insert_num part c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 b -1 1 NULL 2000 72909 3244222 -29.0764 4.70614135E8 470614135.000000000000000000 -2999 -2999 -2999 0004-09-22 18:26:29.519542222 original -2 1 NULL 1000 483777 -23866739993 -3651.672 46114.284799488 46114.284799488000000000 2007-02-09 05:17:29.368756876 original -3 1 false NULL 3244222 -93222 30.774 -66475.561431 -66475.561431000000000000 1 1 1 6229-06-28 02:54:28.970117179 original -4 1 NULL NULL 754072151 3289094 46114.285 9250340.75 9250340.750000000000000000 5299 5299 5299 2002-05-10 05:29:48.990818073 original +1 1 NULL 2000 72909 3244222 -29.0764 4.70614135E8 470614135.000000000000000000 129 -128 -2999 0004-09-22 18:26:29.519542222 original +2 1 NULL -128 -48 -20 -9.223372E18 -9.223372036854776E18 9223372036854775807.000000000000000000 128 -99 40 2007-02-09 05:17:29.368756876 original +3 1 NULL -129 100 499 -9.223372E18 -9.223372036854776E18 9223372036854775808.000000000000000000 128 -99 40 2007-02-09 05:17:29.368756876 original +4 1 false -72 -127 127 30.774 127.561431 -106.561431000000000000 90.284799488 90.284799488 1 6229-06-28 02:54:28.970117179 original +5 1 NULL -90 75 -38 109.2848 -128.75 98.750000000000000000 120.4 33.333 0.45 2002-05-10 05:29:48.990818073 original PREHOOK: query: -- Table-Non-Cascade CHANGE COLUMNS ... alter table part_change_various_various_tinyint replace columns (insert_num int, c1 TINYINT, c2 TINYINT, c3 TINYINT, c4 TINYINT, c5 TINYINT, c6 TINYINT, c7 TINYINT, c8 TINYINT, c9 TINYINT, c10 TINYINT, c11 TINYINT, b STRING) PREHOOK: type: ALTERTABLE_REPLACECOLS @@ -273,12 +278,12 @@ POSTHOOK: type: ALTERTABLE_REPLACECOLS POSTHOOK: Input: default@part_change_various_various_tinyint POSTHOOK: Output: default@part_change_various_various_tinyint PREHOOK: query: insert into table part_change_various_various_tinyint partition(part=2) - values (5, 23, 71, 127, 1, 131, -60, 68, -230, -182, 40, 93, 'new') + values (6, 23, 71, 127, 1, 131, -60, 68, -230, -182, 40, 93, 'new') PREHOOK: type: QUERY PREHOOK: Input: default@values__tmp__table__5 PREHOOK: Output: default@part_change_various_various_tinyint@part=2 POSTHOOK: query: insert into table part_change_various_various_tinyint partition(part=2) - values (5, 23, 71, 127, 1, 131, -60, 68, -230, -182, 40, 93, 'new') + values (6, 23, 71, 127, 1, 131, -60, 68, -230, -182, 40, 93, 'new') POSTHOOK: type: QUERY POSTHOOK: Input: default@values__tmp__table__5 POSTHOOK: Output: default@part_change_various_various_tinyint@part=2 @@ -297,12 +302,12 @@ POSTHOOK: Lineage: part_change_various_various_tinyint PARTITION(part=2).c9 EXPR POSTHOOK: Lineage: part_change_various_various_tinyint PARTITION(part=2).insert_num EXPRESSION [(values__tmp__table__5)values__tmp__table__5.FieldSchema(name:tmp_values_col1, type:string, comment:), ] _col0 _col1 _col2 _col3 _col4 _col5 _col6 _col7 _col8 _col9 _col10 _col11 _col12 PREHOOK: query: insert into table part_change_various_various_tinyint partition(part=1) - values (6, -248, 85, -126, -167, 91, 113, -28, -63, 0, 8, 237, 'new') + values (7, -120, 85, -126, -167, 91, 113, -28, -63, 0, 8, 237, 'new') PREHOOK: type: QUERY PREHOOK: Input: default@values__tmp__table__6 PREHOOK: Output: default@part_change_various_various_tinyint@part=1 POSTHOOK: query: insert into table part_change_various_various_tinyint partition(part=1) - values (6, -248, 85, -126, -167, 91, 113, -28, -63, 0, 8, 237, 'new') + values (7, -120, 85, -126, -167, 91, 113, -28, -63, 0, 8, 237, 'new') POSTHOOK: type: QUERY POSTHOOK: Input: default@values__tmp__table__6 POSTHOOK: Output: default@part_change_various_various_tinyint@part=1 @@ -337,25 +342,25 @@ STAGE PLANS: Map Operator Tree: TableScan alias: part_change_various_various_tinyint - Statistics: Num rows: 6 Data size: 583 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 740 Basic stats: COMPLETE Column stats: NONE Select Operator expressions: insert_num (type: int), part (type: int), c1 (type: tinyint), c2 (type: tinyint), c3 (type: tinyint), c4 (type: tinyint), c5 (type: tinyint), c6 (type: tinyint), c7 (type: tinyint), c8 (type: tinyint), c9 (type: tinyint), c10 (type: tinyint), c11 (type: tinyint), b (type: string) outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6, _col7, _col8, _col9, _col10, _col11, _col12, _col13 - Statistics: Num rows: 6 Data size: 583 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 740 Basic stats: COMPLETE Column stats: NONE Reduce Output Operator key expressions: _col0 (type: int) sort order: + - Statistics: Num rows: 6 Data size: 583 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 740 Basic stats: COMPLETE Column stats: NONE value expressions: _col1 (type: int), _col2 (type: tinyint), _col3 (type: tinyint), _col4 (type: tinyint), _col5 (type: tinyint), _col6 (type: tinyint), _col7 (type: tinyint), _col8 (type: tinyint), _col9 (type: tinyint), _col10 (type: tinyint), _col11 (type: tinyint), _col12 (type: tinyint), _col13 (type: string) Execution mode: vectorized Reduce Operator Tree: Select Operator expressions: KEY.reducesinkkey0 (type: int), VALUE._col0 (type: int), VALUE._col1 (type: tinyint), VALUE._col2 (type: tinyint), VALUE._col3 (type: tinyint), VALUE._col4 (type: tinyint), VALUE._col5 (type: tinyint), VALUE._col6 (type: tinyint), VALUE._col7 (type: tinyint), VALUE._col8 (type: tinyint), VALUE._col9 (type: tinyint), VALUE._col10 (type: tinyint), VALUE._col11 (type: tinyint), VALUE._col12 (type: string) outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6, _col7, _col8, _col9, _col10, _col11, _col12, _col13 - Statistics: Num rows: 6 Data size: 583 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 740 Basic stats: COMPLETE Column stats: NONE File Output Operator compressed: false - Statistics: Num rows: 6 Data size: 583 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 740 Basic stats: COMPLETE Column stats: NONE table: input format: org.apache.hadoop.mapred.SequenceFileInputFormat output format: org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat @@ -380,12 +385,13 @@ POSTHOOK: Input: default@part_change_various_various_tinyint@part=1 POSTHOOK: Input: default@part_change_various_various_tinyint@part=2 #### A masked pattern was here #### insert_num part c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 b -1 1 NULL -48 -51 -66 -29 119 119 73 73 73 -43 original -2 1 NULL -24 -63 -25 -67 34 34 NULL NULL NULL 105 original -3 1 0 NULL -66 -38 30 85 85 1 1 1 84 original -4 1 NULL NULL 87 6 34 36 36 -77 -77 -77 60 original -5 2 23 71 127 1 NULL -60 68 NULL NULL 40 93 new -6 1 NULL 85 -126 NULL 91 113 -28 -63 0 8 NULL new +1 1 NULL -48 -51 -66 -29 119 119 -127 -128 73 -43 original +2 1 NULL -128 -48 -20 0 0 -1 -128 -99 40 105 original +3 1 NULL 127 100 -13 0 0 0 -128 -99 40 105 original +4 1 0 -72 -127 127 30 127 -106 90 NULL 1 84 original +5 1 NULL -90 75 -38 109 -128 98 120 NULL NULL 60 original +6 2 23 71 127 1 NULL -60 68 NULL NULL 40 93 new +7 1 NULL 85 -126 NULL 91 113 -28 -63 0 8 NULL new PREHOOK: query: drop table part_change_various_various_tinyint PREHOOK: type: DROPTABLE PREHOOK: Input: default@part_change_various_various_tinyint @@ -396,6 +402,7 @@ POSTHOOK: Input: default@part_change_various_various_tinyint POSTHOOK: Output: default@part_change_various_various_tinyint PREHOOK: query: -- -- SUBSECTION: ALTER TABLE CHANGE COLUMNS for Various --> Various: (BOOLEAN, TINYINT, INT, LONG, FLOAT, DOUBLE, DECIMAL, STRING, CHAR, VARCHAR, TIMESTAMP) --> SMALLINT +-- -32768 and a maximum value of 32767 -- CREATE TABLE part_change_various_various_smallint(insert_num int, c1 BOOLEAN, c2 TINYINT, c3 INT, c4 BIGINT, c5 FLOAT, c6 DOUBLE, c7 DECIMAL(38,18), c8 STRING, c9 CHAR(25), c10 VARCHAR(25), c11 TIMESTAMP, b STRING) PARTITIONED BY(part INT) PREHOOK: type: CREATETABLE @@ -403,6 +410,7 @@ PREHOOK: Output: database:default PREHOOK: Output: default@part_change_various_various_smallint POSTHOOK: query: -- -- SUBSECTION: ALTER TABLE CHANGE COLUMNS for Various --> Various: (BOOLEAN, TINYINT, INT, LONG, FLOAT, DOUBLE, DECIMAL, STRING, CHAR, VARCHAR, TIMESTAMP) --> SMALLINT +-- -32768 and a maximum value of 32767 -- CREATE TABLE part_change_various_various_smallint(insert_num int, c1 BOOLEAN, c2 TINYINT, c3 INT, c4 BIGINT, c5 FLOAT, c6 DOUBLE, c7 DECIMAL(38,18), c8 STRING, c9 CHAR(25), c10 VARCHAR(25), c11 TIMESTAMP, b STRING) PARTITIONED BY(part INT) POSTHOOK: type: CREATETABLE @@ -410,17 +418,19 @@ POSTHOOK: Output: database:default POSTHOOK: Output: default@part_change_various_various_smallint PREHOOK: query: insert into table part_change_various_various_smallint partition(part=1) values(1, -2999, 200, 72909, 3244222, -29.0764, 470614135, 470614135, '-2999', '-2999', '-2999', '0004-09-22 18:26:29.519542222', 'original'), - (2, 0, 100, 483777, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), - (3, false, 72, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '1', '1', '1', '6229-06-28 02:54:28.970117179', 'original'), - (4, 1, -90, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '5299', '5299', '5299', '2002-05-10 05:29:48.990818073', 'original') + (2, 0, 100, -32768 , 32767, -3651.672121, -9223372036854775808.0, 9223372036854775807.0, '9000', '32767', '-32768', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, -127, -40000 , 32768, -3651.672121, -9223372036854775809.0, 9223372036854775808.0, '9000', '32767', '-32768', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, 72, 32422, -9322, 30.774, -6675.561431, -6675.561431, '1', '1', '1', '6229-06-28 02:54:28.970117179', 'original'), + (5, 1, -90, 7151, 3094, 30000.284799488 ,-9000.75, 0.75, '5299', '5299', '5299', '2002-05-10 05:29:48.990818073', 'original') PREHOOK: type: QUERY PREHOOK: Input: default@values__tmp__table__7 PREHOOK: Output: default@part_change_various_various_smallint@part=1 POSTHOOK: query: insert into table part_change_various_various_smallint partition(part=1) values(1, -2999, 200, 72909, 3244222, -29.0764, 470614135, 470614135, '-2999', '-2999', '-2999', '0004-09-22 18:26:29.519542222', 'original'), - (2, 0, 100, 483777, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), - (3, false, 72, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '1', '1', '1', '6229-06-28 02:54:28.970117179', 'original'), - (4, 1, -90, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '5299', '5299', '5299', '2002-05-10 05:29:48.990818073', 'original') + (2, 0, 100, -32768 , 32767, -3651.672121, -9223372036854775808.0, 9223372036854775807.0, '9000', '32767', '-32768', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, -127, -40000 , 32768, -3651.672121, -9223372036854775809.0, 9223372036854775808.0, '9000', '32767', '-32768', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, 72, 32422, -9322, 30.774, -6675.561431, -6675.561431, '1', '1', '1', '6229-06-28 02:54:28.970117179', 'original'), + (5, 1, -90, 7151, 3094, 30000.284799488 ,-9000.75, 0.75, '5299', '5299', '5299', '2002-05-10 05:29:48.990818073', 'original') POSTHOOK: type: QUERY POSTHOOK: Input: default@values__tmp__table__7 POSTHOOK: Output: default@part_change_various_various_smallint@part=1 @@ -450,9 +460,10 @@ POSTHOOK: Input: default@part_change_various_various_smallint@part=1 #### A masked pattern was here #### insert_num part c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 b 1 1 NULL NULL 72909 3244222 -29.0764 4.70614135E8 470614135.000000000000000000 -2999 -2999 -2999 0004-09-22 18:26:29.519542222 original -2 1 NULL 100 483777 -23866739993 -3651.672 46114.284799488 46114.284799488000000000 2007-02-09 05:17:29.368756876 original -3 1 false 72 3244222 -93222 30.774 -66475.561431 -66475.561431000000000000 1 1 1 6229-06-28 02:54:28.970117179 original -4 1 NULL -90 754072151 3289094 46114.285 9250340.75 9250340.750000000000000000 5299 5299 5299 2002-05-10 05:29:48.990818073 original +2 1 NULL 100 -32768 32767 -3651.672 -9.223372036854776E18 9223372036854775807.000000000000000000 9000 32767 -32768 2007-02-09 05:17:29.368756876 original +3 1 NULL -127 -40000 32768 -3651.672 -9.223372036854776E18 9223372036854775808.000000000000000000 9000 32767 -32768 2007-02-09 05:17:29.368756876 original +4 1 false 72 32422 -9322 30.774 -6675.561431 -6675.561431000000000000 1 1 1 6229-06-28 02:54:28.970117179 original +5 1 NULL -90 7151 3094 30000.285 -9000.75 0.750000000000000000 5299 5299 5299 2002-05-10 05:29:48.990818073 original PREHOOK: query: -- Table-Non-Cascade CHANGE COLUMNS ... alter table part_change_various_various_smallint replace columns (insert_num int, c1 SMALLINT, c2 SMALLINT, c3 SMALLINT, c4 SMALLINT, c5 SMALLINT, c6 SMALLINT, c7 SMALLINT, c8 SMALLINT, c9 SMALLINT, c10 SMALLINT, c11 SMALLINT, b STRING) PREHOOK: type: ALTERTABLE_REPLACECOLS @@ -464,12 +475,12 @@ POSTHOOK: type: ALTERTABLE_REPLACECOLS POSTHOOK: Input: default@part_change_various_various_smallint POSTHOOK: Output: default@part_change_various_various_smallint PREHOOK: query: insert into table part_change_various_various_smallint partition(part=2) - values (5, -30486, 15230, 3117, 1, -117, -7131, 20227, -24858, -28771, 46114, 72909, 'new') + values (6, -30486, 15230, 3117, 1, -117, -7131, 20227, -24858, -28771, 46114, 72909, 'new') PREHOOK: type: QUERY PREHOOK: Input: default@values__tmp__table__8 PREHOOK: Output: default@part_change_various_various_smallint@part=2 POSTHOOK: query: insert into table part_change_various_various_smallint partition(part=2) - values (5, -30486, 15230, 3117, 1, -117, -7131, 20227, -24858, -28771, 46114, 72909, 'new') + values (6, -30486, 15230, 3117, 1, -117, -7131, 20227, -24858, -28771, 46114, 72909, 'new') POSTHOOK: type: QUERY POSTHOOK: Input: default@values__tmp__table__8 POSTHOOK: Output: default@part_change_various_various_smallint@part=2 @@ -488,12 +499,12 @@ POSTHOOK: Lineage: part_change_various_various_smallint PARTITION(part=2).c9 EXP POSTHOOK: Lineage: part_change_various_various_smallint PARTITION(part=2).insert_num EXPRESSION [(values__tmp__table__8)values__tmp__table__8.FieldSchema(name:tmp_values_col1, type:string, comment:), ] _col0 _col1 _col2 _col3 _col4 _col5 _col6 _col7 _col8 _col9 _col10 _col11 _col12 PREHOOK: query: insert into table part_change_various_various_smallint partition(part=1) - values (6, -10542, -1805, -4844, 15507, 91, 22385, -28, -12268, 0, 66475, 774, 'new') + values (7, -10542, -1805, -4844, 15507, 91, 22385, -28, -12268, 0, 66475, 774, 'new') PREHOOK: type: QUERY PREHOOK: Input: default@values__tmp__table__9 PREHOOK: Output: default@part_change_various_various_smallint@part=1 POSTHOOK: query: insert into table part_change_various_various_smallint partition(part=1) - values (6, -10542, -1805, -4844, 15507, 91, 22385, -28, -12268, 0, 66475, 774, 'new') + values (7, -10542, -1805, -4844, 15507, 91, 22385, -28, -12268, 0, 66475, 774, 'new') POSTHOOK: type: QUERY POSTHOOK: Input: default@values__tmp__table__9 POSTHOOK: Output: default@part_change_various_various_smallint@part=1 @@ -528,25 +539,25 @@ STAGE PLANS: Map Operator Tree: TableScan alias: part_change_various_various_smallint - Statistics: Num rows: 6 Data size: 622 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 781 Basic stats: COMPLETE Column stats: NONE Select Operator expressions: insert_num (type: int), part (type: int), c1 (type: smallint), c2 (type: smallint), c3 (type: smallint), c4 (type: smallint), c5 (type: smallint), c6 (type: smallint), c7 (type: smallint), c8 (type: smallint), c9 (type: smallint), c10 (type: smallint), c11 (type: smallint), b (type: string) outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6, _col7, _col8, _col9, _col10, _col11, _col12, _col13 - Statistics: Num rows: 6 Data size: 622 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 781 Basic stats: COMPLETE Column stats: NONE Reduce Output Operator key expressions: _col0 (type: int) sort order: + - Statistics: Num rows: 6 Data size: 622 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 781 Basic stats: COMPLETE Column stats: NONE value expressions: _col1 (type: int), _col2 (type: smallint), _col3 (type: smallint), _col4 (type: smallint), _col5 (type: smallint), _col6 (type: smallint), _col7 (type: smallint), _col8 (type: smallint), _col9 (type: smallint), _col10 (type: smallint), _col11 (type: smallint), _col12 (type: smallint), _col13 (type: string) Execution mode: vectorized Reduce Operator Tree: Select Operator expressions: KEY.reducesinkkey0 (type: int), VALUE._col0 (type: int), VALUE._col1 (type: smallint), VALUE._col2 (type: smallint), VALUE._col3 (type: smallint), VALUE._col4 (type: smallint), VALUE._col5 (type: smallint), VALUE._col6 (type: smallint), VALUE._col7 (type: smallint), VALUE._col8 (type: smallint), VALUE._col9 (type: smallint), VALUE._col10 (type: smallint), VALUE._col11 (type: smallint), VALUE._col12 (type: string) outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6, _col7, _col8, _col9, _col10, _col11, _col12, _col13 - Statistics: Num rows: 6 Data size: 622 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 781 Basic stats: COMPLETE Column stats: NONE File Output Operator compressed: false - Statistics: Num rows: 6 Data size: 622 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 781 Basic stats: COMPLETE Column stats: NONE table: input format: org.apache.hadoop.mapred.SequenceFileInputFormat output format: org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat @@ -572,11 +583,12 @@ POSTHOOK: Input: default@part_change_various_various_smallint@part=2 #### A masked pattern was here #### insert_num part c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 b 1 1 NULL NULL 7373 -32578 -29 119 119 -2999 -2999 -2999 -11819 original -2 1 NULL 100 25025 29415 -3651 -19422 -19422 NULL NULL NULL 29801 original -3 1 0 72 -32578 -27686 30 -939 -939 1 1 1 -8620 original -4 1 NULL -90 14935 12294 -19422 9764 9764 5299 5299 5299 -17092 original -5 2 -30486 15230 3117 1 -117 -7131 20227 -24858 -28771 NULL NULL new -6 1 NULL NULL -4844 15507 91 22385 -28 -12268 0 NULL NULL new +2 1 NULL 100 -32768 32767 -3651 0 -1 9000 32767 -32768 29801 original +3 1 NULL -127 25536 -32768 -3651 0 0 9000 32767 -32768 29801 original +4 1 0 72 32422 -9322 30 -6675 -6675 1 1 1 -8620 original +5 1 NULL -90 7151 3094 30000 -9000 0 5299 5299 5299 -17092 original +6 2 -30486 15230 3117 1 -117 -7131 20227 -24858 -28771 NULL NULL new +7 1 NULL NULL -4844 15507 91 22385 -28 -12268 0 NULL NULL new PREHOOK: query: drop table part_change_various_various_smallint PREHOOK: type: DROPTABLE PREHOOK: Input: default@part_change_various_various_smallint @@ -587,6 +599,7 @@ POSTHOOK: Input: default@part_change_various_various_smallint POSTHOOK: Output: default@part_change_various_various_smallint PREHOOK: query: -- -- SUBSECTION: ALTER TABLE CHANGE COLUMNS for Various --> Various: (BOOLEAN, TINYINT, SMALLINT, LONG, FLOAT, DOUBLE, DECIMAL, STRING, CHAR, VARCHAR, TIMESTAMP) --> INT +-- –2147483648 to 2147483647 -- CREATE TABLE part_change_various_various_int(insert_num int, c1 BOOLEAN, c2 TINYINT, c3 SMALLINT, c4 BIGINT, c5 FLOAT, c6 DOUBLE, c7 DECIMAL(38,18), c8 STRING, c9 CHAR(25), c10 VARCHAR(25), c11 TIMESTAMP, b STRING) PARTITIONED BY(part INT) PREHOOK: type: CREATETABLE @@ -594,6 +607,7 @@ PREHOOK: Output: database:default PREHOOK: Output: default@part_change_various_various_int POSTHOOK: query: -- -- SUBSECTION: ALTER TABLE CHANGE COLUMNS for Various --> Various: (BOOLEAN, TINYINT, SMALLINT, LONG, FLOAT, DOUBLE, DECIMAL, STRING, CHAR, VARCHAR, TIMESTAMP) --> INT +-- –2147483648 to 2147483647 -- CREATE TABLE part_change_various_various_int(insert_num int, c1 BOOLEAN, c2 TINYINT, c3 SMALLINT, c4 BIGINT, c5 FLOAT, c6 DOUBLE, c7 DECIMAL(38,18), c8 STRING, c9 CHAR(25), c10 VARCHAR(25), c11 TIMESTAMP, b STRING) PARTITIONED BY(part INT) POSTHOOK: type: CREATETABLE @@ -601,17 +615,19 @@ POSTHOOK: Output: database:default POSTHOOK: Output: default@part_change_various_various_int PREHOOK: query: insert into table part_change_various_various_int partition(part=1) values(1, -2999, 200, 72909, 3244222, -29.0764, 470614135, 470614135, '-2999', '-2999', '-2999', '0004-09-22 18:26:29.519542222', 'original'), - (2, 0, 100, 483777, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), - (3, false, 72, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '1', '1', '1', '6229-06-28 02:54:28.970117179', 'original'), - (4, 1, -90, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '5299', '5299', '5299', '2002-05-10 05:29:48.990818073', 'original') + (2, 0, 100, 2147483647, -23866739993, -3651.672121, -9223372036854775808.0, 9223372036854775807.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, 100, 2147483648, -23866739993, -3651.672121, -9223372036854775809.0, 9223372036854775808.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, 72, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '1', '1', '1', '6229-06-28 02:54:28.970117179', 'original'), + (5, 1, -90, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '5299', '5299', '5299', '2002-05-10 05:29:48.990818073', 'original') PREHOOK: type: QUERY PREHOOK: Input: default@values__tmp__table__10 PREHOOK: Output: default@part_change_various_various_int@part=1 POSTHOOK: query: insert into table part_change_various_various_int partition(part=1) values(1, -2999, 200, 72909, 3244222, -29.0764, 470614135, 470614135, '-2999', '-2999', '-2999', '0004-09-22 18:26:29.519542222', 'original'), - (2, 0, 100, 483777, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), - (3, false, 72, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '1', '1', '1', '6229-06-28 02:54:28.970117179', 'original'), - (4, 1, -90, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '5299', '5299', '5299', '2002-05-10 05:29:48.990818073', 'original') + (2, 0, 100, 2147483647, -23866739993, -3651.672121, -9223372036854775808.0, 9223372036854775807.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, 100, 2147483648, -23866739993, -3651.672121, -9223372036854775809.0, 9223372036854775808.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, 72, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '1', '1', '1', '6229-06-28 02:54:28.970117179', 'original'), + (5, 1, -90, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '5299', '5299', '5299', '2002-05-10 05:29:48.990818073', 'original') POSTHOOK: type: QUERY POSTHOOK: Input: default@values__tmp__table__10 POSTHOOK: Output: default@part_change_various_various_int@part=1 @@ -641,9 +657,10 @@ POSTHOOK: Input: default@part_change_various_various_int@part=1 #### A masked pattern was here #### insert_num part c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 b 1 1 NULL NULL NULL 3244222 -29.0764 4.70614135E8 470614135.000000000000000000 -2999 -2999 -2999 0004-09-22 18:26:29.519542222 original -2 1 NULL 100 NULL -23866739993 -3651.672 46114.284799488 46114.284799488000000000 2007-02-09 05:17:29.368756876 original -3 1 false 72 NULL -93222 30.774 -66475.561431 -66475.561431000000000000 1 1 1 6229-06-28 02:54:28.970117179 original -4 1 NULL -90 NULL 3289094 46114.285 9250340.75 9250340.750000000000000000 5299 5299 5299 2002-05-10 05:29:48.990818073 original +2 1 NULL 100 NULL -23866739993 -3651.672 -9.223372036854776E18 9223372036854775807.000000000000000000 2007-02-09 05:17:29.368756876 original +3 1 NULL 100 NULL -23866739993 -3651.672 -9.223372036854776E18 9223372036854775808.000000000000000000 2007-02-09 05:17:29.368756876 original +4 1 false 72 NULL -93222 30.774 -66475.561431 -66475.561431000000000000 1 1 1 6229-06-28 02:54:28.970117179 original +5 1 NULL -90 NULL 3289094 46114.285 9250340.75 9250340.750000000000000000 5299 5299 5299 2002-05-10 05:29:48.990818073 original PREHOOK: query: -- Table-Non-Cascade CHANGE COLUMNS ... alter table part_change_various_various_int replace columns (insert_num int, c1 INT, c2 INT, c3 INT, c4 INT, c5 INT, c6 INT, c7 INT, c8 INT, c9 INT, c10 INT, c11 INT, b STRING) PREHOOK: type: ALTERTABLE_REPLACECOLS @@ -719,25 +736,25 @@ STAGE PLANS: Map Operator Tree: TableScan alias: part_change_various_various_int - Statistics: Num rows: 6 Data size: 639 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 798 Basic stats: COMPLETE Column stats: NONE Select Operator expressions: insert_num (type: int), part (type: int), c1 (type: int), c2 (type: int), c3 (type: int), c4 (type: int), c5 (type: int), c6 (type: int), c7 (type: int), c8 (type: int), c9 (type: int), c10 (type: int), c11 (type: int), b (type: string) outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6, _col7, _col8, _col9, _col10, _col11, _col12, _col13 - Statistics: Num rows: 6 Data size: 639 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 798 Basic stats: COMPLETE Column stats: NONE Reduce Output Operator key expressions: _col0 (type: int) sort order: + - Statistics: Num rows: 6 Data size: 639 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 798 Basic stats: COMPLETE Column stats: NONE value expressions: _col1 (type: int), _col2 (type: int), _col3 (type: int), _col4 (type: int), _col5 (type: int), _col6 (type: int), _col7 (type: int), _col8 (type: int), _col9 (type: int), _col10 (type: int), _col11 (type: int), _col12 (type: int), _col13 (type: string) Execution mode: vectorized Reduce Operator Tree: Select Operator expressions: KEY.reducesinkkey0 (type: int), VALUE._col0 (type: int), VALUE._col1 (type: int), VALUE._col2 (type: int), VALUE._col3 (type: int), VALUE._col4 (type: int), VALUE._col5 (type: int), VALUE._col6 (type: int), VALUE._col7 (type: int), VALUE._col8 (type: int), VALUE._col9 (type: int), VALUE._col10 (type: int), VALUE._col11 (type: int), VALUE._col12 (type: string) outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6, _col7, _col8, _col9, _col10, _col11, _col12, _col13 - Statistics: Num rows: 6 Data size: 639 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 798 Basic stats: COMPLETE Column stats: NONE File Output Operator compressed: false - Statistics: Num rows: 6 Data size: 639 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 798 Basic stats: COMPLETE Column stats: NONE table: input format: org.apache.hadoop.mapred.SequenceFileInputFormat output format: org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat @@ -763,9 +780,10 @@ POSTHOOK: Input: default@part_change_various_various_int@part=2 #### A masked pattern was here #### insert_num part c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 b 1 1 NULL NULL NULL 3244222 -29 470614135 470614135 -2999 -2999 -2999 -1888628267 original -2 1 NULL 100 NULL 1903063783 -3651 46114 46114 NULL NULL NULL 1171027049 original -3 1 0 72 NULL -93222 30 -66475 -66475 1 1 1 1272503892 original -4 1 NULL -90 NULL 3289094 46114 9250340 9250340 5299 5299 5299 1021033788 original +2 1 NULL 100 NULL 1903063783 -3651 -2147483648 -1 NULL NULL NULL 1171027049 original +3 1 NULL 100 NULL 1903063783 -3651 -2147483648 0 NULL NULL NULL 1171027049 original +4 1 0 72 NULL -93222 30 -66475 -66475 1 1 1 1272503892 original +5 1 NULL -90 NULL 3289094 46114 9250340 9250340 5299 5299 5299 1021033788 original 5 2 560930 -1281818 127 1 84269672 -60 27094665 -36016110 -182 3244222 561431 new 6 1 NULL NULL NULL -167 91 113 -164341325 -134237413 0 6229 NULL new PREHOOK: query: drop table part_change_various_various_int @@ -778,6 +796,7 @@ POSTHOOK: Input: default@part_change_various_various_int POSTHOOK: Output: default@part_change_various_various_int PREHOOK: query: -- -- SUBSECTION: ALTER TABLE CHANGE COLUMNS for Various --> Various: (BOOLEAN, TINYINT, SMALLINT, INT, FLOAT, DOUBLE, DECIMAL, STRING, CHAR, VARCHAR, TIMESTAMP) --> BIGINT +-- -9223372036854775808 to 9223372036854775807 -- CREATE TABLE part_change_various_various_bigint(insert_num int, c1 BOOLEAN, c2 TINYINT, c3 SMALLINT, c4 INT, c5 FLOAT, c6 DOUBLE, c7 DECIMAL(38,18), c8 STRING, c9 CHAR(25), c10 VARCHAR(25), c11 TIMESTAMP, b STRING) PARTITIONED BY(part INT) PREHOOK: type: CREATETABLE @@ -785,6 +804,7 @@ PREHOOK: Output: database:default PREHOOK: Output: default@part_change_various_various_bigint POSTHOOK: query: -- -- SUBSECTION: ALTER TABLE CHANGE COLUMNS for Various --> Various: (BOOLEAN, TINYINT, SMALLINT, INT, FLOAT, DOUBLE, DECIMAL, STRING, CHAR, VARCHAR, TIMESTAMP) --> BIGINT +-- -9223372036854775808 to 9223372036854775807 -- CREATE TABLE part_change_various_various_bigint(insert_num int, c1 BOOLEAN, c2 TINYINT, c3 SMALLINT, c4 INT, c5 FLOAT, c6 DOUBLE, c7 DECIMAL(38,18), c8 STRING, c9 CHAR(25), c10 VARCHAR(25), c11 TIMESTAMP, b STRING) PARTITIONED BY(part INT) POSTHOOK: type: CREATETABLE @@ -792,17 +812,19 @@ POSTHOOK: Output: database:default POSTHOOK: Output: default@part_change_various_various_bigint PREHOOK: query: insert into table part_change_various_various_bigint partition(part=1) values(1, -2999, 200, 72909, 3244222, -29.0764, 470614135, 470614135, '-2999', '-2999', '-2999', '0004-09-22 18:26:29.519542222', 'original'), - (2, 0, 100, 483777, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), - (3, false, 72, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '1', '1', '1', '6229-06-28 02:54:28.970117179', 'original'), - (4, 1, -90, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '1998287.3541', '1998287.3541', '1998287.3541', '2002-05-10 05:29:48.990818073', 'original') + (2, 0, 100, 32767, -23372036854775, -3651.672121, -9223372036854775808.0, 9223372036854775807.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, 100, -32768, 23372036854775, -3651.672121, -9223372036854775809.0, 9223372036854775808.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, 72, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '1', '1', '1', '6229-06-28 02:54:28.970117179', 'original'), + (5, 1, -90, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '1998287.3541', '1998287.3541', '1998287.3541', '2002-05-10 05:29:48.990818073', 'original') PREHOOK: type: QUERY PREHOOK: Input: default@values__tmp__table__13 PREHOOK: Output: default@part_change_various_various_bigint@part=1 POSTHOOK: query: insert into table part_change_various_various_bigint partition(part=1) values(1, -2999, 200, 72909, 3244222, -29.0764, 470614135, 470614135, '-2999', '-2999', '-2999', '0004-09-22 18:26:29.519542222', 'original'), - (2, 0, 100, 483777, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), - (3, false, 72, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '1', '1', '1', '6229-06-28 02:54:28.970117179', 'original'), - (4, 1, -90, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '1998287.3541', '1998287.3541', '1998287.3541', '2002-05-10 05:29:48.990818073', 'original') + (2, 0, 100, 32767, -23372036854775, -3651.672121, -9223372036854775808.0, 9223372036854775807.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, 100, -32768, 23372036854775, -3651.672121, -9223372036854775809.0, 9223372036854775808.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, 72, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '1', '1', '1', '6229-06-28 02:54:28.970117179', 'original'), + (5, 1, -90, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '1998287.3541', '1998287.3541', '1998287.3541', '2002-05-10 05:29:48.990818073', 'original') POSTHOOK: type: QUERY POSTHOOK: Input: default@values__tmp__table__13 POSTHOOK: Output: default@part_change_various_various_bigint@part=1 @@ -832,9 +854,10 @@ POSTHOOK: Input: default@part_change_various_various_bigint@part=1 #### A masked pattern was here #### insert_num part c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 b 1 1 NULL NULL NULL 3244222 -29.0764 4.70614135E8 470614135.000000000000000000 -2999 -2999 -2999 0004-09-22 18:26:29.519542222 original -2 1 NULL 100 NULL NULL -3651.672 46114.284799488 46114.284799488000000000 2007-02-09 05:17:29.368756876 original -3 1 false 72 NULL -93222 30.774 -66475.561431 -66475.561431000000000000 1 1 1 6229-06-28 02:54:28.970117179 original -4 1 NULL -90 NULL 3289094 46114.285 9250340.75 9250340.750000000000000000 1998287.3541 1998287.3541 1998287.3541 2002-05-10 05:29:48.990818073 original +2 1 NULL 100 32767 NULL -3651.672 -9.223372036854776E18 9223372036854775807.000000000000000000 2007-02-09 05:17:29.368756876 original +3 1 NULL 100 -32768 NULL -3651.672 -9.223372036854776E18 9223372036854775808.000000000000000000 2007-02-09 05:17:29.368756876 original +4 1 false 72 NULL -93222 30.774 -66475.561431 -66475.561431000000000000 1 1 1 6229-06-28 02:54:28.970117179 original +5 1 NULL -90 NULL 3289094 46114.285 9250340.75 9250340.750000000000000000 1998287.3541 1998287.3541 1998287.3541 2002-05-10 05:29:48.990818073 original PREHOOK: query: -- Table-Non-Cascade CHANGE COLUMNS ... alter table part_change_various_various_bigint replace columns (insert_num int, c1 BIGINT, c2 BIGINT, c3 BIGINT, c4 BIGINT, c5 BIGINT, c6 BIGINT, c7 BIGINT, c8 BIGINT, c9 BIGINT, c10 BIGINT, c11 BIGINT, b STRING) PREHOOK: type: ALTERTABLE_REPLACECOLS @@ -846,12 +869,12 @@ POSTHOOK: type: ALTERTABLE_REPLACECOLS POSTHOOK: Input: default@part_change_various_various_bigint POSTHOOK: Output: default@part_change_various_various_bigint PREHOOK: query: insert into table part_change_various_various_bigint partition(part=2) - values (5, 5573199346255528403, 71, 151775655, 1, 131, -60, 6275638713485623898, -230, -695025, 519542222, -29.0764, 'new') + values (6, 5573199346255528403, 71, 151775655, 1, 131, -60, 6275638713485623898, -230, -695025, 519542222, -29.0764, 'new') PREHOOK: type: QUERY PREHOOK: Input: default@values__tmp__table__14 PREHOOK: Output: default@part_change_various_various_bigint@part=2 POSTHOOK: query: insert into table part_change_various_various_bigint partition(part=2) - values (5, 5573199346255528403, 71, 151775655, 1, 131, -60, 6275638713485623898, -230, -695025, 519542222, -29.0764, 'new') + values (6, 5573199346255528403, 71, 151775655, 1, 131, -60, 6275638713485623898, -230, -695025, 519542222, -29.0764, 'new') POSTHOOK: type: QUERY POSTHOOK: Input: default@values__tmp__table__14 POSTHOOK: Output: default@part_change_various_various_bigint@part=2 @@ -870,12 +893,12 @@ POSTHOOK: Lineage: part_change_various_various_bigint PARTITION(part=2).c9 EXPRE POSTHOOK: Lineage: part_change_various_various_bigint PARTITION(part=2).insert_num EXPRESSION [(values__tmp__table__14)values__tmp__table__14.FieldSchema(name:tmp_values_col1, type:string, comment:), ] _col0 _col1 _col2 _col3 _col4 _col5 _col6 _col7 _col8 _col9 _col10 _col11 _col12 PREHOOK: query: insert into table part_change_various_various_bigint partition(part=1) - values (6, -164341325, 9043162437544575070, -126, -6566204574741299000, 91, 113, -28, -63, 0, 3244222, -90, 'new') + values (7, -164341325, 9043162437544575070, -126, -6566204574741299000, 91, 113, -28, -63, 0, 3244222, -90, 'new') PREHOOK: type: QUERY PREHOOK: Input: default@values__tmp__table__15 PREHOOK: Output: default@part_change_various_various_bigint@part=1 POSTHOOK: query: insert into table part_change_various_various_bigint partition(part=1) - values (6, -164341325, 9043162437544575070, -126, -6566204574741299000, 91, 113, -28, -63, 0, 3244222, -90, 'new') + values (7, -164341325, 9043162437544575070, -126, -6566204574741299000, 91, 113, -28, -63, 0, 3244222, -90, 'new') POSTHOOK: type: QUERY POSTHOOK: Input: default@values__tmp__table__15 POSTHOOK: Output: default@part_change_various_various_bigint@part=1 @@ -910,25 +933,25 @@ STAGE PLANS: Map Operator Tree: TableScan alias: part_change_various_various_bigint - Statistics: Num rows: 6 Data size: 682 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 838 Basic stats: COMPLETE Column stats: NONE Select Operator expressions: insert_num (type: int), part (type: int), c1 (type: bigint), c2 (type: bigint), c3 (type: bigint), c4 (type: bigint), c5 (type: bigint), c6 (type: bigint), c7 (type: bigint), c8 (type: bigint), c9 (type: bigint), c10 (type: bigint), c11 (type: bigint), b (type: string) outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6, _col7, _col8, _col9, _col10, _col11, _col12, _col13 - Statistics: Num rows: 6 Data size: 682 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 838 Basic stats: COMPLETE Column stats: NONE Reduce Output Operator key expressions: _col0 (type: int) sort order: + - Statistics: Num rows: 6 Data size: 682 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 838 Basic stats: COMPLETE Column stats: NONE value expressions: _col1 (type: int), _col2 (type: bigint), _col3 (type: bigint), _col4 (type: bigint), _col5 (type: bigint), _col6 (type: bigint), _col7 (type: bigint), _col8 (type: bigint), _col9 (type: bigint), _col10 (type: bigint), _col11 (type: bigint), _col12 (type: bigint), _col13 (type: string) Execution mode: vectorized Reduce Operator Tree: Select Operator expressions: KEY.reducesinkkey0 (type: int), VALUE._col0 (type: int), VALUE._col1 (type: bigint), VALUE._col2 (type: bigint), VALUE._col3 (type: bigint), VALUE._col4 (type: bigint), VALUE._col5 (type: bigint), VALUE._col6 (type: bigint), VALUE._col7 (type: bigint), VALUE._col8 (type: bigint), VALUE._col9 (type: bigint), VALUE._col10 (type: bigint), VALUE._col11 (type: bigint), VALUE._col12 (type: string) outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6, _col7, _col8, _col9, _col10, _col11, _col12, _col13 - Statistics: Num rows: 6 Data size: 682 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 838 Basic stats: COMPLETE Column stats: NONE File Output Operator compressed: false - Statistics: Num rows: 6 Data size: 682 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 838 Basic stats: COMPLETE Column stats: NONE table: input format: org.apache.hadoop.mapred.SequenceFileInputFormat output format: org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat @@ -954,11 +977,12 @@ POSTHOOK: Input: default@part_change_various_various_bigint@part=2 #### A masked pattern was here #### insert_num part c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 b 1 1 NULL NULL NULL 3244222 -29 470614135 470614135 -2999 -2999 -2999 -62018170411 original -2 1 NULL 100 NULL NULL -3651 46114 46114 NULL NULL NULL 1171027049 original -3 1 0 72 NULL -93222 30 -66475 -66475 1 1 1 134416490068 original -4 1 NULL -90 NULL 3289094 46114 9250340 9250340 1998287 NULL NULL 1021033788 original -5 2 5573199346255528403 71 151775655 1 131 -60 6275638713485623898 -230 -695025 519542222 -29 new -6 1 NULL NULL -126 NULL 91 113 -28 -63 0 3244222 NULL new +2 1 NULL 100 32767 NULL -3651 -9223372036854775808 9223372036854775807 NULL NULL NULL 1171027049 original +3 1 NULL 100 -32768 NULL -3651 -9223372036854775808 -9223372036854775808 NULL NULL NULL 1171027049 original +4 1 0 72 NULL -93222 30 -66475 -66475 1 1 1 134416490068 original +5 1 NULL -90 NULL 3289094 46114 9250340 9250340 1998287 NULL NULL 1021033788 original +6 2 5573199346255528403 71 151775655 1 131 -60 6275638713485623898 -230 -695025 519542222 -29 new +7 1 NULL NULL -126 NULL 91 113 -28 -63 0 3244222 NULL new PREHOOK: query: drop table part_change_various_various_bigint PREHOOK: type: DROPTABLE PREHOOK: Input: default@part_change_various_various_bigint @@ -983,17 +1007,19 @@ POSTHOOK: Output: database:default POSTHOOK: Output: default@part_change_various_various_float PREHOOK: query: insert into table part_change_various_various_float partition(part=1) values(1, -2999, 200, 72909, 3244222, -29.0764, 470614135, 470614135, '-2999', '-2999', '-2999', '0004-09-22 18:26:29.519542222', 'original'), - (2, 0, 100, 483777, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), - (3, false, 72, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '2402.3', '2402.3', '2402.3', '6229-06-28 02:54:28.970117179', 'original'), - (4, 1, -90, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '5299', '5299', '5299', '2002-05-10 05:29:48.990818073', 'original') + (2, 0, 100, 32767, -23372036854775, -3651.672121, -9223372036854775808.0, 9223372036854775807.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, 100, -32768, 23372036854775, -3651.672121, -9223372036854775809.0, 9223372036854775808.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, 72, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '2402.3', '2402.3', '2402.3', '6229-06-28 02:54:28.970117179', 'original'), + (5, 1, -90, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '5299', '5299', '5299', '2002-05-10 05:29:48.990818073', 'original') PREHOOK: type: QUERY PREHOOK: Input: default@values__tmp__table__16 PREHOOK: Output: default@part_change_various_various_float@part=1 POSTHOOK: query: insert into table part_change_various_various_float partition(part=1) values(1, -2999, 200, 72909, 3244222, -29.0764, 470614135, 470614135, '-2999', '-2999', '-2999', '0004-09-22 18:26:29.519542222', 'original'), - (2, 0, 100, 483777, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), - (3, false, 72, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '2402.3', '2402.3', '2402.3', '6229-06-28 02:54:28.970117179', 'original'), - (4, 1, -90, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '5299', '5299', '5299', '2002-05-10 05:29:48.990818073', 'original') + (2, 0, 100, 32767, -23372036854775, -3651.672121, -9223372036854775808.0, 9223372036854775807.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, 100, -32768, 23372036854775, -3651.672121, -9223372036854775809.0, 9223372036854775808.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, 72, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '2402.3', '2402.3', '2402.3', '6229-06-28 02:54:28.970117179', 'original'), + (5, 1, -90, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '5299', '5299', '5299', '2002-05-10 05:29:48.990818073', 'original') POSTHOOK: type: QUERY POSTHOOK: Input: default@values__tmp__table__16 POSTHOOK: Output: default@part_change_various_various_float@part=1 @@ -1023,9 +1049,10 @@ POSTHOOK: Input: default@part_change_various_various_float@part=1 #### A masked pattern was here #### insert_num part c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 b 1 1 NULL NULL NULL 3244222 -29 4.70614135E8 470614135.000000000000000000 -2999 -2999 -2999 0004-09-22 18:26:29.519542222 original -2 1 NULL 100 NULL NULL -3651 46114.284799488 46114.284799488000000000 2007-02-09 05:17:29.368756876 original -3 1 false 72 NULL -93222 30 -66475.561431 -66475.561431000000000000 2402.3 2402.3 2402.3 6229-06-28 02:54:28.970117179 original -4 1 NULL -90 NULL 3289094 46114 9250340.75 9250340.750000000000000000 5299 5299 5299 2002-05-10 05:29:48.990818073 original +2 1 NULL 100 32767 NULL -3651 -9.223372036854776E18 9223372036854775807.000000000000000000 2007-02-09 05:17:29.368756876 original +3 1 NULL 100 -32768 NULL -3651 -9.223372036854776E18 9223372036854775808.000000000000000000 2007-02-09 05:17:29.368756876 original +4 1 false 72 NULL -93222 30 -66475.561431 -66475.561431000000000000 2402.3 2402.3 2402.3 6229-06-28 02:54:28.970117179 original +5 1 NULL -90 NULL 3289094 46114 9250340.75 9250340.750000000000000000 5299 5299 5299 2002-05-10 05:29:48.990818073 original PREHOOK: query: -- Table-Non-Cascade CHANGE COLUMNS ... alter table part_change_various_various_float replace columns (insert_num int, c1 FLOAT, c2 FLOAT, c3 FLOAT, c4 FLOAT, c5 FLOAT, c6 FLOAT, c7 FLOAT, c8 FLOAT, c9 FLOAT, c10 FLOAT, c11 FLOAT, b STRING) PREHOOK: type: ALTERTABLE_REPLACECOLS @@ -1037,12 +1064,12 @@ POSTHOOK: type: ALTERTABLE_REPLACECOLS POSTHOOK: Input: default@part_change_various_various_float POSTHOOK: Output: default@part_change_various_various_float PREHOOK: query: insert into table part_change_various_various_float partition(part=2) - values (5, 953967041., 62.0791539559013466, 718.78, 1, 203.199548118, -60, 6275638713485623898, -230, -695025, -3651.67212, 46114.28, 'new') + values (6, 953967041., 62.0791539559013466, 718.78, 1, 203.199548118, -60, 6275638713485623898, -230, -695025, -3651.67212, 46114.28, 'new') PREHOOK: type: QUERY PREHOOK: Input: default@values__tmp__table__17 PREHOOK: Output: default@part_change_various_various_float@part=2 POSTHOOK: query: insert into table part_change_various_various_float partition(part=2) - values (5, 953967041., 62.0791539559013466, 718.78, 1, 203.199548118, -60, 6275638713485623898, -230, -695025, -3651.67212, 46114.28, 'new') + values (6, 953967041., 62.0791539559013466, 718.78, 1, 203.199548118, -60, 6275638713485623898, -230, -695025, -3651.67212, 46114.28, 'new') POSTHOOK: type: QUERY POSTHOOK: Input: default@values__tmp__table__17 POSTHOOK: Output: default@part_change_various_various_float@part=2 @@ -1061,12 +1088,12 @@ POSTHOOK: Lineage: part_change_various_various_float PARTITION(part=2).c9 EXPRES POSTHOOK: Lineage: part_change_various_various_float PARTITION(part=2).insert_num EXPRESSION [(values__tmp__table__17)values__tmp__table__17.FieldSchema(name:tmp_values_col1, type:string, comment:), ] _col0 _col1 _col2 _col3 _col4 _col5 _col6 _col7 _col8 _col9 _col10 _col11 _col12 PREHOOK: query: insert into table part_change_various_various_float partition(part=1) - values (6, -1255178165.77663, 9043162437544575070.974, -4314.7918, -1240033819, 91, 1698.95, -100.3597812, -63, 0, -93222.200, 29.076, 'new') + values (7, -1255178165.77663, 9043162437544575070.974, -4314.7918, -1240033819, 91, 1698.95, -100.3597812, -63, 0, -93222.200, 29.076, 'new') PREHOOK: type: QUERY PREHOOK: Input: default@values__tmp__table__18 PREHOOK: Output: default@part_change_various_various_float@part=1 POSTHOOK: query: insert into table part_change_various_various_float partition(part=1) - values (6, -1255178165.77663, 9043162437544575070.974, -4314.7918, -1240033819, 91, 1698.95, -100.3597812, -63, 0, -93222.200, 29.076, 'new') + values (7, -1255178165.77663, 9043162437544575070.974, -4314.7918, -1240033819, 91, 1698.95, -100.3597812, -63, 0, -93222.200, 29.076, 'new') POSTHOOK: type: QUERY POSTHOOK: Input: default@values__tmp__table__18 POSTHOOK: Output: default@part_change_various_various_float@part=1 @@ -1101,25 +1128,25 @@ STAGE PLANS: Map Operator Tree: TableScan alias: part_change_various_various_float - Statistics: Num rows: 6 Data size: 679 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 831 Basic stats: COMPLETE Column stats: NONE Select Operator expressions: insert_num (type: int), part (type: int), c1 (type: float), c2 (type: float), c3 (type: float), c4 (type: float), c5 (type: float), c6 (type: float), c7 (type: float), c8 (type: float), c9 (type: float), c10 (type: float), c11 (type: float), b (type: string) outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6, _col7, _col8, _col9, _col10, _col11, _col12, _col13 - Statistics: Num rows: 6 Data size: 679 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 831 Basic stats: COMPLETE Column stats: NONE Reduce Output Operator key expressions: _col0 (type: int) sort order: + - Statistics: Num rows: 6 Data size: 679 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 831 Basic stats: COMPLETE Column stats: NONE value expressions: _col1 (type: int), _col2 (type: float), _col3 (type: float), _col4 (type: float), _col5 (type: float), _col6 (type: float), _col7 (type: float), _col8 (type: float), _col9 (type: float), _col10 (type: float), _col11 (type: float), _col12 (type: float), _col13 (type: string) Execution mode: vectorized Reduce Operator Tree: Select Operator expressions: KEY.reducesinkkey0 (type: int), VALUE._col0 (type: int), VALUE._col1 (type: float), VALUE._col2 (type: float), VALUE._col3 (type: float), VALUE._col4 (type: float), VALUE._col5 (type: float), VALUE._col6 (type: float), VALUE._col7 (type: float), VALUE._col8 (type: float), VALUE._col9 (type: float), VALUE._col10 (type: float), VALUE._col11 (type: float), VALUE._col12 (type: string) outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6, _col7, _col8, _col9, _col10, _col11, _col12, _col13 - Statistics: Num rows: 6 Data size: 679 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 831 Basic stats: COMPLETE Column stats: NONE File Output Operator compressed: false - Statistics: Num rows: 6 Data size: 679 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 831 Basic stats: COMPLETE Column stats: NONE table: input format: org.apache.hadoop.mapred.SequenceFileInputFormat output format: org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat @@ -1145,11 +1172,12 @@ POSTHOOK: Input: default@part_change_various_various_float@part=2 #### A masked pattern was here #### insert_num part c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 b 1 1 NULL NULL NULL 3244222.0 -29.0 4.70614144E8 4.70614144E8 -2999.0 -2999.0 -2999.0 -6.2018171E10 original -2 1 NULL 100.0 NULL NULL -3651.0 46114.285 46114.285 NULL NULL NULL 1.17102707E9 original -3 1 0.0 72.0 NULL -93222.0 30.0 -66475.56 -66475.56 2402.3 2402.3 2402.3 1.3441649E11 original -4 1 NULL -90.0 NULL 3289094.0 46114.0 9250341.0 9250341.0 5299.0 5299.0 5299.0 1.02103379E9 original -5 2 9.5396704E8 62.079155 718.78 1.0 203.19955 -60.0 6.2756385E18 -230.0 -695025.0 -3651.672 46114.28 new -6 1 NULL NULL -4314.0 NULL 91.0 1698.95 -100.35978 -63.0 0.0 -93222.2 NULL new +2 1 NULL 100.0 32767.0 NULL -3651.0 -9.223372E18 9.223372E18 NULL NULL NULL 1.17102707E9 original +3 1 NULL 100.0 -32768.0 NULL -3651.0 -9.223372E18 9.223372E18 NULL NULL NULL 1.17102707E9 original +4 1 0.0 72.0 NULL -93222.0 30.0 -66475.56 -66475.56 2402.3 2402.3 2402.3 1.3441649E11 original +5 1 NULL -90.0 NULL 3289094.0 46114.0 9250341.0 9250341.0 5299.0 5299.0 5299.0 1.02103379E9 original +6 2 9.5396704E8 62.079155 718.78 1.0 203.19955 -60.0 6.2756385E18 -230.0 -695025.0 -3651.672 46114.28 new +7 1 NULL NULL -4314.0 NULL 91.0 1698.95 -100.35978 -63.0 0.0 -93222.2 NULL new PREHOOK: query: drop table part_change_various_various_float PREHOOK: type: DROPTABLE PREHOOK: Input: default@part_change_various_various_float @@ -1174,17 +1202,19 @@ POSTHOOK: Output: database:default POSTHOOK: Output: default@part_change_various_various_double PREHOOK: query: insert into table part_change_various_various_double partition(part=1) values(1, -2999, 200, 72909, 3244222, -29.0764, 470614135, 470614135, '-2999', '-2999', '-2999', '0004-09-22 18:26:29.519542222', 'original'), - (2, 0, 100, 483777, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), - (3, false, 72, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '1', '1', '1', '6229-06-28 02:54:28.970117179', 'original'), - (4, 1, -90, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '5299', '5299', '5299', '2002-05-10 05:29:48.990818073', 'original') + (2, 0, 100, 32767, -23372036854775, -3651.672121, -9223372036854775808.0, 9223372036854775807.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, 100, -32768, 23372036854775, -3651.672121, -9223372036854775809.0, 9223372036854775808.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, 72, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '1', '1', '1', '6229-06-28 02:54:28.970117179', 'original'), + (5, 1, -90, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '5299', '5299', '5299', '2002-05-10 05:29:48.990818073', 'original') PREHOOK: type: QUERY PREHOOK: Input: default@values__tmp__table__19 PREHOOK: Output: default@part_change_various_various_double@part=1 POSTHOOK: query: insert into table part_change_various_various_double partition(part=1) values(1, -2999, 200, 72909, 3244222, -29.0764, 470614135, 470614135, '-2999', '-2999', '-2999', '0004-09-22 18:26:29.519542222', 'original'), - (2, 0, 100, 483777, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), - (3, false, 72, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '1', '1', '1', '6229-06-28 02:54:28.970117179', 'original'), - (4, 1, -90, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '5299', '5299', '5299', '2002-05-10 05:29:48.990818073', 'original') + (2, 0, 100, 32767, -23372036854775, -3651.672121, -9223372036854775808.0, 9223372036854775807.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, 100, -32768, 23372036854775, -3651.672121, -9223372036854775809.0, 9223372036854775808.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, 72, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '1', '1', '1', '6229-06-28 02:54:28.970117179', 'original'), + (5, 1, -90, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '5299', '5299', '5299', '2002-05-10 05:29:48.990818073', 'original') POSTHOOK: type: QUERY POSTHOOK: Input: default@values__tmp__table__19 POSTHOOK: Output: default@part_change_various_various_double@part=1 @@ -1214,9 +1244,10 @@ POSTHOOK: Input: default@part_change_various_various_double@part=1 #### A masked pattern was here #### insert_num part c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 b 1 1 NULL NULL NULL 3244222 -29 4.70614135E8 470614135.000000000000000000 -2999 -2999 -2999 0004-09-22 18:26:29.519542222 original -2 1 NULL 100 NULL NULL -3651 46114.284799488 46114.284799488000000000 2007-02-09 05:17:29.368756876 original -3 1 false 72 NULL -93222 30 -66475.561431 -66475.561431000000000000 1 1 1 6229-06-28 02:54:28.970117179 original -4 1 NULL -90 NULL 3289094 46114 9250340.75 9250340.750000000000000000 5299 5299 5299 2002-05-10 05:29:48.990818073 original +2 1 NULL 100 32767 NULL -3651 -9.223372036854776E18 9223372036854775807.000000000000000000 2007-02-09 05:17:29.368756876 original +3 1 NULL 100 -32768 NULL -3651 -9.223372036854776E18 9223372036854775808.000000000000000000 2007-02-09 05:17:29.368756876 original +4 1 false 72 NULL -93222 30 -66475.561431 -66475.561431000000000000 1 1 1 6229-06-28 02:54:28.970117179 original +5 1 NULL -90 NULL 3289094 46114 9250340.75 9250340.750000000000000000 5299 5299 5299 2002-05-10 05:29:48.990818073 original PREHOOK: query: -- Table-Non-Cascade CHANGE COLUMNS ... alter table part_change_various_various_double replace columns (insert_num int, c1 DOUBLE, c2 DOUBLE, c3 DOUBLE, c4 DOUBLE, c5 DOUBLE, c6 DOUBLE, c7 DOUBLE, c8 DOUBLE, c9 DOUBLE, c10 DOUBLE, c11 DOUBLE, b STRING) PREHOOK: type: ALTERTABLE_REPLACECOLS @@ -1228,12 +1259,12 @@ POSTHOOK: type: ALTERTABLE_REPLACECOLS POSTHOOK: Input: default@part_change_various_various_double POSTHOOK: Output: default@part_change_various_various_double PREHOOK: query: insert into table part_change_various_various_double partition(part=2) - values (5, 953967041., 62.0791539559013466, 718.78, 1, 203.199548118, -60, 6275638713485623898, -230, -695025, 0.00007011717, 4.28479948, 'new') + values (6, 953967041., 62.0791539559013466, 718.78, 1, 203.199548118, -60, 6275638713485623898, -230, -695025, 0.00007011717, 4.28479948, 'new') PREHOOK: type: QUERY PREHOOK: Input: default@values__tmp__table__20 PREHOOK: Output: default@part_change_various_various_double@part=2 POSTHOOK: query: insert into table part_change_various_various_double partition(part=2) - values (5, 953967041., 62.0791539559013466, 718.78, 1, 203.199548118, -60, 6275638713485623898, -230, -695025, 0.00007011717, 4.28479948, 'new') + values (6, 953967041., 62.0791539559013466, 718.78, 1, 203.199548118, -60, 6275638713485623898, -230, -695025, 0.00007011717, 4.28479948, 'new') POSTHOOK: type: QUERY POSTHOOK: Input: default@values__tmp__table__20 POSTHOOK: Output: default@part_change_various_various_double@part=2 @@ -1252,12 +1283,12 @@ POSTHOOK: Lineage: part_change_various_various_double PARTITION(part=2).c9 EXPRE POSTHOOK: Lineage: part_change_various_various_double PARTITION(part=2).insert_num EXPRESSION [(values__tmp__table__20)values__tmp__table__20.FieldSchema(name:tmp_values_col1, type:string, comment:), ] _col0 _col1 _col2 _col3 _col4 _col5 _col6 _col7 _col8 _col9 _col10 _col11 _col12 PREHOOK: query: insert into table part_change_various_various_double partition(part=1) - values (6, -1255178165.77663, 9043162437544575070.974, -4314.7918, -1240033819, 91, 1698.95, -100.3597812, -63, 0, -66475.0000008, -284799488.1, 'new') + values (7, -1255178165.77663, 9043162437544575070.974, -4314.7918, -1240033819, 91, 1698.95, -100.3597812, -63, 0, -66475.0000008, -284799488.1, 'new') PREHOOK: type: QUERY PREHOOK: Input: default@values__tmp__table__21 PREHOOK: Output: default@part_change_various_various_double@part=1 POSTHOOK: query: insert into table part_change_various_various_double partition(part=1) - values (6, -1255178165.77663, 9043162437544575070.974, -4314.7918, -1240033819, 91, 1698.95, -100.3597812, -63, 0, -66475.0000008, -284799488.1, 'new') + values (7, -1255178165.77663, 9043162437544575070.974, -4314.7918, -1240033819, 91, 1698.95, -100.3597812, -63, 0, -66475.0000008, -284799488.1, 'new') POSTHOOK: type: QUERY POSTHOOK: Input: default@values__tmp__table__21 POSTHOOK: Output: default@part_change_various_various_double@part=1 @@ -1292,25 +1323,25 @@ STAGE PLANS: Map Operator Tree: TableScan alias: part_change_various_various_double - Statistics: Num rows: 6 Data size: 722 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 874 Basic stats: COMPLETE Column stats: NONE Select Operator expressions: insert_num (type: int), part (type: int), c1 (type: double), c2 (type: double), c3 (type: double), c4 (type: double), c5 (type: double), c6 (type: double), c7 (type: double), c8 (type: double), c9 (type: double), c10 (type: double), c11 (type: double), b (type: string) outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6, _col7, _col8, _col9, _col10, _col11, _col12, _col13 - Statistics: Num rows: 6 Data size: 722 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 874 Basic stats: COMPLETE Column stats: NONE Reduce Output Operator key expressions: _col0 (type: int) sort order: + - Statistics: Num rows: 6 Data size: 722 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 874 Basic stats: COMPLETE Column stats: NONE value expressions: _col1 (type: int), _col2 (type: double), _col3 (type: double), _col4 (type: double), _col5 (type: double), _col6 (type: double), _col7 (type: double), _col8 (type: double), _col9 (type: double), _col10 (type: double), _col11 (type: double), _col12 (type: double), _col13 (type: string) Execution mode: vectorized Reduce Operator Tree: Select Operator expressions: KEY.reducesinkkey0 (type: int), VALUE._col0 (type: int), VALUE._col1 (type: double), VALUE._col2 (type: double), VALUE._col3 (type: double), VALUE._col4 (type: double), VALUE._col5 (type: double), VALUE._col6 (type: double), VALUE._col7 (type: double), VALUE._col8 (type: double), VALUE._col9 (type: double), VALUE._col10 (type: double), VALUE._col11 (type: double), VALUE._col12 (type: string) outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6, _col7, _col8, _col9, _col10, _col11, _col12, _col13 - Statistics: Num rows: 6 Data size: 722 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 874 Basic stats: COMPLETE Column stats: NONE File Output Operator compressed: false - Statistics: Num rows: 6 Data size: 722 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 874 Basic stats: COMPLETE Column stats: NONE table: input format: org.apache.hadoop.mapred.SequenceFileInputFormat output format: org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat @@ -1336,11 +1367,12 @@ POSTHOOK: Input: default@part_change_various_various_double@part=2 #### A masked pattern was here #### insert_num part c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 b 1 1 NULL NULL NULL 3244222.0 -29.0 4.70614135E8 4.70614135E8 -2999.0 -2999.0 -2999.0 -6.201817041048046E10 original -2 1 NULL 100.0 NULL NULL -3651.0 46114.284799488 46114.284799488 NULL NULL NULL 1.1710270493687568E9 original -3 1 0.0 72.0 NULL -93222.0 30.0 -66475.561431 -66475.561431 1.0 1.0 1.0 1.3441649006897012E11 original -4 1 NULL -90.0 NULL 3289094.0 46114.0 9250340.75 9250340.75 5299.0 5299.0 5299.0 1.021033788990818E9 original -5 2 9.53967041E8 62.07915395590135 718.78 1.0 203.199548118 -60.0 6.2756387134856243E18 -230.0 -695025.0 7.011717E-5 4.28479948 new -6 1 NULL NULL -4314.0 NULL 91.0 1698.95 -100.3597812 -63.0 0.0 -66475.0000008 NULL new +2 1 NULL 100.0 32767.0 NULL -3651.0 -9.223372036854776E18 9.223372036854776E18 NULL NULL NULL 1.1710270493687568E9 original +3 1 NULL 100.0 -32768.0 NULL -3651.0 -9.223372036854776E18 9.223372036854776E18 NULL NULL NULL 1.1710270493687568E9 original +4 1 0.0 72.0 NULL -93222.0 30.0 -66475.561431 -66475.561431 1.0 1.0 1.0 1.3441649006897012E11 original +5 1 NULL -90.0 NULL 3289094.0 46114.0 9250340.75 9250340.75 5299.0 5299.0 5299.0 1.021033788990818E9 original +6 2 9.53967041E8 62.07915395590135 718.78 1.0 203.199548118 -60.0 6.2756387134856243E18 -230.0 -695025.0 7.011717E-5 4.28479948 new +7 1 NULL NULL -4314.0 NULL 91.0 1698.95 -100.3597812 -63.0 0.0 -66475.0000008 NULL new PREHOOK: query: drop table part_change_various_various_double PREHOOK: type: DROPTABLE PREHOOK: Input: default@part_change_various_various_double @@ -1365,17 +1397,19 @@ POSTHOOK: Output: database:default POSTHOOK: Output: default@part_change_various_various_decimal PREHOOK: query: insert into table part_change_various_various_decimal partition(part=1) values(1, -2999, 200, 72909, 3244222, -29.0764, 470614135, 470614135, '--1551801.09502', '--1551801.09502', '--1551801.09502', '0004-09-22 18:26:29.519542222', 'original'), - (2, 0, 100, 483777, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), - (3, false, 72, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '1', '1', '1', '6229-06-28 02:54:28.970117179', 'original'), - (4, 1, -90, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '2402.3', '2402.3', '2402.3', '2002-05-10 05:29:48.990818073', 'original') + (2, 0, 100, 32767, -23372036854775, -3651.672121, -9223372036854775808.0, 9223372036854775807.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, 100, -32768, 23372036854775, -3651.672121, -9223372036854775809.0, 9223372036854775808.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, 72, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '1', '1', '1', '6229-06-28 02:54:28.970117179', 'original'), + (5, 1, -90, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '2402.3', '2402.3', '2402.3', '2002-05-10 05:29:48.990818073', 'original') PREHOOK: type: QUERY PREHOOK: Input: default@values__tmp__table__22 PREHOOK: Output: default@part_change_various_various_decimal@part=1 POSTHOOK: query: insert into table part_change_various_various_decimal partition(part=1) values(1, -2999, 200, 72909, 3244222, -29.0764, 470614135, 470614135, '--1551801.09502', '--1551801.09502', '--1551801.09502', '0004-09-22 18:26:29.519542222', 'original'), - (2, 0, 100, 483777, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), - (3, false, 72, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '1', '1', '1', '6229-06-28 02:54:28.970117179', 'original'), - (4, 1, -90, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '2402.3', '2402.3', '2402.3', '2002-05-10 05:29:48.990818073', 'original') + (2, 0, 100, 32767, -23372036854775, -3651.672121, -9223372036854775808.0, 9223372036854775807.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, 100, -32768, 23372036854775, -3651.672121, -9223372036854775809.0, 9223372036854775808.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, 72, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '1', '1', '1', '6229-06-28 02:54:28.970117179', 'original'), + (5, 1, -90, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '2402.3', '2402.3', '2402.3', '2002-05-10 05:29:48.990818073', 'original') POSTHOOK: type: QUERY POSTHOOK: Input: default@values__tmp__table__22 POSTHOOK: Output: default@part_change_various_various_decimal@part=1 @@ -1405,9 +1439,10 @@ POSTHOOK: Input: default@part_change_various_various_decimal@part=1 #### A masked pattern was here #### insert_num part c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 b 1 1 NULL NULL NULL 3244222 -29 4.70614144E8 4.70614135E8 --1551801.09502 --1551801.09502 --1551801.09502 0004-09-22 18:26:29.519542222 original -2 1 NULL 100 NULL NULL -3651 46114.285 46114.284799488 2007-02-09 05:17:29.368756876 original -3 1 false 72 NULL -93222 30 -66475.56 -66475.561431 1 1 1 6229-06-28 02:54:28.970117179 original -4 1 NULL -90 NULL 3289094 46114 9250341.0 9250340.75 2402.3 2402.3 2402.3 2002-05-10 05:29:48.990818073 original +2 1 NULL 100 32767 NULL -3651 -9.223372E18 9.223372036854776E18 2007-02-09 05:17:29.368756876 original +3 1 NULL 100 -32768 NULL -3651 -9.223372E18 9.223372036854776E18 2007-02-09 05:17:29.368756876 original +4 1 false 72 NULL -93222 30 -66475.56 -66475.561431 1 1 1 6229-06-28 02:54:28.970117179 original +5 1 NULL -90 NULL 3289094 46114 9250341.0 9250340.75 2402.3 2402.3 2402.3 2002-05-10 05:29:48.990818073 original PREHOOK: query: -- Table-Non-Cascade CHANGE COLUMNS ... alter table part_change_various_various_decimal replace columns (insert_num int, c1 DECIMAL(38,18), c2 DECIMAL(38,18), c3 DECIMAL(38,18), c4 DECIMAL(38,18), c5 DECIMAL(38,18), c6 DECIMAL(38,18), c7 DECIMAL(38,18), c8 DECIMAL(38,18), c9 DECIMAL(38,18), c10 DECIMAL(38,18), c11 DECIMAL(38,18), b STRING) PREHOOK: type: ALTERTABLE_REPLACECOLS @@ -1419,12 +1454,12 @@ POSTHOOK: type: ALTERTABLE_REPLACECOLS POSTHOOK: Input: default@part_change_various_various_decimal POSTHOOK: Output: default@part_change_various_various_decimal PREHOOK: query: insert into table part_change_various_various_decimal partition(part=2) - values (5, 953967041., 62.0791539559013466, 718.78, 1, 203.199548118, -60, 6275638713485623898, -230, -695025, 0.00007011717, 4.28479948, 'new') + values (6, 953967041., 62.0791539559013466, 718.78, 1, 203.199548118, -60, 6275638713485623898, -230, -695025, 0.00007011717, 4.28479948, 'new') PREHOOK: type: QUERY PREHOOK: Input: default@values__tmp__table__23 PREHOOK: Output: default@part_change_various_various_decimal@part=2 POSTHOOK: query: insert into table part_change_various_various_decimal partition(part=2) - values (5, 953967041., 62.0791539559013466, 718.78, 1, 203.199548118, -60, 6275638713485623898, -230, -695025, 0.00007011717, 4.28479948, 'new') + values (6, 953967041., 62.0791539559013466, 718.78, 1, 203.199548118, -60, 6275638713485623898, -230, -695025, 0.00007011717, 4.28479948, 'new') POSTHOOK: type: QUERY POSTHOOK: Input: default@values__tmp__table__23 POSTHOOK: Output: default@part_change_various_various_decimal@part=2 @@ -1443,12 +1478,12 @@ POSTHOOK: Lineage: part_change_various_various_decimal PARTITION(part=2).c9 EXPR POSTHOOK: Lineage: part_change_various_various_decimal PARTITION(part=2).insert_num EXPRESSION [(values__tmp__table__23)values__tmp__table__23.FieldSchema(name:tmp_values_col1, type:string, comment:), ] _col0 _col1 _col2 _col3 _col4 _col5 _col6 _col7 _col8 _col9 _col10 _col11 _col12 PREHOOK: query: insert into table part_change_various_various_decimal partition(part=1) - values (6,-1255178165.77663, 9043162437544575070.974, -4314.7918, -1240033819, 91, 1698.95, -100.3597812, -63, 0, -66475.0000008, -284799488.1, 'new') + values (7,-1255178165.77663, 9043162437544575070.974, -4314.7918, -1240033819, 91, 1698.95, -100.3597812, -63, 0, -66475.0000008, -284799488.1, 'new') PREHOOK: type: QUERY PREHOOK: Input: default@values__tmp__table__24 PREHOOK: Output: default@part_change_various_various_decimal@part=1 POSTHOOK: query: insert into table part_change_various_various_decimal partition(part=1) - values (6,-1255178165.77663, 9043162437544575070.974, -4314.7918, -1240033819, 91, 1698.95, -100.3597812, -63, 0, -66475.0000008, -284799488.1, 'new') + values (7,-1255178165.77663, 9043162437544575070.974, -4314.7918, -1240033819, 91, 1698.95, -100.3597812, -63, 0, -66475.0000008, -284799488.1, 'new') POSTHOOK: type: QUERY POSTHOOK: Input: default@values__tmp__table__24 POSTHOOK: Output: default@part_change_various_various_decimal@part=1 @@ -1483,25 +1518,25 @@ STAGE PLANS: Map Operator Tree: TableScan alias: part_change_various_various_decimal - Statistics: Num rows: 6 Data size: 1006 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 1119 Basic stats: COMPLETE Column stats: NONE Select Operator expressions: insert_num (type: int), part (type: int), c1 (type: decimal(38,18)), c2 (type: decimal(38,18)), c3 (type: decimal(38,18)), c4 (type: decimal(38,18)), c5 (type: decimal(38,18)), c6 (type: decimal(38,18)), c7 (type: decimal(38,18)), c8 (type: decimal(38,18)), c9 (type: decimal(38,18)), c10 (type: decimal(38,18)), c11 (type: decimal(38,18)), b (type: string) outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6, _col7, _col8, _col9, _col10, _col11, _col12, _col13 - Statistics: Num rows: 6 Data size: 1006 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 1119 Basic stats: COMPLETE Column stats: NONE Reduce Output Operator key expressions: _col0 (type: int) sort order: + - Statistics: Num rows: 6 Data size: 1006 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 1119 Basic stats: COMPLETE Column stats: NONE value expressions: _col1 (type: int), _col2 (type: decimal(38,18)), _col3 (type: decimal(38,18)), _col4 (type: decimal(38,18)), _col5 (type: decimal(38,18)), _col6 (type: decimal(38,18)), _col7 (type: decimal(38,18)), _col8 (type: decimal(38,18)), _col9 (type: decimal(38,18)), _col10 (type: decimal(38,18)), _col11 (type: decimal(38,18)), _col12 (type: decimal(38,18)), _col13 (type: string) Execution mode: vectorized Reduce Operator Tree: Select Operator expressions: KEY.reducesinkkey0 (type: int), VALUE._col0 (type: int), VALUE._col1 (type: decimal(38,18)), VALUE._col2 (type: decimal(38,18)), VALUE._col3 (type: decimal(38,18)), VALUE._col4 (type: decimal(38,18)), VALUE._col5 (type: decimal(38,18)), VALUE._col6 (type: decimal(38,18)), VALUE._col7 (type: decimal(38,18)), VALUE._col8 (type: decimal(38,18)), VALUE._col9 (type: decimal(38,18)), VALUE._col10 (type: decimal(38,18)), VALUE._col11 (type: decimal(38,18)), VALUE._col12 (type: string) outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6, _col7, _col8, _col9, _col10, _col11, _col12, _col13 - Statistics: Num rows: 6 Data size: 1006 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 1119 Basic stats: COMPLETE Column stats: NONE File Output Operator compressed: false - Statistics: Num rows: 6 Data size: 1006 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 1119 Basic stats: COMPLETE Column stats: NONE table: input format: org.apache.hadoop.mapred.SequenceFileInputFormat output format: org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat @@ -1527,11 +1562,12 @@ POSTHOOK: Input: default@part_change_various_various_decimal@part=2 #### A masked pattern was here #### insert_num part c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 b 1 1 NULL NULL NULL 3244222.000000000000000000 -29.000000000000000000 470614144.000000000000000000 470614135.000000000000000000 NULL NULL NULL -62018170410.480460000000000000 original -2 1 NULL 100.000000000000000000 NULL NULL -3651.000000000000000000 46114.285000000000000000 46114.284799488000000000 NULL NULL NULL 1171027049.368756800000000000 original -3 1 0.000000000000000000 72.000000000000000000 NULL -93222.000000000000000000 30.000000000000000000 -66475.560000000000000000 -66475.561431000000000000 1.000000000000000000 1.000000000000000000 1.000000000000000000 134416490068.970120000000000000 original -4 1 NULL -90.000000000000000000 NULL 3289094.000000000000000000 46114.000000000000000000 9250341.000000000000000000 9250340.750000000000000000 2402.300000000000000000 2402.300000000000000000 2402.300000000000000000 1021033788.990818000000000000 original -5 2 953967041.000000000000000000 62.079153955901346600 718.780000000000000000 1.000000000000000000 203.199548118000000000 -60.000000000000000000 6275638713485623898.000000000000000000 -230.000000000000000000 -695025.000000000000000000 0.000070117170000000 4.284799480000000000 new -6 1 NULL NULL -4314.000000000000000000 -1240033819.000000000000000000 91.000000000000000000 1698.950000000000000000 -100.359781200000000000 -63.000000000000000000 0.000000000000000000 -66475.000000800000000000 NULL new +2 1 NULL 100.000000000000000000 32767.000000000000000000 NULL -3651.000000000000000000 -9223372000000000000.000000000000000000 9223372036854776000.000000000000000000 NULL NULL NULL 1171027049.368756800000000000 original +3 1 NULL 100.000000000000000000 -32768.000000000000000000 NULL -3651.000000000000000000 -9223372000000000000.000000000000000000 9223372036854776000.000000000000000000 NULL NULL NULL 1171027049.368756800000000000 original +4 1 0.000000000000000000 72.000000000000000000 NULL -93222.000000000000000000 30.000000000000000000 -66475.560000000000000000 -66475.561431000000000000 1.000000000000000000 1.000000000000000000 1.000000000000000000 134416490068.970120000000000000 original +5 1 NULL -90.000000000000000000 NULL 3289094.000000000000000000 46114.000000000000000000 9250341.000000000000000000 9250340.750000000000000000 2402.300000000000000000 2402.300000000000000000 2402.300000000000000000 1021033788.990818000000000000 original +6 2 953967041.000000000000000000 62.079153955901346600 718.780000000000000000 1.000000000000000000 203.199548118000000000 -60.000000000000000000 6275638713485623898.000000000000000000 -230.000000000000000000 -695025.000000000000000000 0.000070117170000000 4.284799480000000000 new +7 1 NULL NULL -4314.000000000000000000 -1240033819.000000000000000000 91.000000000000000000 1698.950000000000000000 -100.359781200000000000 -63.000000000000000000 0.000000000000000000 -66475.000000800000000000 NULL new PREHOOK: query: drop table part_change_various_various_decimal PREHOOK: type: DROPTABLE PREHOOK: Input: default@part_change_various_various_decimal @@ -1556,17 +1592,19 @@ POSTHOOK: Output: database:default POSTHOOK: Output: default@part_change_various_various_string PREHOOK: query: insert into table part_change_various_various_string partition(part=1) values(1, true, 200, 72909, 3244222, -99999999999, -29.0764, 470614135, 470614135, 'dynamic reptile ', 'dynamic reptile ', '0004-09-22 18:26:29.519542222', '2007-02-09', 'binary', 'original'), - (2, 0, 100, 483777, 14, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, ' baffling ', ' baffling ', '2007-02-09 05:17:29.368756876', '0004-09-22', 'binary', 'original'), - (3, false, 72, 3244222, -93222, 30.774, - 66475.561431, -66475.561431, 0.561431, '1', '1', '6229-06-28 02:54:28.970117179', '5966-07-09', 'binary', 'original'), - (4, 1, -90, 754072151, 3289094, 46114.284799488, 9250340.75, 9250340.75, 9250340.75, 'junkyard', 'junkyard', '2002-05-10 05:29:48.990818073', '1815-05-06', 'binary', 'original') + (2, 0, 100, 32767, -23372036854775, -3651.672121, -9223372036854775808.0, 9223372036854775807.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, 100, -32768, 23372036854775, -3651.672121, -9223372036854775809.0, 9223372036854775808.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, 72, 3244222, -93222, 30.774, - 66475.561431, -66475.561431, 0.561431, '1', '1', '6229-06-28 02:54:28.970117179', '5966-07-09', 'binary', 'original'), + (5, 1, -90, 754072151, 3289094, 46114.284799488, 9250340.75, 9250340.75, 9250340.75, 'junkyard', 'junkyard', '2002-05-10 05:29:48.990818073', '1815-05-06', 'binary', 'original') PREHOOK: type: QUERY PREHOOK: Input: default@values__tmp__table__25 PREHOOK: Output: default@part_change_various_various_string@part=1 POSTHOOK: query: insert into table part_change_various_various_string partition(part=1) values(1, true, 200, 72909, 3244222, -99999999999, -29.0764, 470614135, 470614135, 'dynamic reptile ', 'dynamic reptile ', '0004-09-22 18:26:29.519542222', '2007-02-09', 'binary', 'original'), - (2, 0, 100, 483777, 14, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, ' baffling ', ' baffling ', '2007-02-09 05:17:29.368756876', '0004-09-22', 'binary', 'original'), - (3, false, 72, 3244222, -93222, 30.774, - 66475.561431, -66475.561431, 0.561431, '1', '1', '6229-06-28 02:54:28.970117179', '5966-07-09', 'binary', 'original'), - (4, 1, -90, 754072151, 3289094, 46114.284799488, 9250340.75, 9250340.75, 9250340.75, 'junkyard', 'junkyard', '2002-05-10 05:29:48.990818073', '1815-05-06', 'binary', 'original') + (2, 0, 100, 32767, -23372036854775, -3651.672121, -9223372036854775808.0, 9223372036854775807.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, 100, -32768, 23372036854775, -3651.672121, -9223372036854775809.0, 9223372036854775808.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, 72, 3244222, -93222, 30.774, - 66475.561431, -66475.561431, 0.561431, '1', '1', '6229-06-28 02:54:28.970117179', '5966-07-09', 'binary', 'original'), + (5, 1, -90, 754072151, 3289094, 46114.284799488, 9250340.75, 9250340.75, 9250340.75, 'junkyard', 'junkyard', '2002-05-10 05:29:48.990818073', '1815-05-06', 'binary', 'original') POSTHOOK: type: QUERY POSTHOOK: Input: default@values__tmp__table__25 POSTHOOK: Output: default@part_change_various_various_string@part=1 @@ -1598,9 +1636,10 @@ POSTHOOK: Input: default@part_change_various_various_string@part=1 #### A masked pattern was here #### insert_num part c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 c12 c13 b 1 1 NULL NULL NULL 3244222 -99999999999 -29.0764 4.70614135E8 470614135.000000000000000000 dynamic reptile dynamic reptile 0004-09-22 18:26:29.519542222 2007-02-09 binary original -2 1 NULL 100 NULL 14 -23866739993 -3651.672 46114.284799488 46114.284799488000000000 baffling baffling 2007-02-09 05:17:29.368756876 0004-09-22 binary original -3 1 false 72 NULL -93222 30 -66475.56 -66475.561431 0.561431000000000000 1 1 6229-06-28 02:54:28.970117179 5966-07-09 binary original -4 1 NULL -90 NULL 3289094 46114 9250341.0 9250340.75 9250340.750000000000000000 junkyard junkyard 2002-05-10 05:29:48.990818073 1815-05-06 binary original +2 1 NULL 100 32767 NULL -3651 -9.223372E18 9.223372036854776E18 NULL 2007-02-09 05:17:29.368756876 NULL NULL NULL +3 1 NULL 100 -32768 NULL -3651 -9.223372E18 9.223372036854776E18 NULL 2007-02-09 05:17:29.368756876 NULL NULL NULL +4 1 false 72 NULL -93222 30 -66475.56 -66475.561431 0.561431000000000000 1 1 6229-06-28 02:54:28.970117179 5966-07-09 binary original +5 1 NULL -90 NULL 3289094 46114 9250341.0 9250340.75 9250340.750000000000000000 junkyard junkyard 2002-05-10 05:29:48.990818073 1815-05-06 binary original PREHOOK: query: -- Table-Non-Cascade CHANGE COLUMNS ... alter table part_change_various_various_string replace columns (insert_num int, c1 STRING, c2 STRING, c3 STRING, c4 STRING, c5 STRING, c6 STRING, c7 STRING, c8 STRING, c9 STRING, c10 STRING, c11 STRING, c12 STRING, c13 STRING, b STRING) PREHOOK: type: ALTERTABLE_REPLACECOLS @@ -1612,12 +1651,12 @@ POSTHOOK: type: ALTERTABLE_REPLACECOLS POSTHOOK: Input: default@part_change_various_various_string POSTHOOK: Output: default@part_change_various_various_string PREHOOK: query: insert into table part_change_various_various_string partition(part=2) - values (5, 'true', '400', '44388', -'100', '953967041.', '62.079153', '718.78', '1', 'verdict', 'verdict', 'timestamp', 'date', 'binary', 'new') + values (6, 'true', '400', '44388', -'100', '953967041.', '62.079153', '718.78', '1', 'verdict', 'verdict', 'timestamp', 'date', 'binary', 'new') PREHOOK: type: QUERY PREHOOK: Input: default@values__tmp__table__26 PREHOOK: Output: default@part_change_various_various_string@part=2 POSTHOOK: query: insert into table part_change_various_various_string partition(part=2) - values (5, 'true', '400', '44388', -'100', '953967041.', '62.079153', '718.78', '1', 'verdict', 'verdict', 'timestamp', 'date', 'binary', 'new') + values (6, 'true', '400', '44388', -'100', '953967041.', '62.079153', '718.78', '1', 'verdict', 'verdict', 'timestamp', 'date', 'binary', 'new') POSTHOOK: type: QUERY POSTHOOK: Input: default@values__tmp__table__26 POSTHOOK: Output: default@part_change_various_various_string@part=2 @@ -1638,12 +1677,12 @@ POSTHOOK: Lineage: part_change_various_various_string PARTITION(part=2).c9 SIMPL POSTHOOK: Lineage: part_change_various_various_string PARTITION(part=2).insert_num EXPRESSION [(values__tmp__table__26)values__tmp__table__26.FieldSchema(name:tmp_values_col1, type:string, comment:), ] _col0 _col1 _col2 _col3 _col4 _col5 _col6 _col7 _col8 _col9 _col10 _col11 _col12 _col13 _col14 PREHOOK: query: insert into table part_change_various_various_string partition(part=1) - values (6,-'false', '-67', '833', '63993', ' 1255178165.77663', '905070.974', '-4314.7918', -'1240033819', 'trial', 'trial', '2016-03-07 03:02:22.0', '2016-03-07', 'binary', 'new') + values (7,-'false', '-67', '833', '63993', ' 1255178165.77663', '905070.974', '-4314.7918', -'1240033819', 'trial', 'trial', '2016-03-07 03:02:22.0', '2016-03-07', 'binary', 'new') PREHOOK: type: QUERY PREHOOK: Input: default@values__tmp__table__27 PREHOOK: Output: default@part_change_various_various_string@part=1 POSTHOOK: query: insert into table part_change_various_various_string partition(part=1) - values (6,-'false', '-67', '833', '63993', ' 1255178165.77663', '905070.974', '-4314.7918', -'1240033819', 'trial', 'trial', '2016-03-07 03:02:22.0', '2016-03-07', 'binary', 'new') + values (7,-'false', '-67', '833', '63993', ' 1255178165.77663', '905070.974', '-4314.7918', -'1240033819', 'trial', 'trial', '2016-03-07 03:02:22.0', '2016-03-07', 'binary', 'new') POSTHOOK: type: QUERY POSTHOOK: Input: default@values__tmp__table__27 POSTHOOK: Output: default@part_change_various_various_string@part=1 @@ -1680,25 +1719,25 @@ STAGE PLANS: Map Operator Tree: TableScan alias: part_change_various_various_string - Statistics: Num rows: 6 Data size: 914 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 991 Basic stats: COMPLETE Column stats: NONE Select Operator expressions: insert_num (type: int), part (type: int), c1 (type: string), c2 (type: string), c3 (type: string), c4 (type: string), c5 (type: string), c6 (type: string), c7 (type: string), c8 (type: string), c9 (type: string), c10 (type: string), c11 (type: string), c12 (type: string), c13 (type: string), b (type: string) outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6, _col7, _col8, _col9, _col10, _col11, _col12, _col13, _col14, _col15 - Statistics: Num rows: 6 Data size: 914 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 991 Basic stats: COMPLETE Column stats: NONE Reduce Output Operator key expressions: _col0 (type: int) sort order: + - Statistics: Num rows: 6 Data size: 914 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 991 Basic stats: COMPLETE Column stats: NONE value expressions: _col1 (type: int), _col2 (type: string), _col3 (type: string), _col4 (type: string), _col5 (type: string), _col6 (type: string), _col7 (type: string), _col8 (type: string), _col9 (type: string), _col10 (type: string), _col11 (type: string), _col12 (type: string), _col13 (type: string), _col14 (type: string), _col15 (type: string) Execution mode: vectorized Reduce Operator Tree: Select Operator expressions: KEY.reducesinkkey0 (type: int), VALUE._col0 (type: int), VALUE._col1 (type: string), VALUE._col2 (type: string), VALUE._col3 (type: string), VALUE._col4 (type: string), VALUE._col5 (type: string), VALUE._col6 (type: string), VALUE._col7 (type: string), VALUE._col8 (type: string), VALUE._col9 (type: string), VALUE._col10 (type: string), VALUE._col11 (type: string), VALUE._col12 (type: string), VALUE._col13 (type: string), VALUE._col14 (type: string) outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6, _col7, _col8, _col9, _col10, _col11, _col12, _col13, _col14, _col15 - Statistics: Num rows: 6 Data size: 914 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 991 Basic stats: COMPLETE Column stats: NONE File Output Operator compressed: false - Statistics: Num rows: 6 Data size: 914 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 991 Basic stats: COMPLETE Column stats: NONE table: input format: org.apache.hadoop.mapred.SequenceFileInputFormat output format: org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat @@ -1724,11 +1763,12 @@ POSTHOOK: Input: default@part_change_various_various_string@part=2 #### A masked pattern was here #### insert_num part c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 c12 c13 b 1 1 NULL NULL NULL 3244222 -99999999999 -29.0764 4.70614135E8 470614135 dynamic reptile dynamic reptile 0004-09-22 18:26:29.519542222 2007-02-09 binary original -2 1 NULL 100 NULL 14 -23866739993 -3651.672 46114.284799488 46114.284799488 baffling baffling 2007-02-09 05:17:29.368756876 0004-09-22 binary original -3 1 false 72 NULL -93222 30 -66475.56 -66475.561431 0.561431 1 1 6229-06-28 02:54:28.970117179 5966-07-09 binary original -4 1 NULL -90 NULL 3289094 46114 9250341.0 9250340.75 9250340.75 junkyard junkyard 2002-05-10 05:29:48.990818073 1815-05-06 binary original -5 2 true 400 44388 -100 953967041. 62.079153 718.78 1 verdict verdict timestamp date binary new -6 1 NULL -67 833 63993 NULL 905071.0 -4314.7918 -1240033819 trial trial 2016-03-07 03:02:22 2016-03-07 n)گ new +2 1 NULL 100 32767 NULL -3651 -9.223372E18 9.223372036854776E18 NULL 2007-02-09 05:17:29.368756876 NULL NULL NULL +3 1 NULL 100 -32768 NULL -3651 -9.223372E18 9.223372036854776E18 NULL 2007-02-09 05:17:29.368756876 NULL NULL NULL +4 1 false 72 NULL -93222 30 -66475.56 -66475.561431 0.561431 1 1 6229-06-28 02:54:28.970117179 5966-07-09 binary original +5 1 NULL -90 NULL 3289094 46114 9250341.0 9250340.75 9250340.75 junkyard junkyard 2002-05-10 05:29:48.990818073 1815-05-06 binary original +6 2 true 400 44388 -100 953967041. 62.079153 718.78 1 verdict verdict timestamp date binary new +7 1 NULL -67 833 63993 NULL 905071.0 -4314.7918 -1240033819 trial trial 2016-03-07 03:02:22 2016-03-07 n)گ new PREHOOK: query: drop table part_change_various_various_string PREHOOK: type: DROPTABLE PREHOOK: Input: default@part_change_various_various_string @@ -1753,17 +1793,19 @@ POSTHOOK: Output: database:default POSTHOOK: Output: default@part_change_various_various_char PREHOOK: query: insert into table part_change_various_various_char partition(part=1) values(1, true, 200, 72909, 3244222, -99999999999, -29.0764, 470614135, 470614135, 'dynamic reptile ', 'dynamic reptile ', '0004-09-22 18:26:29.519542222', '2007-02-09', 'binary', 'original'), - (2, 0, 100, 483777, 14, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, ' baffling ', ' baffling ', '2007-02-09 05:17:29.368756876', '0004-09-22', 'binary', 'original'), - (3, false, 72, 3244222, -93222, 30.774, - 66475.561431, -66475.561431, 0.561431, '1', '1', '6229-06-28 02:54:28.970117179', '5966-07-09', 'binary', 'original'), - (4, 1, -90, 754072151, 3289094, 46114.284799488, 9250340.75, 9250340.75, 9250340.75, 'junkyard', 'junkyard', '2002-05-10 05:29:48.990818073', '1815-05-06', 'binary', 'original') + (2, 0, 100, 32767, -23372036854775, -3651.672121, -9223372036854775808.0, 9223372036854775807.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, 100, -32768, 23372036854775, -3651.672121, -9223372036854775809.0, 9223372036854775808.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, 72, 3244222, -93222, 30.774, - 66475.561431, -66475.561431, 0.561431, '1', '1', '6229-06-28 02:54:28.970117179', '5966-07-09', 'binary', 'original'), + (5, 1, -90, 754072151, 3289094, 46114.284799488, 9250340.75, 9250340.75, 9250340.75, 'junkyard', 'junkyard', '2002-05-10 05:29:48.990818073', '1815-05-06', 'binary', 'original') PREHOOK: type: QUERY PREHOOK: Input: default@values__tmp__table__28 PREHOOK: Output: default@part_change_various_various_char@part=1 POSTHOOK: query: insert into table part_change_various_various_char partition(part=1) values(1, true, 200, 72909, 3244222, -99999999999, -29.0764, 470614135, 470614135, 'dynamic reptile ', 'dynamic reptile ', '0004-09-22 18:26:29.519542222', '2007-02-09', 'binary', 'original'), - (2, 0, 100, 483777, 14, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, ' baffling ', ' baffling ', '2007-02-09 05:17:29.368756876', '0004-09-22', 'binary', 'original'), - (3, false, 72, 3244222, -93222, 30.774, - 66475.561431, -66475.561431, 0.561431, '1', '1', '6229-06-28 02:54:28.970117179', '5966-07-09', 'binary', 'original'), - (4, 1, -90, 754072151, 3289094, 46114.284799488, 9250340.75, 9250340.75, 9250340.75, 'junkyard', 'junkyard', '2002-05-10 05:29:48.990818073', '1815-05-06', 'binary', 'original') + (2, 0, 100, 32767, -23372036854775, -3651.672121, -9223372036854775808.0, 9223372036854775807.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, 100, -32768, 23372036854775, -3651.672121, -9223372036854775809.0, 9223372036854775808.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, 72, 3244222, -93222, 30.774, - 66475.561431, -66475.561431, 0.561431, '1', '1', '6229-06-28 02:54:28.970117179', '5966-07-09', 'binary', 'original'), + (5, 1, -90, 754072151, 3289094, 46114.284799488, 9250340.75, 9250340.75, 9250340.75, 'junkyard', 'junkyard', '2002-05-10 05:29:48.990818073', '1815-05-06', 'binary', 'original') POSTHOOK: type: QUERY POSTHOOK: Input: default@values__tmp__table__28 POSTHOOK: Output: default@part_change_various_various_char@part=1 @@ -1795,9 +1837,10 @@ POSTHOOK: Input: default@part_change_various_various_char@part=1 #### A masked pattern was here #### insert_num part c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 c12 c13 b 1 1 NULL NULL NULL 3244222 -99999999999 -29.0764 4.70614135E8 470614135.000000000000000000 dynamic reptile dynamic reptile 0004-09-22 18:26:29.519542222 2007-02-09 binary original -2 1 NULL 100 NULL 14 -23866739993 -3651.672 46114.284799488 46114.284799488000000000 baffling baffling 2007-02-09 05:17:29.368756876 0004-09-22 binary original -3 1 false 72 NULL -93222 30 -66475.56 -66475.561431 0.561431000000000000 1 1 6229-06-28 02:54:28.970117179 5966-07-09 binary original -4 1 NULL -90 NULL 3289094 46114 9250341.0 9250340.75 9250340.750000000000000000 junkyard junkyard 2002-05-10 05:29:48.990818073 1815-05-06 binary original +2 1 NULL 100 32767 NULL -3651 -9.223372E18 9.223372036854776E18 NULL 2007-02-09 05:17:29.368756876 NULL NULL NULL +3 1 NULL 100 -32768 NULL -3651 -9.223372E18 9.223372036854776E18 NULL 2007-02-09 05:17:29.368756876 NULL NULL NULL +4 1 false 72 NULL -93222 30 -66475.56 -66475.561431 0.561431000000000000 1 1 6229-06-28 02:54:28.970117179 5966-07-09 binary original +5 1 NULL -90 NULL 3289094 46114 9250341.0 9250340.75 9250340.750000000000000000 junkyard junkyard 2002-05-10 05:29:48.990818073 1815-05-06 binary original PREHOOK: query: -- Table-Non-Cascade CHANGE COLUMNS ... alter table part_change_various_various_char replace columns (insert_num int, c1 CHAR(25), c2 CHAR(25), c3 CHAR(25), c4 CHAR(25), c5 CHAR(25), c6 CHAR(25), c7 CHAR(25), c8 CHAR(25), c9 CHAR(25), c10 CHAR(25), c11 CHAR(25), c12 CHAR(25), c13 CHAR(25), b STRING) PREHOOK: type: ALTERTABLE_REPLACECOLS @@ -1809,12 +1852,12 @@ POSTHOOK: type: ALTERTABLE_REPLACECOLS POSTHOOK: Input: default@part_change_various_various_char POSTHOOK: Output: default@part_change_various_various_char PREHOOK: query: insert into table part_change_various_various_char partition(part=2) - values (5, 'true', '400', '44388', -'100', '953967041.', '62.079153', '718.78', '1', 'verdict', 'verdict', 'timestamp', 'date', 'binary', 'new') + values (6, 'true', '400', '44388', -'100', '953967041.', '62.079153', '718.78', '1', 'verdict', 'verdict', 'timestamp', 'date', 'binary', 'new') PREHOOK: type: QUERY PREHOOK: Input: default@values__tmp__table__29 PREHOOK: Output: default@part_change_various_various_char@part=2 POSTHOOK: query: insert into table part_change_various_various_char partition(part=2) - values (5, 'true', '400', '44388', -'100', '953967041.', '62.079153', '718.78', '1', 'verdict', 'verdict', 'timestamp', 'date', 'binary', 'new') + values (6, 'true', '400', '44388', -'100', '953967041.', '62.079153', '718.78', '1', 'verdict', 'verdict', 'timestamp', 'date', 'binary', 'new') POSTHOOK: type: QUERY POSTHOOK: Input: default@values__tmp__table__29 POSTHOOK: Output: default@part_change_various_various_char@part=2 @@ -1835,12 +1878,12 @@ POSTHOOK: Lineage: part_change_various_various_char PARTITION(part=2).c9 EXPRESS POSTHOOK: Lineage: part_change_various_various_char PARTITION(part=2).insert_num EXPRESSION [(values__tmp__table__29)values__tmp__table__29.FieldSchema(name:tmp_values_col1, type:string, comment:), ] _col0 _col1 _col2 _col3 _col4 _col5 _col6 _col7 _col8 _col9 _col10 _col11 _col12 _col13 _col14 PREHOOK: query: insert into table part_change_various_various_char partition(part=1) - values (6,-'false', '-67', '833', '63993', ' 1255178165.77663', '905070.974', '-4314.7918', -'1240033819', 'trial', 'trial', '2016-03-07 03:02:22.0', '2016-03-07', 'binary', 'new') + values (7,-'false', '-67', '833', '63993', ' 1255178165.77663', '905070.974', '-4314.7918', -'1240033819', 'trial', 'trial', '2016-03-07 03:02:22.0', '2016-03-07', 'binary', 'new') PREHOOK: type: QUERY PREHOOK: Input: default@values__tmp__table__30 PREHOOK: Output: default@part_change_various_various_char@part=1 POSTHOOK: query: insert into table part_change_various_various_char partition(part=1) - values (6,-'false', '-67', '833', '63993', ' 1255178165.77663', '905070.974', '-4314.7918', -'1240033819', 'trial', 'trial', '2016-03-07 03:02:22.0', '2016-03-07', 'binary', 'new') + values (7,-'false', '-67', '833', '63993', ' 1255178165.77663', '905070.974', '-4314.7918', -'1240033819', 'trial', 'trial', '2016-03-07 03:02:22.0', '2016-03-07', 'binary', 'new') POSTHOOK: type: QUERY POSTHOOK: Input: default@values__tmp__table__30 POSTHOOK: Output: default@part_change_various_various_char@part=1 @@ -1877,25 +1920,25 @@ STAGE PLANS: Map Operator Tree: TableScan alias: part_change_various_various_char - Statistics: Num rows: 6 Data size: 854 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 892 Basic stats: COMPLETE Column stats: NONE Select Operator expressions: insert_num (type: int), part (type: int), c1 (type: char(25)), c2 (type: char(25)), c3 (type: char(25)), c4 (type: char(25)), c5 (type: char(25)), c6 (type: char(25)), c7 (type: char(25)), c8 (type: char(25)), c9 (type: char(25)), c10 (type: char(25)), c11 (type: char(25)), c12 (type: char(25)), c13 (type: char(25)), b (type: string) outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6, _col7, _col8, _col9, _col10, _col11, _col12, _col13, _col14, _col15 - Statistics: Num rows: 6 Data size: 854 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 892 Basic stats: COMPLETE Column stats: NONE Reduce Output Operator key expressions: _col0 (type: int) sort order: + - Statistics: Num rows: 6 Data size: 854 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 892 Basic stats: COMPLETE Column stats: NONE value expressions: _col1 (type: int), _col2 (type: char(25)), _col3 (type: char(25)), _col4 (type: char(25)), _col5 (type: char(25)), _col6 (type: char(25)), _col7 (type: char(25)), _col8 (type: char(25)), _col9 (type: char(25)), _col10 (type: char(25)), _col11 (type: char(25)), _col12 (type: char(25)), _col13 (type: char(25)), _col14 (type: char(25)), _col15 (type: string) Execution mode: vectorized Reduce Operator Tree: Select Operator expressions: KEY.reducesinkkey0 (type: int), VALUE._col0 (type: int), VALUE._col1 (type: char(25)), VALUE._col2 (type: char(25)), VALUE._col3 (type: char(25)), VALUE._col4 (type: char(25)), VALUE._col5 (type: char(25)), VALUE._col6 (type: char(25)), VALUE._col7 (type: char(25)), VALUE._col8 (type: char(25)), VALUE._col9 (type: char(25)), VALUE._col10 (type: char(25)), VALUE._col11 (type: char(25)), VALUE._col12 (type: char(25)), VALUE._col13 (type: char(25)), VALUE._col14 (type: string) outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6, _col7, _col8, _col9, _col10, _col11, _col12, _col13, _col14, _col15 - Statistics: Num rows: 6 Data size: 854 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 892 Basic stats: COMPLETE Column stats: NONE File Output Operator compressed: false - Statistics: Num rows: 6 Data size: 854 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 892 Basic stats: COMPLETE Column stats: NONE table: input format: org.apache.hadoop.mapred.SequenceFileInputFormat output format: org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat @@ -1921,11 +1964,12 @@ POSTHOOK: Input: default@part_change_various_various_char@part=2 #### A masked pattern was here #### insert_num part c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 c12 c13 b 1 1 NULL NULL NULL 3244222 -99999999999 -29.0764 4.70614135E8 470614135 dynamic reptile dynamic reptile 0004-09-22 18:26:29.51954 2007-02-09 binary original -2 1 NULL 100 NULL 14 -23866739993 -3651.672 46114.284799488 46114.284799488 baffling baffling 2007-02-09 05:17:29.36875 0004-09-22 binary original -3 1 false 72 NULL -93222 30 -66475.56 -66475.561431 0.561431 1 1 6229-06-28 02:54:28.97011 5966-07-09 binary original -4 1 NULL -90 NULL 3289094 46114 9250341.0 9250340.75 9250340.75 junkyard junkyard 2002-05-10 05:29:48.99081 1815-05-06 binary original -5 2 true 400 44388 -100 953967041. 62.079153 718.78 1 verdict verdict timestamp date binary new -6 1 NULL -67 833 63993 NULL 905071.0 -4314.7918 -1240033819 trial trial 2016-03-07 03:02:22 2016-03-07 n)گ new +2 1 NULL 100 32767 NULL -3651 -9.223372E18 9.223372036854776E18 NULL 2007-02-09 05:17:29.36875 NULL NULL NULL +3 1 NULL 100 -32768 NULL -3651 -9.223372E18 9.223372036854776E18 NULL 2007-02-09 05:17:29.36875 NULL NULL NULL +4 1 false 72 NULL -93222 30 -66475.56 -66475.561431 0.561431 1 1 6229-06-28 02:54:28.97011 5966-07-09 binary original +5 1 NULL -90 NULL 3289094 46114 9250341.0 9250340.75 9250340.75 junkyard junkyard 2002-05-10 05:29:48.99081 1815-05-06 binary original +6 2 true 400 44388 -100 953967041. 62.079153 718.78 1 verdict verdict timestamp date binary new +7 1 NULL -67 833 63993 NULL 905071.0 -4314.7918 -1240033819 trial trial 2016-03-07 03:02:22 2016-03-07 n)گ new PREHOOK: query: drop table part_change_various_various_char PREHOOK: type: DROPTABLE PREHOOK: Input: default@part_change_various_various_char @@ -1950,17 +1994,19 @@ POSTHOOK: Output: database:default POSTHOOK: Output: default@part_change_various_various_char_trunc PREHOOK: query: insert into table part_change_various_various_char_trunc partition(part=1) values(1, true, 200, 72909, 3244222, -99999999999, -29.0764, 470614135, 470614135, 'dynamic reptile ', 'dynamic reptile ', '0004-09-22 18:26:29.519542222', '2007-02-09', 'binary', 'original'), - (2, 0, 100, 483777, 14, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, ' baffling ', ' baffling ', '2007-02-09 05:17:29.368756876', '0004-09-22', 'binary', 'original'), - (3, false, 72, 3244222, -93222, 30.774, - 66475.561431, -66475.561431, 0.561431, '1', '1', '6229-06-28 02:54:28.970117179', '5966-07-09', 'binary', 'original'), - (4, 1, -90, 754072151, 3289094, 46114.284799488, 9250340.75, 9250340.75, 9250340.75, 'junkyard', 'junkyard', '2002-05-10 05:29:48.990818073', '1815-05-06', 'binary', 'original') + (2, 0, 100, 32767, -23372036854775, -3651.672121, -9223372036854775808.0, 9223372036854775807.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, 100, -32768, 23372036854775, -3651.672121, -9223372036854775809.0, 9223372036854775808.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, 72, 3244222, -93222, 30.774, - 66475.561431, -66475.561431, 0.561431, '1', '1', '6229-06-28 02:54:28.970117179', '5966-07-09', 'binary', 'original'), + (5, 1, -90, 754072151, 3289094, 46114.284799488, 9250340.75, 9250340.75, 9250340.75, 'junkyard', 'junkyard', '2002-05-10 05:29:48.990818073', '1815-05-06', 'binary', 'original') PREHOOK: type: QUERY PREHOOK: Input: default@values__tmp__table__31 PREHOOK: Output: default@part_change_various_various_char_trunc@part=1 POSTHOOK: query: insert into table part_change_various_various_char_trunc partition(part=1) values(1, true, 200, 72909, 3244222, -99999999999, -29.0764, 470614135, 470614135, 'dynamic reptile ', 'dynamic reptile ', '0004-09-22 18:26:29.519542222', '2007-02-09', 'binary', 'original'), - (2, 0, 100, 483777, 14, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, ' baffling ', ' baffling ', '2007-02-09 05:17:29.368756876', '0004-09-22', 'binary', 'original'), - (3, false, 72, 3244222, -93222, 30.774, - 66475.561431, -66475.561431, 0.561431, '1', '1', '6229-06-28 02:54:28.970117179', '5966-07-09', 'binary', 'original'), - (4, 1, -90, 754072151, 3289094, 46114.284799488, 9250340.75, 9250340.75, 9250340.75, 'junkyard', 'junkyard', '2002-05-10 05:29:48.990818073', '1815-05-06', 'binary', 'original') + (2, 0, 100, 32767, -23372036854775, -3651.672121, -9223372036854775808.0, 9223372036854775807.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, 100, -32768, 23372036854775, -3651.672121, -9223372036854775809.0, 9223372036854775808.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, 72, 3244222, -93222, 30.774, - 66475.561431, -66475.561431, 0.561431, '1', '1', '6229-06-28 02:54:28.970117179', '5966-07-09', 'binary', 'original'), + (5, 1, -90, 754072151, 3289094, 46114.284799488, 9250340.75, 9250340.75, 9250340.75, 'junkyard', 'junkyard', '2002-05-10 05:29:48.990818073', '1815-05-06', 'binary', 'original') POSTHOOK: type: QUERY POSTHOOK: Input: default@values__tmp__table__31 POSTHOOK: Output: default@part_change_various_various_char_trunc@part=1 @@ -1992,9 +2038,10 @@ POSTHOOK: Input: default@part_change_various_various_char_trunc@part=1 #### A masked pattern was here #### insert_num part c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 c12 c13 b 1 1 NULL NULL NULL 3244222 -99999999999 -29.0764 4.70614135E8 470614135.000000000000000000 dynamic reptile dynamic 0004-09-22 18:26:29.519542222 2007-02-09 binary original -2 1 NULL 100 NULL 14 -23866739993 -3651.672 46114.284799488 46114.284799488000000000 baffling baffli 2007-02-09 05:17:29.368756876 0004-09-22 binary original -3 1 false 72 NULL -93222 30 -66475.56 -66475.561431 0.561431000000000000 1 1 6229-06-28 02:54:28.970117179 5966-07-09 binary original -4 1 NULL -90 NULL 3289094 46114 9250341.0 9250340.75 9250340.750000000000000000 junkyard junkyard 2002-05-10 05:29:48.990818073 1815-05-06 binary original +2 1 NULL 100 32767 NULL -3651 -9.223372E18 9.223372036854776E18 NULL 2007-02-09 05:17:29.368756876 NULL NULL NULL +3 1 NULL 100 -32768 NULL -3651 -9.223372E18 9.223372036854776E18 NULL 2007-02-09 05:17:29.368756876 NULL NULL NULL +4 1 false 72 NULL -93222 30 -66475.56 -66475.561431 0.561431000000000000 1 1 6229-06-28 02:54:28.970117179 5966-07-09 binary original +5 1 NULL -90 NULL 3289094 46114 9250341.0 9250340.75 9250340.750000000000000000 junkyard junkyard 2002-05-10 05:29:48.990818073 1815-05-06 binary original PREHOOK: query: -- Table-Non-Cascade CHANGE COLUMNS ... alter table part_change_various_various_char_trunc replace columns (insert_num int, c1 CHAR(8), c2 CHAR(8), c3 CHAR(8), c4 CHAR(8), c5 CHAR(8), c6 CHAR(8), c7 CHAR(8), c8 CHAR(8), c9 CHAR(8), c10 CHAR(8), c11 CHAR(8), c12 CHAR(8), c13 CHAR(8), b STRING) PREHOOK: type: ALTERTABLE_REPLACECOLS @@ -2006,12 +2053,12 @@ POSTHOOK: type: ALTERTABLE_REPLACECOLS POSTHOOK: Input: default@part_change_various_various_char_trunc POSTHOOK: Output: default@part_change_various_various_char_trunc PREHOOK: query: insert into table part_change_various_various_char_trunc partition(part=2) - values (5, 'true', '400', '44388', -'100', '953967041.', '62.079153', '718.78', '1', 'verdict', 'verdict', 'timestamp', 'date', 'binary', 'new') + values (6, 'true', '400', '44388', -'100', '953967041.', '62.079153', '718.78', '1', 'verdict', 'verdict', 'timestamp', 'date', 'binary', 'new') PREHOOK: type: QUERY PREHOOK: Input: default@values__tmp__table__32 PREHOOK: Output: default@part_change_various_various_char_trunc@part=2 POSTHOOK: query: insert into table part_change_various_various_char_trunc partition(part=2) - values (5, 'true', '400', '44388', -'100', '953967041.', '62.079153', '718.78', '1', 'verdict', 'verdict', 'timestamp', 'date', 'binary', 'new') + values (6, 'true', '400', '44388', -'100', '953967041.', '62.079153', '718.78', '1', 'verdict', 'verdict', 'timestamp', 'date', 'binary', 'new') POSTHOOK: type: QUERY POSTHOOK: Input: default@values__tmp__table__32 POSTHOOK: Output: default@part_change_various_various_char_trunc@part=2 @@ -2032,12 +2079,12 @@ POSTHOOK: Lineage: part_change_various_various_char_trunc PARTITION(part=2).c9 E POSTHOOK: Lineage: part_change_various_various_char_trunc PARTITION(part=2).insert_num EXPRESSION [(values__tmp__table__32)values__tmp__table__32.FieldSchema(name:tmp_values_col1, type:string, comment:), ] _col0 _col1 _col2 _col3 _col4 _col5 _col6 _col7 _col8 _col9 _col10 _col11 _col12 _col13 _col14 PREHOOK: query: insert into table part_change_various_various_char_trunc partition(part=1) - values (6,-'false', '-67', '833', '63993', ' 1255178165.77663', '905070.974', '-4314.7918', -'1240033819', 'trial', 'trial', '2016-03-07 03:02:22.0', '2016-03-07', 'binary', 'new') + values (7,-'false', '-67', '833', '63993', ' 1255178165.77663', '905070.974', '-4314.7918', -'1240033819', 'trial', 'trial', '2016-03-07 03:02:22.0', '2016-03-07', 'binary', 'new') PREHOOK: type: QUERY PREHOOK: Input: default@values__tmp__table__33 PREHOOK: Output: default@part_change_various_various_char_trunc@part=1 POSTHOOK: query: insert into table part_change_various_various_char_trunc partition(part=1) - values (6,-'false', '-67', '833', '63993', ' 1255178165.77663', '905070.974', '-4314.7918', -'1240033819', 'trial', 'trial', '2016-03-07 03:02:22.0', '2016-03-07', 'binary', 'new') + values (7,-'false', '-67', '833', '63993', ' 1255178165.77663', '905070.974', '-4314.7918', -'1240033819', 'trial', 'trial', '2016-03-07 03:02:22.0', '2016-03-07', 'binary', 'new') POSTHOOK: type: QUERY POSTHOOK: Input: default@values__tmp__table__33 POSTHOOK: Output: default@part_change_various_various_char_trunc@part=1 @@ -2074,25 +2121,25 @@ STAGE PLANS: Map Operator Tree: TableScan alias: part_change_various_various_char_trunc - Statistics: Num rows: 6 Data size: 804 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 848 Basic stats: COMPLETE Column stats: NONE Select Operator expressions: insert_num (type: int), part (type: int), c1 (type: char(8)), c2 (type: char(8)), c3 (type: char(8)), c4 (type: char(8)), c5 (type: char(8)), c6 (type: char(8)), c7 (type: char(8)), c8 (type: char(8)), c9 (type: char(8)), c10 (type: char(8)), c11 (type: char(8)), c12 (type: char(8)), c13 (type: char(8)), b (type: string) outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6, _col7, _col8, _col9, _col10, _col11, _col12, _col13, _col14, _col15 - Statistics: Num rows: 6 Data size: 804 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 848 Basic stats: COMPLETE Column stats: NONE Reduce Output Operator key expressions: _col0 (type: int) sort order: + - Statistics: Num rows: 6 Data size: 804 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 848 Basic stats: COMPLETE Column stats: NONE value expressions: _col1 (type: int), _col2 (type: char(8)), _col3 (type: char(8)), _col4 (type: char(8)), _col5 (type: char(8)), _col6 (type: char(8)), _col7 (type: char(8)), _col8 (type: char(8)), _col9 (type: char(8)), _col10 (type: char(8)), _col11 (type: char(8)), _col12 (type: char(8)), _col13 (type: char(8)), _col14 (type: char(8)), _col15 (type: string) Execution mode: vectorized Reduce Operator Tree: Select Operator expressions: KEY.reducesinkkey0 (type: int), VALUE._col0 (type: int), VALUE._col1 (type: char(8)), VALUE._col2 (type: char(8)), VALUE._col3 (type: char(8)), VALUE._col4 (type: char(8)), VALUE._col5 (type: char(8)), VALUE._col6 (type: char(8)), VALUE._col7 (type: char(8)), VALUE._col8 (type: char(8)), VALUE._col9 (type: char(8)), VALUE._col10 (type: char(8)), VALUE._col11 (type: char(8)), VALUE._col12 (type: char(8)), VALUE._col13 (type: char(8)), VALUE._col14 (type: string) outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6, _col7, _col8, _col9, _col10, _col11, _col12, _col13, _col14, _col15 - Statistics: Num rows: 6 Data size: 804 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 848 Basic stats: COMPLETE Column stats: NONE File Output Operator compressed: false - Statistics: Num rows: 6 Data size: 804 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 848 Basic stats: COMPLETE Column stats: NONE table: input format: org.apache.hadoop.mapred.SequenceFileInputFormat output format: org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat @@ -2118,11 +2165,12 @@ POSTHOOK: Input: default@part_change_various_various_char_trunc@part=2 #### A masked pattern was here #### insert_num part c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 c12 c13 b 1 1 NULL NULL NULL 3244222 -9999999 -29.0764 4.706141 47061413 dynamic dynamic 0004-09- 2007-02- binary original -2 1 NULL 100 NULL 14 -2386673 -3651.67 46114.28 46114.28 baffli baffli 2007-02- 0004-09- binary original -3 1 false 72 NULL -93222 30 -66475.5 -66475.5 0.561431 1 1 6229-06- 5966-07- binary original -4 1 NULL -90 NULL 3289094 46114 9250341. 9250340. 9250340. junkyard junkyard 2002-05- 1815-05- binary original -5 2 true 400 44388 -100 95396704 62.07915 718.78 1 verdict verdict timestam date binary new -6 1 NULL -67 833 63993 NULL 905070.9 -4314.79 -1240033 trial trial NULL NULL n)گ new +2 1 NULL 100 32767 NULL -3651 -9.22337 9.223372 NULL 2007-02- NULL NULL NULL +3 1 NULL 100 -32768 NULL -3651 -9.22337 9.223372 NULL 2007-02- NULL NULL NULL +4 1 false 72 NULL -93222 30 -66475.5 -66475.5 0.561431 1 1 6229-06- 5966-07- binary original +5 1 NULL -90 NULL 3289094 46114 9250341. 9250340. 9250340. junkyard junkyard 2002-05- 1815-05- binary original +6 2 true 400 44388 -100 95396704 62.07915 718.78 1 verdict verdict timestam date binary new +7 1 NULL -67 833 63993 NULL 905070.9 -4314.79 -1240033 trial trial NULL NULL n)گ new PREHOOK: query: drop table part_change_various_various_char_trunc PREHOOK: type: DROPTABLE PREHOOK: Input: default@part_change_various_various_char_trunc @@ -2147,17 +2195,19 @@ POSTHOOK: Output: database:default POSTHOOK: Output: default@part_change_various_various_varchar PREHOOK: query: insert into table part_change_various_various_varchar partition(part=1) values(1, true, 200, 72909, 3244222, -99999999999, -29.0764, 470614135, 470614135, 'dynamic reptile ', 'dynamic reptile ', '0004-09-22 18:26:29.519542222', '2007-02-09', 'binary', 'original'), - (2, 0, 100, 483777, 14, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, ' baffling ', ' baffling ', '2007-02-09 05:17:29.368756876', '0004-09-22', 'binary', 'original'), - (3, false, 72, 3244222, -93222, 30.774, - 66475.561431, -66475.561431, 0.561431, '1', '1', '6229-06-28 02:54:28.970117179', '5966-07-09', 'binary', 'original'), - (4, 1, -90, 754072151, 3289094, 46114.284799488, 9250340.75, 9250340.75, 9250340.75, 'junkyard', 'junkyard', '2002-05-10 05:29:48.990818073', '1815-05-06', 'binary', 'original') + (2, 0, 100, 32767, -23372036854775, -9223372036854775808.0, -9223372036854775808.0, 9223372036854775807.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, 100, -32768, 23372036854775, -9223372036854775809.0, -9223372036854775809.0, 9223372036854775808.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, 72, 3244222, -93222, 30.774, - 66475.561431, -66475.561431, 0.561431, '1', '1', '6229-06-28 02:54:28.970117179', '5966-07-09', 'binary', 'original'), + (5, 1, -90, 754072151, 3289094, 46114.284799488, 9250340.75, 9250340.75, 9250340.75, 'junkyard', 'junkyard', '2002-05-10 05:29:48.990818073', '1815-05-06', 'binary', 'original') PREHOOK: type: QUERY PREHOOK: Input: default@values__tmp__table__34 PREHOOK: Output: default@part_change_various_various_varchar@part=1 POSTHOOK: query: insert into table part_change_various_various_varchar partition(part=1) values(1, true, 200, 72909, 3244222, -99999999999, -29.0764, 470614135, 470614135, 'dynamic reptile ', 'dynamic reptile ', '0004-09-22 18:26:29.519542222', '2007-02-09', 'binary', 'original'), - (2, 0, 100, 483777, 14, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, ' baffling ', ' baffling ', '2007-02-09 05:17:29.368756876', '0004-09-22', 'binary', 'original'), - (3, false, 72, 3244222, -93222, 30.774, - 66475.561431, -66475.561431, 0.561431, '1', '1', '6229-06-28 02:54:28.970117179', '5966-07-09', 'binary', 'original'), - (4, 1, -90, 754072151, 3289094, 46114.284799488, 9250340.75, 9250340.75, 9250340.75, 'junkyard', 'junkyard', '2002-05-10 05:29:48.990818073', '1815-05-06', 'binary', 'original') + (2, 0, 100, 32767, -23372036854775, -9223372036854775808.0, -9223372036854775808.0, 9223372036854775807.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, 100, -32768, 23372036854775, -9223372036854775809.0, -9223372036854775809.0, 9223372036854775808.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, 72, 3244222, -93222, 30.774, - 66475.561431, -66475.561431, 0.561431, '1', '1', '6229-06-28 02:54:28.970117179', '5966-07-09', 'binary', 'original'), + (5, 1, -90, 754072151, 3289094, 46114.284799488, 9250340.75, 9250340.75, 9250340.75, 'junkyard', 'junkyard', '2002-05-10 05:29:48.990818073', '1815-05-06', 'binary', 'original') POSTHOOK: type: QUERY POSTHOOK: Input: default@values__tmp__table__34 POSTHOOK: Output: default@part_change_various_various_varchar@part=1 @@ -2189,9 +2239,10 @@ POSTHOOK: Input: default@part_change_various_various_varchar@part=1 #### A masked pattern was here #### insert_num part c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 c12 c13 b 1 1 NULL NULL NULL 3244222 -99999999999 -29.0764 4.70614135E8 470614135.000000000000000000 dynamic reptile dynamic reptile 0004-09-22 18:26:29.519542222 2007-02-09 binary original -2 1 NULL 100 NULL 14 -23866739993 -3651.672 46114.284799488 46114.284799488000000000 baffling baffling 2007-02-09 05:17:29.368756876 0004-09-22 binary original -3 1 false 72 NULL -93222 30 -66475.56 -66475.561431 0.561431000000000000 1 1 6229-06-28 02:54:28.970117179 5966-07-09 binary original -4 1 NULL -90 NULL 3289094 46114 9250341.0 9250340.75 9250340.750000000000000000 junkyard junkyard 2002-05-10 05:29:48.990818073 1815-05-06 binary original +2 1 NULL 100 32767 NULL -9223372036854775808 -9.223372E18 9.223372036854776E18 NULL 2007-02-09 05:17:29.368756876 NULL NULL NULL +3 1 NULL 100 -32768 NULL NULL -9.223372E18 9.223372036854776E18 NULL 2007-02-09 05:17:29.368756876 NULL NULL NULL +4 1 false 72 NULL -93222 30 -66475.56 -66475.561431 0.561431000000000000 1 1 6229-06-28 02:54:28.970117179 5966-07-09 binary original +5 1 NULL -90 NULL 3289094 46114 9250341.0 9250340.75 9250340.750000000000000000 junkyard junkyard 2002-05-10 05:29:48.990818073 1815-05-06 binary original PREHOOK: query: -- Table-Non-Cascade CHANGE COLUMNS ... alter table part_change_various_various_varchar replace columns (insert_num int, c1 VARCHAR(25), c2 VARCHAR(25), c3 VARCHAR(25), c4 VARCHAR(25), c5 VARCHAR(25), c6 VARCHAR(25), c7 VARCHAR(25), c8 VARCHAR(25), c9 VARCHAR(25), c10 VARCHAR(25), c11 VARCHAR(25), c12 VARCHAR(25), c13 VARCHAR(25), b STRING) PREHOOK: type: ALTERTABLE_REPLACECOLS @@ -2203,12 +2254,12 @@ POSTHOOK: type: ALTERTABLE_REPLACECOLS POSTHOOK: Input: default@part_change_various_various_varchar POSTHOOK: Output: default@part_change_various_various_varchar PREHOOK: query: insert into table part_change_various_various_varchar partition(part=2) - values (5, 'true', '400', '44388', -'100', '953967041.', '62.079153', '718.78', '1', 'verdict', 'verdict', 'timestamp', 'date', 'binary', 'new') + values (6, 'true', '400', '44388', -'100', '953967041.', '62.079153', '718.78', '1', 'verdict', 'verdict', 'timestamp', 'date', 'binary', 'new') PREHOOK: type: QUERY PREHOOK: Input: default@values__tmp__table__35 PREHOOK: Output: default@part_change_various_various_varchar@part=2 POSTHOOK: query: insert into table part_change_various_various_varchar partition(part=2) - values (5, 'true', '400', '44388', -'100', '953967041.', '62.079153', '718.78', '1', 'verdict', 'verdict', 'timestamp', 'date', 'binary', 'new') + values (6, 'true', '400', '44388', -'100', '953967041.', '62.079153', '718.78', '1', 'verdict', 'verdict', 'timestamp', 'date', 'binary', 'new') POSTHOOK: type: QUERY POSTHOOK: Input: default@values__tmp__table__35 POSTHOOK: Output: default@part_change_various_various_varchar@part=2 @@ -2229,12 +2280,12 @@ POSTHOOK: Lineage: part_change_various_various_varchar PARTITION(part=2).c9 EXPR POSTHOOK: Lineage: part_change_various_various_varchar PARTITION(part=2).insert_num EXPRESSION [(values__tmp__table__35)values__tmp__table__35.FieldSchema(name:tmp_values_col1, type:string, comment:), ] _col0 _col1 _col2 _col3 _col4 _col5 _col6 _col7 _col8 _col9 _col10 _col11 _col12 _col13 _col14 PREHOOK: query: insert into table part_change_various_various_varchar partition(part=1) - values (6,-'false', '-67', '833', '63993', ' 1255178165.77663', '905070.974', '-4314.7918', -'1240033819', 'trial', 'trial', '2016-03-07 03:02:22.0', '2016-03-07', 'binary', 'new') + values (7,-'false', '-67', '833', '63993', ' 1255178165.77663', '905070.974', '-4314.7918', -'1240033819', 'trial', 'trial', '2016-03-07 03:02:22.0', '2016-03-07', 'binary', 'new') PREHOOK: type: QUERY PREHOOK: Input: default@values__tmp__table__36 PREHOOK: Output: default@part_change_various_various_varchar@part=1 POSTHOOK: query: insert into table part_change_various_various_varchar partition(part=1) - values (6,-'false', '-67', '833', '63993', ' 1255178165.77663', '905070.974', '-4314.7918', -'1240033819', 'trial', 'trial', '2016-03-07 03:02:22.0', '2016-03-07', 'binary', 'new') + values (7,-'false', '-67', '833', '63993', ' 1255178165.77663', '905070.974', '-4314.7918', -'1240033819', 'trial', 'trial', '2016-03-07 03:02:22.0', '2016-03-07', 'binary', 'new') POSTHOOK: type: QUERY POSTHOOK: Input: default@values__tmp__table__36 POSTHOOK: Output: default@part_change_various_various_varchar@part=1 @@ -2271,25 +2322,25 @@ STAGE PLANS: Map Operator Tree: TableScan alias: part_change_various_various_varchar - Statistics: Num rows: 6 Data size: 914 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 1003 Basic stats: COMPLETE Column stats: NONE Select Operator expressions: insert_num (type: int), part (type: int), c1 (type: varchar(25)), c2 (type: varchar(25)), c3 (type: varchar(25)), c4 (type: varchar(25)), c5 (type: varchar(25)), c6 (type: varchar(25)), c7 (type: varchar(25)), c8 (type: varchar(25)), c9 (type: varchar(25)), c10 (type: varchar(25)), c11 (type: varchar(25)), c12 (type: varchar(25)), c13 (type: varchar(25)), b (type: string) outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6, _col7, _col8, _col9, _col10, _col11, _col12, _col13, _col14, _col15 - Statistics: Num rows: 6 Data size: 914 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 1003 Basic stats: COMPLETE Column stats: NONE Reduce Output Operator key expressions: _col0 (type: int) sort order: + - Statistics: Num rows: 6 Data size: 914 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 1003 Basic stats: COMPLETE Column stats: NONE value expressions: _col1 (type: int), _col2 (type: varchar(25)), _col3 (type: varchar(25)), _col4 (type: varchar(25)), _col5 (type: varchar(25)), _col6 (type: varchar(25)), _col7 (type: varchar(25)), _col8 (type: varchar(25)), _col9 (type: varchar(25)), _col10 (type: varchar(25)), _col11 (type: varchar(25)), _col12 (type: varchar(25)), _col13 (type: varchar(25)), _col14 (type: varchar(25)), _col15 (type: string) Execution mode: vectorized Reduce Operator Tree: Select Operator expressions: KEY.reducesinkkey0 (type: int), VALUE._col0 (type: int), VALUE._col1 (type: varchar(25)), VALUE._col2 (type: varchar(25)), VALUE._col3 (type: varchar(25)), VALUE._col4 (type: varchar(25)), VALUE._col5 (type: varchar(25)), VALUE._col6 (type: varchar(25)), VALUE._col7 (type: varchar(25)), VALUE._col8 (type: varchar(25)), VALUE._col9 (type: varchar(25)), VALUE._col10 (type: varchar(25)), VALUE._col11 (type: varchar(25)), VALUE._col12 (type: varchar(25)), VALUE._col13 (type: varchar(25)), VALUE._col14 (type: string) outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6, _col7, _col8, _col9, _col10, _col11, _col12, _col13, _col14, _col15 - Statistics: Num rows: 6 Data size: 914 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 1003 Basic stats: COMPLETE Column stats: NONE File Output Operator compressed: false - Statistics: Num rows: 6 Data size: 914 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 1003 Basic stats: COMPLETE Column stats: NONE table: input format: org.apache.hadoop.mapred.SequenceFileInputFormat output format: org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat @@ -2315,11 +2366,12 @@ POSTHOOK: Input: default@part_change_various_various_varchar@part=2 #### A masked pattern was here #### insert_num part c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 c12 c13 b 1 1 NULL NULL NULL 3244222 -99999999999 -29.0764 4.70614135E8 470614135 dynamic reptile dynamic reptile 0004-09-22 18:26:29.51954 2007-02-09 binary original -2 1 NULL 100 NULL 14 -23866739993 -3651.672 46114.284799488 46114.284799488 baffling baffling 2007-02-09 05:17:29.36875 0004-09-22 binary original -3 1 false 72 NULL -93222 30 -66475.56 -66475.561431 0.561431 1 1 6229-06-28 02:54:28.97011 5966-07-09 binary original -4 1 NULL -90 NULL 3289094 46114 9250341.0 9250340.75 9250340.75 junkyard junkyard 2002-05-10 05:29:48.99081 1815-05-06 binary original -5 2 true 400 44388 -100 953967041. 62.079153 718.78 1 verdict verdict timestamp date binary new -6 1 NULL -67 833 63993 NULL 905071.0 -4314.7918 -1240033819 trial trial 2016-03-07 03:02:22 2016-03-07 n)گ new +2 1 NULL 100 32767 NULL -9223372036854775808 -9.223372E18 9.223372036854776E18 NULL 2007-02-09 05:17:29.36875 NULL NULL NULL +3 1 NULL 100 -32768 NULL NULL -9.223372E18 9.223372036854776E18 NULL 2007-02-09 05:17:29.36875 NULL NULL NULL +4 1 false 72 NULL -93222 30 -66475.56 -66475.561431 0.561431 1 1 6229-06-28 02:54:28.97011 5966-07-09 binary original +5 1 NULL -90 NULL 3289094 46114 9250341.0 9250340.75 9250340.75 junkyard junkyard 2002-05-10 05:29:48.99081 1815-05-06 binary original +6 2 true 400 44388 -100 953967041. 62.079153 718.78 1 verdict verdict timestamp date binary new +7 1 NULL -67 833 63993 NULL 905071.0 -4314.7918 -1240033819 trial trial 2016-03-07 03:02:22 2016-03-07 n)گ new PREHOOK: query: drop table part_change_various_various_varchar PREHOOK: type: DROPTABLE PREHOOK: Input: default@part_change_various_various_varchar @@ -2344,7 +2396,8 @@ POSTHOOK: Output: database:default POSTHOOK: Output: default@part_change_various_various_varchar_trunc PREHOOK: query: insert into table part_change_various_various_varchar_trunc partition(part=1) values(1, true, 200, 72909, 3244222, -99999999999, -29.0764, 470614135, 470614135, 'dynamic reptile ', 'dynamic reptile ', '0004-09-22 18:26:29.519542222', '2007-02-09', 'binary', 'original'), - (2, 0, 100, 483777, 14, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, ' baffling ', ' baffling ', '2007-02-09 05:17:29.368756876', '0004-09-22', 'binary', 'original'), + (2, 0, 100, 32767, -23372036854775, -9223372036854775808.0, -9223372036854775808.0, 9223372036854775807.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, 100, -32768, 23372036854775, -9223372036854775809.0, -9223372036854775809.0, 9223372036854775808.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), (3, false, 72, 3244222, -93222, 30.774, - 66475.561431, -66475.561431, 0.561431, '1', '1', '6229-06-28 02:54:28.970117179', '5966-07-09', 'binary', 'original'), (4, 1, -90, 754072151, 3289094, 46114.284799488, 9250340.75, 9250340.75, 9250340.75, 'junkyard', 'junkyard', '2002-05-10 05:29:48.990818073', '1815-05-06', 'binary', 'original') PREHOOK: type: QUERY @@ -2352,7 +2405,8 @@ PREHOOK: Input: default@values__tmp__table__37 PREHOOK: Output: default@part_change_various_various_varchar_trunc@part=1 POSTHOOK: query: insert into table part_change_various_various_varchar_trunc partition(part=1) values(1, true, 200, 72909, 3244222, -99999999999, -29.0764, 470614135, 470614135, 'dynamic reptile ', 'dynamic reptile ', '0004-09-22 18:26:29.519542222', '2007-02-09', 'binary', 'original'), - (2, 0, 100, 483777, 14, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, ' baffling ', ' baffling ', '2007-02-09 05:17:29.368756876', '0004-09-22', 'binary', 'original'), + (2, 0, 100, 32767, -23372036854775, -9223372036854775808.0, -9223372036854775808.0, 9223372036854775807.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, 100, -32768, 23372036854775, -9223372036854775809.0, -9223372036854775809.0, 9223372036854775808.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), (3, false, 72, 3244222, -93222, 30.774, - 66475.561431, -66475.561431, 0.561431, '1', '1', '6229-06-28 02:54:28.970117179', '5966-07-09', 'binary', 'original'), (4, 1, -90, 754072151, 3289094, 46114.284799488, 9250340.75, 9250340.75, 9250340.75, 'junkyard', 'junkyard', '2002-05-10 05:29:48.990818073', '1815-05-06', 'binary', 'original') POSTHOOK: type: QUERY @@ -2386,7 +2440,8 @@ POSTHOOK: Input: default@part_change_various_various_varchar_trunc@part=1 #### A masked pattern was here #### insert_num part c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 c12 c13 b 1 1 NULL NULL NULL 3244222 -99999999999 -29.0764 4.70614135E8 470614135.000000000000000000 dynamic reptile dynamic reptile 0004-09-22 18:26:29.519542222 2007-02-09 binary original -2 1 NULL 100 NULL 14 -23866739993 -3651.672 46114.284799488 46114.284799488000000000 baffling baffling 2007-02-09 05:17:29.368756876 0004-09-22 binary original +2 1 NULL 100 32767 NULL -9223372036854775808 -9.223372E18 9.223372036854776E18 NULL 2007-02-09 05:17:29.368756876 NULL NULL NULL +3 1 NULL 100 -32768 NULL NULL -9.223372E18 9.223372036854776E18 NULL 2007-02-09 05:17:29.368756876 NULL NULL NULL 3 1 false 72 NULL -93222 30 -66475.56 -66475.561431 0.561431000000000000 1 1 6229-06-28 02:54:28.970117179 5966-07-09 binary original 4 1 NULL -90 NULL 3289094 46114 9250341.0 9250340.75 9250340.750000000000000000 junkyard junkyard 2002-05-10 05:29:48.990818073 1815-05-06 binary original PREHOOK: query: -- Table-Non-Cascade CHANGE COLUMNS ... @@ -2468,25 +2523,25 @@ STAGE PLANS: Map Operator Tree: TableScan alias: part_change_various_various_varchar_trunc - Statistics: Num rows: 6 Data size: 879 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 968 Basic stats: COMPLETE Column stats: NONE Select Operator expressions: insert_num (type: int), part (type: int), c1 (type: varchar(8)), c2 (type: varchar(8)), c3 (type: varchar(8)), c4 (type: varchar(8)), c5 (type: varchar(8)), c6 (type: varchar(8)), c7 (type: varchar(8)), c8 (type: varchar(8)), c9 (type: varchar(8)), c10 (type: varchar(8)), c11 (type: varchar(8)), c12 (type: varchar(8)), c13 (type: varchar(8)), b (type: string) outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6, _col7, _col8, _col9, _col10, _col11, _col12, _col13, _col14, _col15 - Statistics: Num rows: 6 Data size: 879 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 968 Basic stats: COMPLETE Column stats: NONE Reduce Output Operator key expressions: _col0 (type: int) sort order: + - Statistics: Num rows: 6 Data size: 879 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 968 Basic stats: COMPLETE Column stats: NONE value expressions: _col1 (type: int), _col2 (type: varchar(8)), _col3 (type: varchar(8)), _col4 (type: varchar(8)), _col5 (type: varchar(8)), _col6 (type: varchar(8)), _col7 (type: varchar(8)), _col8 (type: varchar(8)), _col9 (type: varchar(8)), _col10 (type: varchar(8)), _col11 (type: varchar(8)), _col12 (type: varchar(8)), _col13 (type: varchar(8)), _col14 (type: varchar(8)), _col15 (type: string) Execution mode: vectorized Reduce Operator Tree: Select Operator expressions: KEY.reducesinkkey0 (type: int), VALUE._col0 (type: int), VALUE._col1 (type: varchar(8)), VALUE._col2 (type: varchar(8)), VALUE._col3 (type: varchar(8)), VALUE._col4 (type: varchar(8)), VALUE._col5 (type: varchar(8)), VALUE._col6 (type: varchar(8)), VALUE._col7 (type: varchar(8)), VALUE._col8 (type: varchar(8)), VALUE._col9 (type: varchar(8)), VALUE._col10 (type: varchar(8)), VALUE._col11 (type: varchar(8)), VALUE._col12 (type: varchar(8)), VALUE._col13 (type: varchar(8)), VALUE._col14 (type: string) outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6, _col7, _col8, _col9, _col10, _col11, _col12, _col13, _col14, _col15 - Statistics: Num rows: 6 Data size: 879 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 968 Basic stats: COMPLETE Column stats: NONE File Output Operator compressed: false - Statistics: Num rows: 6 Data size: 879 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 968 Basic stats: COMPLETE Column stats: NONE table: input format: org.apache.hadoop.mapred.SequenceFileInputFormat output format: org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat @@ -2512,7 +2567,8 @@ POSTHOOK: Input: default@part_change_various_various_varchar_trunc@part=2 #### A masked pattern was here #### insert_num part c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 c12 c13 b 1 1 NULL NULL NULL 3244222 -9999999 -29.0764 4.706141 47061413 dynamic dynamic 0004-09- 2007-02- binary original -2 1 NULL 100 NULL 14 -2386673 -3651.67 46114.28 46114.28 baffli baffli 2007-02- 0004-09- binary original +2 1 NULL 100 32767 NULL -9223372 -9.22337 9.223372 NULL 2007-02- NULL NULL NULL +3 1 NULL 100 -32768 NULL NULL -9.22337 9.223372 NULL 2007-02- NULL NULL NULL 3 1 false 72 NULL -93222 30 -66475.5 -66475.5 0.561431 1 1 6229-06- 5966-07- binary original 4 1 NULL -90 NULL 3289094 46114 9250341. 9250340. 9250340. junkyard junkyard 2002-05- 1815-05- binary original 5 2 true 400 44388 -100 95396704 62.07915 718.78 1 verdict verdict timestam date binary new @@ -2541,17 +2597,19 @@ POSTHOOK: Output: database:default POSTHOOK: Output: default@part_change_various_various_timestamp PREHOOK: query: insert into table part_change_various_various_timestamp partition(part=1) values(1, true, 200, 72909, 3244222, -99999999999, -29.0764, 470614135, 470614135, '0004-09-22 18:26:29.519542222', '0004-09-22 18:26:29.519542222', '0004-09-22 18:26:29.519542222', '2007-02-09', 'original'), - (2, 0, 100, 483777, 14, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, '2007-02-09 05:17:29.368756876', '2007-02-09 05:17:29.368756876', '2007-02-09 05:17:29.368756876', '0004-09-22', 'original'), - (3, false, 72, 3244222, -93222, 30.774, - 66475.561431, -66475.561431, 0.561431, '6229-06-28 02:54:28.970117179', '6229-06-28 02:54:28.970117179', '6229-06-28 02:54:28.970117179', '5966-07-09', 'original'), - (4, 1, -90, 754072151, 3289094, 46114.284799488, 9250340.75, 9250340.75, 9250340.75, '2002-05-10 05:29:48.990818073', '2002-05-10 05:29:48.990818073', '2002-05-10 05:29:48.990818073', '1815-05-06', 'original') + (2, 0, 100, 32767, -23372036854775, -9223372036854775808.0, -9223372036854775808.0, 9223372036854775807.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, 100, -32768, 23372036854775, -9223372036854775809.0, -9223372036854775809.0, 9223372036854775808.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, 72, 3244222, -93222, 30.774, - 66475.561431, -66475.561431, 0.561431, '6229-06-28 02:54:28.970117179', '6229-06-28 02:54:28.970117179', '6229-06-28 02:54:28.970117179', '5966-07-09', 'original'), + (5, 1, -90, 754072151, 3289094, 46114.284799488, 9250340.75, 9250340.75, 9250340.75, '2002-05-10 05:29:48.990818073', '2002-05-10 05:29:48.990818073', '2002-05-10 05:29:48.990818073', '1815-05-06', 'original') PREHOOK: type: QUERY PREHOOK: Input: default@values__tmp__table__40 PREHOOK: Output: default@part_change_various_various_timestamp@part=1 POSTHOOK: query: insert into table part_change_various_various_timestamp partition(part=1) values(1, true, 200, 72909, 3244222, -99999999999, -29.0764, 470614135, 470614135, '0004-09-22 18:26:29.519542222', '0004-09-22 18:26:29.519542222', '0004-09-22 18:26:29.519542222', '2007-02-09', 'original'), - (2, 0, 100, 483777, 14, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, '2007-02-09 05:17:29.368756876', '2007-02-09 05:17:29.368756876', '2007-02-09 05:17:29.368756876', '0004-09-22', 'original'), - (3, false, 72, 3244222, -93222, 30.774, - 66475.561431, -66475.561431, 0.561431, '6229-06-28 02:54:28.970117179', '6229-06-28 02:54:28.970117179', '6229-06-28 02:54:28.970117179', '5966-07-09', 'original'), - (4, 1, -90, 754072151, 3289094, 46114.284799488, 9250340.75, 9250340.75, 9250340.75, '2002-05-10 05:29:48.990818073', '2002-05-10 05:29:48.990818073', '2002-05-10 05:29:48.990818073', '1815-05-06', 'original') + (2, 0, 100, 32767, -23372036854775, -9223372036854775808.0, -9223372036854775808.0, 9223372036854775807.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, 100, -32768, 23372036854775, -9223372036854775809.0, -9223372036854775809.0, 9223372036854775808.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, 72, 3244222, -93222, 30.774, - 66475.561431, -66475.561431, 0.561431, '6229-06-28 02:54:28.970117179', '6229-06-28 02:54:28.970117179', '6229-06-28 02:54:28.970117179', '5966-07-09', 'original'), + (5, 1, -90, 754072151, 3289094, 46114.284799488, 9250340.75, 9250340.75, 9250340.75, '2002-05-10 05:29:48.990818073', '2002-05-10 05:29:48.990818073', '2002-05-10 05:29:48.990818073', '1815-05-06', 'original') POSTHOOK: type: QUERY POSTHOOK: Input: default@values__tmp__table__40 POSTHOOK: Output: default@part_change_various_various_timestamp@part=1 @@ -2582,9 +2640,10 @@ POSTHOOK: Input: default@part_change_various_various_timestamp@part=1 #### A masked pattern was here #### insert_num part c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 c12 b 1 1 NULL NULL NULL 3244222 -99999999999 -29.0764 4.70614135E8 470614135.000000000000000000 0004-09-22 18:26:29.519542222 0004-09-22 18:26:29.51954 0004-09-22 18:26:29.51954 2007-02-09 original -2 1 NULL 100 NULL 14 -23866739993 -3651.672 46114.284799488 46114.284799488000000000 2007-02-09 05:17:29.368756876 2007-02-09 05:17:29.36875 2007-02-09 05:17:29.36875 0004-09-22 original -3 1 false 72 NULL -93222 30 -66475.56 -66475.561431 0.561431000000000000 6229-06-28 02:54:28.970117179 6229-06-28 02:54:28.97011 6229-06-28 02:54:28.97011 5966-07-09 original -4 1 NULL -90 NULL 3289094 46114 9250341.0 9250340.75 9250340.750000000000000000 2002-05-10 05:29:48.990818073 2002-05-10 05:29:48.99081 2002-05-10 05:29:48.99081 1815-05-06 original +2 1 NULL 100 32767 NULL -9223372036854775808 -9.223372E18 9.223372036854776E18 NULL 2007-02-09 05:17:29.36875 NULL NULL +3 1 NULL 100 -32768 NULL NULL -9.223372E18 9.223372036854776E18 NULL 2007-02-09 05:17:29.36875 NULL NULL +4 1 false 72 NULL -93222 30 -66475.56 -66475.561431 0.561431000000000000 6229-06-28 02:54:28.970117179 6229-06-28 02:54:28.97011 6229-06-28 02:54:28.97011 5966-07-09 original +5 1 NULL -90 NULL 3289094 46114 9250341.0 9250340.75 9250340.750000000000000000 2002-05-10 05:29:48.990818073 2002-05-10 05:29:48.99081 2002-05-10 05:29:48.99081 1815-05-06 original PREHOOK: query: -- Table-Non-Cascade CHANGE COLUMNS ... alter table part_change_various_various_timestamp replace columns (insert_num int, c1 TIMESTAMP, c2 TIMESTAMP, c3 TIMESTAMP, c4 TIMESTAMP, c5 TIMESTAMP, c6 TIMESTAMP, c7 TIMESTAMP, c8 TIMESTAMP, c9 TIMESTAMP, c10 TIMESTAMP, c11 TIMESTAMP, c12 TIMESTAMP, b STRING) PREHOOK: type: ALTERTABLE_REPLACECOLS @@ -2596,12 +2655,12 @@ POSTHOOK: type: ALTERTABLE_REPLACECOLS POSTHOOK: Input: default@part_change_various_various_timestamp POSTHOOK: Output: default@part_change_various_various_timestamp PREHOOK: query: insert into table part_change_various_various_timestamp partition(part=2) - values (5, 'true', '400', '44388', -'100', '953967041.', '62.079153', '718.78', '1', 'timestamp', 'timestamp', 'timestamp', 'date', 'new') + values (6, 'true', '400', '44388', -'100', '953967041.', '62.079153', '718.78', '1', 'timestamp', 'timestamp', 'timestamp', 'date', 'new') PREHOOK: type: QUERY PREHOOK: Input: default@values__tmp__table__41 PREHOOK: Output: default@part_change_various_various_timestamp@part=2 POSTHOOK: query: insert into table part_change_various_various_timestamp partition(part=2) - values (5, 'true', '400', '44388', -'100', '953967041.', '62.079153', '718.78', '1', 'timestamp', 'timestamp', 'timestamp', 'date', 'new') + values (6, 'true', '400', '44388', -'100', '953967041.', '62.079153', '718.78', '1', 'timestamp', 'timestamp', 'timestamp', 'date', 'new') POSTHOOK: type: QUERY POSTHOOK: Input: default@values__tmp__table__41 POSTHOOK: Output: default@part_change_various_various_timestamp@part=2 @@ -2621,12 +2680,12 @@ POSTHOOK: Lineage: part_change_various_various_timestamp PARTITION(part=2).c9 EX POSTHOOK: Lineage: part_change_various_various_timestamp PARTITION(part=2).insert_num EXPRESSION [(values__tmp__table__41)values__tmp__table__41.FieldSchema(name:tmp_values_col1, type:string, comment:), ] _col0 _col1 _col2 _col3 _col4 _col5 _col6 _col7 _col8 _col9 _col10 _col11 _col12 _col13 PREHOOK: query: insert into table part_change_various_various_timestamp partition(part=1) - values (6,-'false', '-67', '833', '63993', ' 1255178165.77663', '905070.974', '-4314.7918', -'1240033819', '2016-03-07 03:02:22.0', '2016-03-07 03:02:22.0', '2016-03-07 03:02:22.0', '2016-03-07', 'new') + values (7,-'false', '-67', '833', '63993', ' 1255178165.77663', '905070.974', '-4314.7918', -'1240033819', '2016-03-07 03:02:22.0', '2016-03-07 03:02:22.0', '2016-03-07 03:02:22.0', '2016-03-07', 'new') PREHOOK: type: QUERY PREHOOK: Input: default@values__tmp__table__42 PREHOOK: Output: default@part_change_various_various_timestamp@part=1 POSTHOOK: query: insert into table part_change_various_various_timestamp partition(part=1) - values (6,-'false', '-67', '833', '63993', ' 1255178165.77663', '905070.974', '-4314.7918', -'1240033819', '2016-03-07 03:02:22.0', '2016-03-07 03:02:22.0', '2016-03-07 03:02:22.0', '2016-03-07', 'new') + values (7,-'false', '-67', '833', '63993', ' 1255178165.77663', '905070.974', '-4314.7918', -'1240033819', '2016-03-07 03:02:22.0', '2016-03-07 03:02:22.0', '2016-03-07 03:02:22.0', '2016-03-07', 'new') POSTHOOK: type: QUERY POSTHOOK: Input: default@values__tmp__table__42 POSTHOOK: Output: default@part_change_various_various_timestamp@part=1 @@ -2662,25 +2721,25 @@ STAGE PLANS: Map Operator Tree: TableScan alias: part_change_various_various_timestamp - Statistics: Num rows: 6 Data size: 848 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 871 Basic stats: COMPLETE Column stats: NONE Select Operator expressions: insert_num (type: int), part (type: int), c1 (type: timestamp), c2 (type: timestamp), c3 (type: timestamp), c4 (type: timestamp), c5 (type: timestamp), c6 (type: timestamp), c7 (type: timestamp), c8 (type: timestamp), c9 (type: timestamp), c10 (type: timestamp), c11 (type: timestamp), c12 (type: timestamp), b (type: string) outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6, _col7, _col8, _col9, _col10, _col11, _col12, _col13, _col14 - Statistics: Num rows: 6 Data size: 848 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 871 Basic stats: COMPLETE Column stats: NONE Reduce Output Operator key expressions: _col0 (type: int) sort order: + - Statistics: Num rows: 6 Data size: 848 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 871 Basic stats: COMPLETE Column stats: NONE value expressions: _col1 (type: int), _col2 (type: timestamp), _col3 (type: timestamp), _col4 (type: timestamp), _col5 (type: timestamp), _col6 (type: timestamp), _col7 (type: timestamp), _col8 (type: timestamp), _col9 (type: timestamp), _col10 (type: timestamp), _col11 (type: timestamp), _col12 (type: timestamp), _col13 (type: timestamp), _col14 (type: string) Execution mode: vectorized Reduce Operator Tree: Select Operator expressions: KEY.reducesinkkey0 (type: int), VALUE._col0 (type: int), VALUE._col1 (type: timestamp), VALUE._col2 (type: timestamp), VALUE._col3 (type: timestamp), VALUE._col4 (type: timestamp), VALUE._col5 (type: timestamp), VALUE._col6 (type: timestamp), VALUE._col7 (type: timestamp), VALUE._col8 (type: timestamp), VALUE._col9 (type: timestamp), VALUE._col10 (type: timestamp), VALUE._col11 (type: timestamp), VALUE._col12 (type: timestamp), VALUE._col13 (type: string) outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6, _col7, _col8, _col9, _col10, _col11, _col12, _col13, _col14 - Statistics: Num rows: 6 Data size: 848 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 871 Basic stats: COMPLETE Column stats: NONE File Output Operator compressed: false - Statistics: Num rows: 6 Data size: 848 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 871 Basic stats: COMPLETE Column stats: NONE table: input format: org.apache.hadoop.mapred.SequenceFileInputFormat output format: org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat @@ -2706,11 +2765,12 @@ POSTHOOK: Input: default@part_change_various_various_timestamp@part=2 #### A masked pattern was here #### insert_num part c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 c12 b 1 1 NULL NULL NULL 1969-12-31 16:54:04.222 1966-10-31 06:13:20.001 1969-12-31 15:59:30.923599244 1984-11-29 14:08:55 1984-11-29 14:08:55 0004-09-22 18:26:29.519542222 0004-09-22 18:26:29.51954 0004-09-22 18:26:29.51954 2007-02-09 00:00:00 original -2 1 NULL 1969-12-31 16:00:00.1 NULL 1969-12-31 16:00:00.014 1969-03-30 10:21:00.007 1969-12-31 14:59:08.32788086 1970-01-01 04:48:34.284799488 1970-01-01 04:48:34.284799488 2007-02-09 05:17:29.368756876 2007-02-09 05:17:29.36875 2007-02-09 05:17:29.36875 0004-09-22 00:00:00 original -3 1 1969-12-31 16:00:00 1969-12-31 16:00:00.072 NULL 1969-12-31 15:58:26.778 1969-12-31 16:00:00.03 1969-12-30 21:32:04.4375 1969-12-30 21:32:04.438569 1969-12-31 16:00:00.561431 6229-06-28 02:54:28.970117179 6229-06-28 02:54:28.97011 6229-06-28 02:54:28.97011 5966-07-09 00:00:00 original -4 1 NULL 1969-12-31 15:59:59.91 NULL 1969-12-31 16:54:49.094 1969-12-31 16:00:46.114 1970-04-17 17:32:21 1970-04-17 17:32:20.75 1970-04-17 17:32:20.75 2002-05-10 05:29:48.990818073 2002-05-10 05:29:48.99081 2002-05-10 05:29:48.99081 1815-05-06 00:00:00 original -5 2 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL new -6 1 NULL NULL NULL NULL NULL NULL NULL NULL 2016-03-07 03:02:22 2016-03-07 03:02:22 2016-03-07 03:02:22 NULL new +2 1 NULL 1969-12-31 16:00:00.1 1969-12-31 16:00:32.767 NULL NULL NULL 1969-12-31 15:59:58.72647168 NULL NULL NULL 2007-02-09 05:17:29.36875 NULL NULL +3 1 NULL 1969-12-31 16:00:00.1 1969-12-31 15:59:27.232 NULL NULL NULL 1969-12-31 15:59:58.72647168 NULL NULL NULL 2007-02-09 05:17:29.36875 NULL NULL +4 1 1969-12-31 16:00:00 1969-12-31 16:00:00.072 NULL 1969-12-31 15:58:26.778 1969-12-31 16:00:00.03 1969-12-30 21:32:04.4375 1969-12-30 21:32:04.438569 1969-12-31 16:00:00.561431 6229-06-28 02:54:28.970117179 6229-06-28 02:54:28.97011 6229-06-28 02:54:28.97011 5966-07-09 00:00:00 original +5 1 NULL 1969-12-31 15:59:59.91 NULL 1969-12-31 16:54:49.094 1969-12-31 16:00:46.114 1970-04-17 17:32:21 1970-04-17 17:32:20.75 1970-04-17 17:32:20.75 2002-05-10 05:29:48.990818073 2002-05-10 05:29:48.99081 2002-05-10 05:29:48.99081 1815-05-06 00:00:00 original +6 2 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL new +7 1 NULL NULL NULL NULL NULL NULL NULL NULL 2016-03-07 03:02:22 2016-03-07 03:02:22 2016-03-07 03:02:22 NULL new PREHOOK: query: drop table part_change_various_various_timestamp PREHOOK: type: DROPTABLE PREHOOK: Input: default@part_change_various_various_timestamp @@ -2889,170 +2949,3 @@ POSTHOOK: query: drop table part_change_various_various_date POSTHOOK: type: DROPTABLE POSTHOOK: Input: default@part_change_various_various_date POSTHOOK: Output: default@part_change_various_various_date -PREHOOK: query: -- --- SUBSECTION: ALTER TABLE CHANGE COLUMNS for Various --> Various: (STRING, CHAR, VARCHAR) --> BINARY --- -CREATE TABLE part_change_various_various_binary(insert_num int, c1 STRING, c2 CHAR(25), c3 VARCHAR(25), b STRING) PARTITIONED BY(part INT) -PREHOOK: type: CREATETABLE -PREHOOK: Output: database:default -PREHOOK: Output: default@part_change_various_various_binary -POSTHOOK: query: -- --- SUBSECTION: ALTER TABLE CHANGE COLUMNS for Various --> Various: (STRING, CHAR, VARCHAR) --> BINARY --- -CREATE TABLE part_change_various_various_binary(insert_num int, c1 STRING, c2 CHAR(25), c3 VARCHAR(25), b STRING) PARTITIONED BY(part INT) -POSTHOOK: type: CREATETABLE -POSTHOOK: Output: database:default -POSTHOOK: Output: default@part_change_various_various_binary -PREHOOK: query: insert into table part_change_various_various_binary partition(part=1) - values(1, 'binary', 'binary', 'binary', 'original'), - (2, 'binary', 'binary', 'binary', 'original'), - (3, 'binary', 'binary', 'binary', 'original'), - (4, 'binary', 'binary', 'binary', 'original') -PREHOOK: type: QUERY -PREHOOK: Input: default@values__tmp__table__46 -PREHOOK: Output: default@part_change_various_various_binary@part=1 -POSTHOOK: query: insert into table part_change_various_various_binary partition(part=1) - values(1, 'binary', 'binary', 'binary', 'original'), - (2, 'binary', 'binary', 'binary', 'original'), - (3, 'binary', 'binary', 'binary', 'original'), - (4, 'binary', 'binary', 'binary', 'original') -POSTHOOK: type: QUERY -POSTHOOK: Input: default@values__tmp__table__46 -POSTHOOK: Output: default@part_change_various_various_binary@part=1 -POSTHOOK: Lineage: part_change_various_various_binary PARTITION(part=1).b SIMPLE [(values__tmp__table__46)values__tmp__table__46.FieldSchema(name:tmp_values_col5, type:string, comment:), ] -POSTHOOK: Lineage: part_change_various_various_binary PARTITION(part=1).c1 SIMPLE [(values__tmp__table__46)values__tmp__table__46.FieldSchema(name:tmp_values_col2, type:string, comment:), ] -POSTHOOK: Lineage: part_change_various_various_binary PARTITION(part=1).c2 EXPRESSION [(values__tmp__table__46)values__tmp__table__46.FieldSchema(name:tmp_values_col3, type:string, comment:), ] -POSTHOOK: Lineage: part_change_various_various_binary PARTITION(part=1).c3 EXPRESSION [(values__tmp__table__46)values__tmp__table__46.FieldSchema(name:tmp_values_col4, type:string, comment:), ] -POSTHOOK: Lineage: part_change_various_various_binary PARTITION(part=1).insert_num EXPRESSION [(values__tmp__table__46)values__tmp__table__46.FieldSchema(name:tmp_values_col1, type:string, comment:), ] -_col0 _col1 _col2 _col3 _col4 -PREHOOK: query: select insert_num,part,c1,c2,c3,b from part_change_various_various_binary order by insert_num -PREHOOK: type: QUERY -PREHOOK: Input: default@part_change_various_various_binary -PREHOOK: Input: default@part_change_various_various_binary@part=1 -#### A masked pattern was here #### -POSTHOOK: query: select insert_num,part,c1,c2,c3,b from part_change_various_various_binary order by insert_num -POSTHOOK: type: QUERY -POSTHOOK: Input: default@part_change_various_various_binary -POSTHOOK: Input: default@part_change_various_various_binary@part=1 -#### A masked pattern was here #### -insert_num part c1 c2 c3 b -1 1 binary binary binary original -2 1 binary binary binary original -3 1 binary binary binary original -4 1 binary binary binary original -PREHOOK: query: -- Table-Non-Cascade CHANGE COLUMNS ... -alter table part_change_various_various_binary replace columns (insert_num int, c1 BINARY, c2 BINARY, c3 BINARY, b STRING) -PREHOOK: type: ALTERTABLE_REPLACECOLS -PREHOOK: Input: default@part_change_various_various_binary -PREHOOK: Output: default@part_change_various_various_binary -POSTHOOK: query: -- Table-Non-Cascade CHANGE COLUMNS ... -alter table part_change_various_various_binary replace columns (insert_num int, c1 BINARY, c2 BINARY, c3 BINARY, b STRING) -POSTHOOK: type: ALTERTABLE_REPLACECOLS -POSTHOOK: Input: default@part_change_various_various_binary -POSTHOOK: Output: default@part_change_various_various_binary -PREHOOK: query: insert into table part_change_various_various_binary partition(part=2) - values (5, 'binary', 'binary', 'binary', 'new') -PREHOOK: type: QUERY -PREHOOK: Input: default@values__tmp__table__47 -PREHOOK: Output: default@part_change_various_various_binary@part=2 -POSTHOOK: query: insert into table part_change_various_various_binary partition(part=2) - values (5, 'binary', 'binary', 'binary', 'new') -POSTHOOK: type: QUERY -POSTHOOK: Input: default@values__tmp__table__47 -POSTHOOK: Output: default@part_change_various_various_binary@part=2 -POSTHOOK: Lineage: part_change_various_various_binary PARTITION(part=2).b SIMPLE [(values__tmp__table__47)values__tmp__table__47.FieldSchema(name:tmp_values_col5, type:string, comment:), ] -POSTHOOK: Lineage: part_change_various_various_binary PARTITION(part=2).c1 EXPRESSION [(values__tmp__table__47)values__tmp__table__47.FieldSchema(name:tmp_values_col2, type:string, comment:), ] -POSTHOOK: Lineage: part_change_various_various_binary PARTITION(part=2).c2 EXPRESSION [(values__tmp__table__47)values__tmp__table__47.FieldSchema(name:tmp_values_col3, type:string, comment:), ] -POSTHOOK: Lineage: part_change_various_various_binary PARTITION(part=2).c3 EXPRESSION [(values__tmp__table__47)values__tmp__table__47.FieldSchema(name:tmp_values_col4, type:string, comment:), ] -POSTHOOK: Lineage: part_change_various_various_binary PARTITION(part=2).insert_num EXPRESSION [(values__tmp__table__47)values__tmp__table__47.FieldSchema(name:tmp_values_col1, type:string, comment:), ] -_col0 _col1 _col2 _col3 _col4 -PREHOOK: query: insert into table part_change_various_various_binary partition(part=1) - values (6,-'binary', 'binary', 'binary', 'new') -PREHOOK: type: QUERY -PREHOOK: Input: default@values__tmp__table__48 -PREHOOK: Output: default@part_change_various_various_binary@part=1 -POSTHOOK: query: insert into table part_change_various_various_binary partition(part=1) - values (6,-'binary', 'binary', 'binary', 'new') -POSTHOOK: type: QUERY -POSTHOOK: Input: default@values__tmp__table__48 -POSTHOOK: Output: default@part_change_various_various_binary@part=1 -POSTHOOK: Lineage: part_change_various_various_binary PARTITION(part=1).b SIMPLE [(values__tmp__table__48)values__tmp__table__48.FieldSchema(name:tmp_values_col5, type:string, comment:), ] -POSTHOOK: Lineage: part_change_various_various_binary PARTITION(part=1).c1 EXPRESSION [(values__tmp__table__48)values__tmp__table__48.FieldSchema(name:tmp_values_col2, type:string, comment:), ] -POSTHOOK: Lineage: part_change_various_various_binary PARTITION(part=1).c2 EXPRESSION [(values__tmp__table__48)values__tmp__table__48.FieldSchema(name:tmp_values_col3, type:string, comment:), ] -POSTHOOK: Lineage: part_change_various_various_binary PARTITION(part=1).c3 EXPRESSION [(values__tmp__table__48)values__tmp__table__48.FieldSchema(name:tmp_values_col4, type:string, comment:), ] -POSTHOOK: Lineage: part_change_various_various_binary PARTITION(part=1).insert_num EXPRESSION [(values__tmp__table__48)values__tmp__table__48.FieldSchema(name:tmp_values_col1, type:string, comment:), ] -_col0 _col1 _col2 _col3 _col4 -PREHOOK: query: explain -select insert_num,part,c1,c2,c3,b from part_change_various_various_binary order by insert_num -PREHOOK: type: QUERY -POSTHOOK: query: explain -select insert_num,part,c1,c2,c3,b from part_change_various_various_binary order by insert_num -POSTHOOK: type: QUERY -Explain -STAGE DEPENDENCIES: - Stage-1 is a root stage - Stage-0 depends on stages: Stage-1 - -STAGE PLANS: - Stage: Stage-1 - Map Reduce - Map Operator Tree: - TableScan - alias: part_change_various_various_binary - Statistics: Num rows: 6 Data size: 192 Basic stats: COMPLETE Column stats: NONE - Select Operator - expressions: insert_num (type: int), part (type: int), c1 (type: binary), c2 (type: binary), c3 (type: binary), b (type: string) - outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5 - Statistics: Num rows: 6 Data size: 192 Basic stats: COMPLETE Column stats: NONE - Reduce Output Operator - key expressions: _col0 (type: int) - sort order: + - Statistics: Num rows: 6 Data size: 192 Basic stats: COMPLETE Column stats: NONE - value expressions: _col1 (type: int), _col2 (type: binary), _col3 (type: binary), _col4 (type: binary), _col5 (type: string) - Execution mode: vectorized - Reduce Operator Tree: - Select Operator - expressions: KEY.reducesinkkey0 (type: int), VALUE._col0 (type: int), VALUE._col1 (type: binary), VALUE._col2 (type: binary), VALUE._col3 (type: binary), VALUE._col4 (type: string) - outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5 - Statistics: Num rows: 6 Data size: 192 Basic stats: COMPLETE Column stats: NONE - File Output Operator - compressed: false - Statistics: Num rows: 6 Data size: 192 Basic stats: COMPLETE Column stats: NONE - table: - input format: org.apache.hadoop.mapred.SequenceFileInputFormat - output format: org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat - serde: org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe - - Stage: Stage-0 - Fetch Operator - limit: -1 - Processor Tree: - ListSink - -PREHOOK: query: select insert_num,part,c1,c2,c3,b from part_change_various_various_binary order by insert_num -PREHOOK: type: QUERY -PREHOOK: Input: default@part_change_various_various_binary -PREHOOK: Input: default@part_change_various_various_binary@part=1 -PREHOOK: Input: default@part_change_various_various_binary@part=2 -#### A masked pattern was here #### -POSTHOOK: query: select insert_num,part,c1,c2,c3,b from part_change_various_various_binary order by insert_num -POSTHOOK: type: QUERY -POSTHOOK: Input: default@part_change_various_various_binary -POSTHOOK: Input: default@part_change_various_various_binary@part=1 -POSTHOOK: Input: default@part_change_various_various_binary@part=2 -#### A masked pattern was here #### -insert_num part c1 c2 c3 b -1 1 binary binary binary original -2 1 binary binary binary original -3 1 binary binary binary original -4 1 binary binary binary original -5 2 binary binary binary new -6 1 LWJpbmFyeQ== YmluYXJ5 YmluYXJ5 new -PREHOOK: query: drop table part_change_various_various_binary -PREHOOK: type: DROPTABLE -PREHOOK: Input: default@part_change_various_various_binary -PREHOOK: Output: default@part_change_various_various_binary -POSTHOOK: query: drop table part_change_various_various_binary -POSTHOOK: type: DROPTABLE -POSTHOOK: Input: default@part_change_various_various_binary -POSTHOOK: Output: default@part_change_various_various_binary diff --git ql/src/test/results/clientpositive/schema_evol_text_vecrow_mapwork_part_all_primitive.q.out ql/src/test/results/clientpositive/schema_evol_text_vecrow_mapwork_part_all_primitive.q.out index 6f9b35c..e39f56c3 100644 --- ql/src/test/results/clientpositive/schema_evol_text_vecrow_mapwork_part_all_primitive.q.out +++ ql/src/test/results/clientpositive/schema_evol_text_vecrow_mapwork_part_all_primitive.q.out @@ -205,6 +205,7 @@ POSTHOOK: Input: default@part_change_various_various_boolean POSTHOOK: Output: default@part_change_various_various_boolean PREHOOK: query: -- -- SUBSECTION: ALTER TABLE CHANGE COLUMNS for Various --> Various: (BOOLEAN, SHORT, INT, LONG, FLOAT, DOUBLE, DECIMAL, STRING, CHAR, VARCHAR, TIMESTAMP) --> BYTE +-- -128 and a maximum value of 127 -- CREATE TABLE part_change_various_various_tinyint(insert_num int, c1 BOOLEAN, c2 SMALLINT, c3 INT, c4 BIGINT, c5 FLOAT, c6 DOUBLE, c7 DECIMAL(38,18), c8 STRING, c9 CHAR(25), c10 VARCHAR(25), c11 TIMESTAMP, b STRING) PARTITIONED BY(part INT) PREHOOK: type: CREATETABLE @@ -212,24 +213,27 @@ PREHOOK: Output: database:default PREHOOK: Output: default@part_change_various_various_tinyint POSTHOOK: query: -- -- SUBSECTION: ALTER TABLE CHANGE COLUMNS for Various --> Various: (BOOLEAN, SHORT, INT, LONG, FLOAT, DOUBLE, DECIMAL, STRING, CHAR, VARCHAR, TIMESTAMP) --> BYTE +-- -128 and a maximum value of 127 -- CREATE TABLE part_change_various_various_tinyint(insert_num int, c1 BOOLEAN, c2 SMALLINT, c3 INT, c4 BIGINT, c5 FLOAT, c6 DOUBLE, c7 DECIMAL(38,18), c8 STRING, c9 CHAR(25), c10 VARCHAR(25), c11 TIMESTAMP, b STRING) PARTITIONED BY(part INT) POSTHOOK: type: CREATETABLE POSTHOOK: Output: database:default POSTHOOK: Output: default@part_change_various_various_tinyint PREHOOK: query: insert into table part_change_various_various_tinyint partition(part=1) - values(1, true, 2000, 72909, 3244222, -29.0764, 470614135, 470614135, '-2999', '-2999', '-2999', '0004-09-22 18:26:29.519542222', 'original'), - (2, 0, 1000, 483777, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), - (3, false, 72909, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '1', '1', '1', '6229-06-28 02:54:28.970117179', 'original'), - (4, 1, 90000, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '5299', '5299', '5299', '2002-05-10 05:29:48.990818073', 'original') + values(1, true, 2000, 72909, 3244222, -29.0764, 470614135, 470614135, '129', '-128', '-2999', '0004-09-22 18:26:29.519542222', 'original'), + (2, 0, -128, -48, -20, -9223372036854775808.0, -9223372036854775808.0, 9223372036854775807.0, '128', '-99', '40', '2007-02-09 05:17:29.368756876', 'original'), + (3, -1, -129, 100, 499, -9223372036854775809.0, -9223372036854775809.0, 9223372036854775808.0, '128', '-99', '40', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, -72, -127, 127, 30.774, 127.561431, -106.561431, '90.284799488', '90.284799488', '1', '6229-06-28 02:54:28.970117179', 'original'), + (5, 1, -90, 75, -38, 109.284799488 ,-128.75, 98.75, '120.4', '33.333', '0.45', '2002-05-10 05:29:48.990818073', 'original') PREHOOK: type: QUERY PREHOOK: Input: default@values__tmp__table__4 PREHOOK: Output: default@part_change_various_various_tinyint@part=1 POSTHOOK: query: insert into table part_change_various_various_tinyint partition(part=1) - values(1, true, 2000, 72909, 3244222, -29.0764, 470614135, 470614135, '-2999', '-2999', '-2999', '0004-09-22 18:26:29.519542222', 'original'), - (2, 0, 1000, 483777, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), - (3, false, 72909, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '1', '1', '1', '6229-06-28 02:54:28.970117179', 'original'), - (4, 1, 90000, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '5299', '5299', '5299', '2002-05-10 05:29:48.990818073', 'original') + values(1, true, 2000, 72909, 3244222, -29.0764, 470614135, 470614135, '129', '-128', '-2999', '0004-09-22 18:26:29.519542222', 'original'), + (2, 0, -128, -48, -20, -9223372036854775808.0, -9223372036854775808.0, 9223372036854775807.0, '128', '-99', '40', '2007-02-09 05:17:29.368756876', 'original'), + (3, -1, -129, 100, 499, -9223372036854775809.0, -9223372036854775809.0, 9223372036854775808.0, '128', '-99', '40', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, -72, -127, 127, 30.774, 127.561431, -106.561431, '90.284799488', '90.284799488', '1', '6229-06-28 02:54:28.970117179', 'original'), + (5, 1, -90, 75, -38, 109.284799488 ,-128.75, 98.75, '120.4', '33.333', '0.45', '2002-05-10 05:29:48.990818073', 'original') POSTHOOK: type: QUERY POSTHOOK: Input: default@values__tmp__table__4 POSTHOOK: Output: default@part_change_various_various_tinyint@part=1 @@ -258,10 +262,11 @@ POSTHOOK: Input: default@part_change_various_various_tinyint POSTHOOK: Input: default@part_change_various_various_tinyint@part=1 #### A masked pattern was here #### insert_num part c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 b -1 1 true 2000 72909 3244222 -29.0764 4.70614135E8 470614135.000000000000000000 -2999 -2999 -2999 0004-09-22 18:26:29.519542222 original -2 1 true 1000 483777 -23866739993 -3651.672 46114.284799488 46114.284799488000000000 2007-02-09 05:17:29.368756876 original -3 1 false NULL 3244222 -93222 30.774 -66475.561431 -66475.561431000000000000 1 1 1 6229-06-28 02:54:28.970117179 original -4 1 true NULL 754072151 3289094 46114.285 9250340.75 9250340.750000000000000000 5299 5299 5299 2002-05-10 05:29:48.990818073 original +1 1 true 2000 72909 3244222 -29.0764 4.70614135E8 470614135.000000000000000000 129 -128 -2999 0004-09-22 18:26:29.519542222 original +2 1 true -128 -48 -20 -9.223372E18 -9.223372036854776E18 9223372036854775807.000000000000000000 128 -99 40 2007-02-09 05:17:29.368756876 original +3 1 true -129 100 499 -9.223372E18 -9.223372036854776E18 9223372036854775808.000000000000000000 128 -99 40 2007-02-09 05:17:29.368756876 original +4 1 false -72 -127 127 30.774 127.561431 -106.561431000000000000 90.284799488 90.284799488 1 6229-06-28 02:54:28.970117179 original +5 1 true -90 75 -38 109.2848 -128.75 98.750000000000000000 120.4 33.333 0.45 2002-05-10 05:29:48.990818073 original PREHOOK: query: -- Table-Non-Cascade CHANGE COLUMNS ... alter table part_change_various_various_tinyint replace columns (insert_num int, c1 TINYINT, c2 TINYINT, c3 TINYINT, c4 TINYINT, c5 TINYINT, c6 TINYINT, c7 TINYINT, c8 TINYINT, c9 TINYINT, c10 TINYINT, c11 TINYINT, b STRING) PREHOOK: type: ALTERTABLE_REPLACECOLS @@ -273,12 +278,12 @@ POSTHOOK: type: ALTERTABLE_REPLACECOLS POSTHOOK: Input: default@part_change_various_various_tinyint POSTHOOK: Output: default@part_change_various_various_tinyint PREHOOK: query: insert into table part_change_various_various_tinyint partition(part=2) - values (5, 23, 71, 127, 1, 131, -60, 68, -230, -182, 40, 93, 'new') + values (6, 23, 71, 127, 1, 131, -60, 68, -230, -182, 40, 93, 'new') PREHOOK: type: QUERY PREHOOK: Input: default@values__tmp__table__5 PREHOOK: Output: default@part_change_various_various_tinyint@part=2 POSTHOOK: query: insert into table part_change_various_various_tinyint partition(part=2) - values (5, 23, 71, 127, 1, 131, -60, 68, -230, -182, 40, 93, 'new') + values (6, 23, 71, 127, 1, 131, -60, 68, -230, -182, 40, 93, 'new') POSTHOOK: type: QUERY POSTHOOK: Input: default@values__tmp__table__5 POSTHOOK: Output: default@part_change_various_various_tinyint@part=2 @@ -297,12 +302,12 @@ POSTHOOK: Lineage: part_change_various_various_tinyint PARTITION(part=2).c9 EXPR POSTHOOK: Lineage: part_change_various_various_tinyint PARTITION(part=2).insert_num EXPRESSION [(values__tmp__table__5)values__tmp__table__5.FieldSchema(name:tmp_values_col1, type:string, comment:), ] _col0 _col1 _col2 _col3 _col4 _col5 _col6 _col7 _col8 _col9 _col10 _col11 _col12 PREHOOK: query: insert into table part_change_various_various_tinyint partition(part=1) - values (6, -248, 85, -126, -167, 91, 113, -28, -63, 0, 8, 237, 'new') + values (7, -120, 85, -126, -167, 91, 113, -28, -63, 0, 8, 237, 'new') PREHOOK: type: QUERY PREHOOK: Input: default@values__tmp__table__6 PREHOOK: Output: default@part_change_various_various_tinyint@part=1 POSTHOOK: query: insert into table part_change_various_various_tinyint partition(part=1) - values (6, -248, 85, -126, -167, 91, 113, -28, -63, 0, 8, 237, 'new') + values (7, -120, 85, -126, -167, 91, 113, -28, -63, 0, 8, 237, 'new') POSTHOOK: type: QUERY POSTHOOK: Input: default@values__tmp__table__6 POSTHOOK: Output: default@part_change_various_various_tinyint@part=1 @@ -337,25 +342,25 @@ STAGE PLANS: Map Operator Tree: TableScan alias: part_change_various_various_tinyint - Statistics: Num rows: 6 Data size: 583 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 740 Basic stats: COMPLETE Column stats: NONE Select Operator expressions: insert_num (type: int), part (type: int), c1 (type: tinyint), c2 (type: tinyint), c3 (type: tinyint), c4 (type: tinyint), c5 (type: tinyint), c6 (type: tinyint), c7 (type: tinyint), c8 (type: tinyint), c9 (type: tinyint), c10 (type: tinyint), c11 (type: tinyint), b (type: string) outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6, _col7, _col8, _col9, _col10, _col11, _col12, _col13 - Statistics: Num rows: 6 Data size: 583 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 740 Basic stats: COMPLETE Column stats: NONE Reduce Output Operator key expressions: _col0 (type: int) sort order: + - Statistics: Num rows: 6 Data size: 583 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 740 Basic stats: COMPLETE Column stats: NONE value expressions: _col1 (type: int), _col2 (type: tinyint), _col3 (type: tinyint), _col4 (type: tinyint), _col5 (type: tinyint), _col6 (type: tinyint), _col7 (type: tinyint), _col8 (type: tinyint), _col9 (type: tinyint), _col10 (type: tinyint), _col11 (type: tinyint), _col12 (type: tinyint), _col13 (type: string) Execution mode: vectorized Reduce Operator Tree: Select Operator expressions: KEY.reducesinkkey0 (type: int), VALUE._col0 (type: int), VALUE._col1 (type: tinyint), VALUE._col2 (type: tinyint), VALUE._col3 (type: tinyint), VALUE._col4 (type: tinyint), VALUE._col5 (type: tinyint), VALUE._col6 (type: tinyint), VALUE._col7 (type: tinyint), VALUE._col8 (type: tinyint), VALUE._col9 (type: tinyint), VALUE._col10 (type: tinyint), VALUE._col11 (type: tinyint), VALUE._col12 (type: string) outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6, _col7, _col8, _col9, _col10, _col11, _col12, _col13 - Statistics: Num rows: 6 Data size: 583 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 740 Basic stats: COMPLETE Column stats: NONE File Output Operator compressed: false - Statistics: Num rows: 6 Data size: 583 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 740 Basic stats: COMPLETE Column stats: NONE table: input format: org.apache.hadoop.mapred.SequenceFileInputFormat output format: org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat @@ -380,12 +385,13 @@ POSTHOOK: Input: default@part_change_various_various_tinyint@part=1 POSTHOOK: Input: default@part_change_various_various_tinyint@part=2 #### A masked pattern was here #### insert_num part c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 b -1 1 1 -48 -51 -66 -29 119 119 73 73 73 -43 original -2 1 1 -24 -63 -25 -67 34 34 NULL NULL NULL 105 original -3 1 0 NULL -66 -38 30 85 85 1 1 1 84 original -4 1 1 NULL 87 6 34 36 36 -77 -77 -77 60 original -5 2 23 71 127 1 NULL -60 68 NULL NULL 40 93 new -6 1 NULL 85 -126 NULL 91 113 -28 -63 0 8 NULL new +1 1 1 -48 -51 -66 -29 119 119 -127 -128 73 -43 original +2 1 1 -128 -48 -20 0 0 -1 -128 -99 40 105 original +3 1 1 127 100 -13 0 0 0 -128 -99 40 105 original +4 1 0 -72 -127 127 30 127 -106 90 NULL 1 84 original +5 1 1 -90 75 -38 109 -128 98 120 NULL NULL 60 original +6 2 23 71 127 1 NULL -60 68 NULL NULL 40 93 new +7 1 NULL 85 -126 NULL 91 113 -28 -63 0 8 NULL new PREHOOK: query: drop table part_change_various_various_tinyint PREHOOK: type: DROPTABLE PREHOOK: Input: default@part_change_various_various_tinyint @@ -396,6 +402,7 @@ POSTHOOK: Input: default@part_change_various_various_tinyint POSTHOOK: Output: default@part_change_various_various_tinyint PREHOOK: query: -- -- SUBSECTION: ALTER TABLE CHANGE COLUMNS for Various --> Various: (BOOLEAN, TINYINT, INT, LONG, FLOAT, DOUBLE, DECIMAL, STRING, CHAR, VARCHAR, TIMESTAMP) --> SMALLINT +-- -32768 and a maximum value of 32767 -- CREATE TABLE part_change_various_various_smallint(insert_num int, c1 BOOLEAN, c2 TINYINT, c3 INT, c4 BIGINT, c5 FLOAT, c6 DOUBLE, c7 DECIMAL(38,18), c8 STRING, c9 CHAR(25), c10 VARCHAR(25), c11 TIMESTAMP, b STRING) PARTITIONED BY(part INT) PREHOOK: type: CREATETABLE @@ -403,6 +410,7 @@ PREHOOK: Output: database:default PREHOOK: Output: default@part_change_various_various_smallint POSTHOOK: query: -- -- SUBSECTION: ALTER TABLE CHANGE COLUMNS for Various --> Various: (BOOLEAN, TINYINT, INT, LONG, FLOAT, DOUBLE, DECIMAL, STRING, CHAR, VARCHAR, TIMESTAMP) --> SMALLINT +-- -32768 and a maximum value of 32767 -- CREATE TABLE part_change_various_various_smallint(insert_num int, c1 BOOLEAN, c2 TINYINT, c3 INT, c4 BIGINT, c5 FLOAT, c6 DOUBLE, c7 DECIMAL(38,18), c8 STRING, c9 CHAR(25), c10 VARCHAR(25), c11 TIMESTAMP, b STRING) PARTITIONED BY(part INT) POSTHOOK: type: CREATETABLE @@ -410,17 +418,19 @@ POSTHOOK: Output: database:default POSTHOOK: Output: default@part_change_various_various_smallint PREHOOK: query: insert into table part_change_various_various_smallint partition(part=1) values(1, -2999, 200, 72909, 3244222, -29.0764, 470614135, 470614135, '-2999', '-2999', '-2999', '0004-09-22 18:26:29.519542222', 'original'), - (2, 0, 100, 483777, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), - (3, false, 72, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '1', '1', '1', '6229-06-28 02:54:28.970117179', 'original'), - (4, 1, -90, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '5299', '5299', '5299', '2002-05-10 05:29:48.990818073', 'original') + (2, 0, 100, -32768 , 32767, -3651.672121, -9223372036854775808.0, 9223372036854775807.0, '9000', '32767', '-32768', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, -127, -40000 , 32768, -3651.672121, -9223372036854775809.0, 9223372036854775808.0, '9000', '32767', '-32768', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, 72, 32422, -9322, 30.774, -6675.561431, -6675.561431, '1', '1', '1', '6229-06-28 02:54:28.970117179', 'original'), + (5, 1, -90, 7151, 3094, 30000.284799488 ,-9000.75, 0.75, '5299', '5299', '5299', '2002-05-10 05:29:48.990818073', 'original') PREHOOK: type: QUERY PREHOOK: Input: default@values__tmp__table__7 PREHOOK: Output: default@part_change_various_various_smallint@part=1 POSTHOOK: query: insert into table part_change_various_various_smallint partition(part=1) values(1, -2999, 200, 72909, 3244222, -29.0764, 470614135, 470614135, '-2999', '-2999', '-2999', '0004-09-22 18:26:29.519542222', 'original'), - (2, 0, 100, 483777, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), - (3, false, 72, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '1', '1', '1', '6229-06-28 02:54:28.970117179', 'original'), - (4, 1, -90, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '5299', '5299', '5299', '2002-05-10 05:29:48.990818073', 'original') + (2, 0, 100, -32768 , 32767, -3651.672121, -9223372036854775808.0, 9223372036854775807.0, '9000', '32767', '-32768', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, -127, -40000 , 32768, -3651.672121, -9223372036854775809.0, 9223372036854775808.0, '9000', '32767', '-32768', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, 72, 32422, -9322, 30.774, -6675.561431, -6675.561431, '1', '1', '1', '6229-06-28 02:54:28.970117179', 'original'), + (5, 1, -90, 7151, 3094, 30000.284799488 ,-9000.75, 0.75, '5299', '5299', '5299', '2002-05-10 05:29:48.990818073', 'original') POSTHOOK: type: QUERY POSTHOOK: Input: default@values__tmp__table__7 POSTHOOK: Output: default@part_change_various_various_smallint@part=1 @@ -450,9 +460,10 @@ POSTHOOK: Input: default@part_change_various_various_smallint@part=1 #### A masked pattern was here #### insert_num part c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 b 1 1 true NULL 72909 3244222 -29.0764 4.70614135E8 470614135.000000000000000000 -2999 -2999 -2999 0004-09-22 18:26:29.519542222 original -2 1 true 100 483777 -23866739993 -3651.672 46114.284799488 46114.284799488000000000 2007-02-09 05:17:29.368756876 original -3 1 false 72 3244222 -93222 30.774 -66475.561431 -66475.561431000000000000 1 1 1 6229-06-28 02:54:28.970117179 original -4 1 true -90 754072151 3289094 46114.285 9250340.75 9250340.750000000000000000 5299 5299 5299 2002-05-10 05:29:48.990818073 original +2 1 true 100 -32768 32767 -3651.672 -9.223372036854776E18 9223372036854775807.000000000000000000 9000 32767 -32768 2007-02-09 05:17:29.368756876 original +3 1 true -127 -40000 32768 -3651.672 -9.223372036854776E18 9223372036854775808.000000000000000000 9000 32767 -32768 2007-02-09 05:17:29.368756876 original +4 1 false 72 32422 -9322 30.774 -6675.561431 -6675.561431000000000000 1 1 1 6229-06-28 02:54:28.970117179 original +5 1 true -90 7151 3094 30000.285 -9000.75 0.750000000000000000 5299 5299 5299 2002-05-10 05:29:48.990818073 original PREHOOK: query: -- Table-Non-Cascade CHANGE COLUMNS ... alter table part_change_various_various_smallint replace columns (insert_num int, c1 SMALLINT, c2 SMALLINT, c3 SMALLINT, c4 SMALLINT, c5 SMALLINT, c6 SMALLINT, c7 SMALLINT, c8 SMALLINT, c9 SMALLINT, c10 SMALLINT, c11 SMALLINT, b STRING) PREHOOK: type: ALTERTABLE_REPLACECOLS @@ -464,12 +475,12 @@ POSTHOOK: type: ALTERTABLE_REPLACECOLS POSTHOOK: Input: default@part_change_various_various_smallint POSTHOOK: Output: default@part_change_various_various_smallint PREHOOK: query: insert into table part_change_various_various_smallint partition(part=2) - values (5, -30486, 15230, 3117, 1, -117, -7131, 20227, -24858, -28771, 46114, 72909, 'new') + values (6, -30486, 15230, 3117, 1, -117, -7131, 20227, -24858, -28771, 46114, 72909, 'new') PREHOOK: type: QUERY PREHOOK: Input: default@values__tmp__table__8 PREHOOK: Output: default@part_change_various_various_smallint@part=2 POSTHOOK: query: insert into table part_change_various_various_smallint partition(part=2) - values (5, -30486, 15230, 3117, 1, -117, -7131, 20227, -24858, -28771, 46114, 72909, 'new') + values (6, -30486, 15230, 3117, 1, -117, -7131, 20227, -24858, -28771, 46114, 72909, 'new') POSTHOOK: type: QUERY POSTHOOK: Input: default@values__tmp__table__8 POSTHOOK: Output: default@part_change_various_various_smallint@part=2 @@ -488,12 +499,12 @@ POSTHOOK: Lineage: part_change_various_various_smallint PARTITION(part=2).c9 EXP POSTHOOK: Lineage: part_change_various_various_smallint PARTITION(part=2).insert_num EXPRESSION [(values__tmp__table__8)values__tmp__table__8.FieldSchema(name:tmp_values_col1, type:string, comment:), ] _col0 _col1 _col2 _col3 _col4 _col5 _col6 _col7 _col8 _col9 _col10 _col11 _col12 PREHOOK: query: insert into table part_change_various_various_smallint partition(part=1) - values (6, -10542, -1805, -4844, 15507, 91, 22385, -28, -12268, 0, 66475, 774, 'new') + values (7, -10542, -1805, -4844, 15507, 91, 22385, -28, -12268, 0, 66475, 774, 'new') PREHOOK: type: QUERY PREHOOK: Input: default@values__tmp__table__9 PREHOOK: Output: default@part_change_various_various_smallint@part=1 POSTHOOK: query: insert into table part_change_various_various_smallint partition(part=1) - values (6, -10542, -1805, -4844, 15507, 91, 22385, -28, -12268, 0, 66475, 774, 'new') + values (7, -10542, -1805, -4844, 15507, 91, 22385, -28, -12268, 0, 66475, 774, 'new') POSTHOOK: type: QUERY POSTHOOK: Input: default@values__tmp__table__9 POSTHOOK: Output: default@part_change_various_various_smallint@part=1 @@ -528,25 +539,25 @@ STAGE PLANS: Map Operator Tree: TableScan alias: part_change_various_various_smallint - Statistics: Num rows: 6 Data size: 622 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 781 Basic stats: COMPLETE Column stats: NONE Select Operator expressions: insert_num (type: int), part (type: int), c1 (type: smallint), c2 (type: smallint), c3 (type: smallint), c4 (type: smallint), c5 (type: smallint), c6 (type: smallint), c7 (type: smallint), c8 (type: smallint), c9 (type: smallint), c10 (type: smallint), c11 (type: smallint), b (type: string) outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6, _col7, _col8, _col9, _col10, _col11, _col12, _col13 - Statistics: Num rows: 6 Data size: 622 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 781 Basic stats: COMPLETE Column stats: NONE Reduce Output Operator key expressions: _col0 (type: int) sort order: + - Statistics: Num rows: 6 Data size: 622 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 781 Basic stats: COMPLETE Column stats: NONE value expressions: _col1 (type: int), _col2 (type: smallint), _col3 (type: smallint), _col4 (type: smallint), _col5 (type: smallint), _col6 (type: smallint), _col7 (type: smallint), _col8 (type: smallint), _col9 (type: smallint), _col10 (type: smallint), _col11 (type: smallint), _col12 (type: smallint), _col13 (type: string) Execution mode: vectorized Reduce Operator Tree: Select Operator expressions: KEY.reducesinkkey0 (type: int), VALUE._col0 (type: int), VALUE._col1 (type: smallint), VALUE._col2 (type: smallint), VALUE._col3 (type: smallint), VALUE._col4 (type: smallint), VALUE._col5 (type: smallint), VALUE._col6 (type: smallint), VALUE._col7 (type: smallint), VALUE._col8 (type: smallint), VALUE._col9 (type: smallint), VALUE._col10 (type: smallint), VALUE._col11 (type: smallint), VALUE._col12 (type: string) outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6, _col7, _col8, _col9, _col10, _col11, _col12, _col13 - Statistics: Num rows: 6 Data size: 622 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 781 Basic stats: COMPLETE Column stats: NONE File Output Operator compressed: false - Statistics: Num rows: 6 Data size: 622 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 781 Basic stats: COMPLETE Column stats: NONE table: input format: org.apache.hadoop.mapred.SequenceFileInputFormat output format: org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat @@ -572,11 +583,12 @@ POSTHOOK: Input: default@part_change_various_various_smallint@part=2 #### A masked pattern was here #### insert_num part c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 b 1 1 1 NULL 7373 -32578 -29 119 119 -2999 -2999 -2999 -11819 original -2 1 1 100 25025 29415 -3651 -19422 -19422 NULL NULL NULL 29801 original -3 1 0 72 -32578 -27686 30 -939 -939 1 1 1 -8620 original -4 1 1 -90 14935 12294 -19422 9764 9764 5299 5299 5299 -17092 original -5 2 -30486 15230 3117 1 -117 -7131 20227 -24858 -28771 NULL NULL new -6 1 NULL NULL -4844 15507 91 22385 -28 -12268 0 NULL NULL new +2 1 1 100 -32768 32767 -3651 0 -1 9000 32767 -32768 29801 original +3 1 1 -127 25536 -32768 -3651 0 0 9000 32767 -32768 29801 original +4 1 0 72 32422 -9322 30 -6675 -6675 1 1 1 -8620 original +5 1 1 -90 7151 3094 30000 -9000 0 5299 5299 5299 -17092 original +6 2 -30486 15230 3117 1 -117 -7131 20227 -24858 -28771 NULL NULL new +7 1 NULL NULL -4844 15507 91 22385 -28 -12268 0 NULL NULL new PREHOOK: query: drop table part_change_various_various_smallint PREHOOK: type: DROPTABLE PREHOOK: Input: default@part_change_various_various_smallint @@ -587,6 +599,7 @@ POSTHOOK: Input: default@part_change_various_various_smallint POSTHOOK: Output: default@part_change_various_various_smallint PREHOOK: query: -- -- SUBSECTION: ALTER TABLE CHANGE COLUMNS for Various --> Various: (BOOLEAN, TINYINT, SMALLINT, LONG, FLOAT, DOUBLE, DECIMAL, STRING, CHAR, VARCHAR, TIMESTAMP) --> INT +-- –2147483648 to 2147483647 -- CREATE TABLE part_change_various_various_int(insert_num int, c1 BOOLEAN, c2 TINYINT, c3 SMALLINT, c4 BIGINT, c5 FLOAT, c6 DOUBLE, c7 DECIMAL(38,18), c8 STRING, c9 CHAR(25), c10 VARCHAR(25), c11 TIMESTAMP, b STRING) PARTITIONED BY(part INT) PREHOOK: type: CREATETABLE @@ -594,6 +607,7 @@ PREHOOK: Output: database:default PREHOOK: Output: default@part_change_various_various_int POSTHOOK: query: -- -- SUBSECTION: ALTER TABLE CHANGE COLUMNS for Various --> Various: (BOOLEAN, TINYINT, SMALLINT, LONG, FLOAT, DOUBLE, DECIMAL, STRING, CHAR, VARCHAR, TIMESTAMP) --> INT +-- –2147483648 to 2147483647 -- CREATE TABLE part_change_various_various_int(insert_num int, c1 BOOLEAN, c2 TINYINT, c3 SMALLINT, c4 BIGINT, c5 FLOAT, c6 DOUBLE, c7 DECIMAL(38,18), c8 STRING, c9 CHAR(25), c10 VARCHAR(25), c11 TIMESTAMP, b STRING) PARTITIONED BY(part INT) POSTHOOK: type: CREATETABLE @@ -601,17 +615,19 @@ POSTHOOK: Output: database:default POSTHOOK: Output: default@part_change_various_various_int PREHOOK: query: insert into table part_change_various_various_int partition(part=1) values(1, -2999, 200, 72909, 3244222, -29.0764, 470614135, 470614135, '-2999', '-2999', '-2999', '0004-09-22 18:26:29.519542222', 'original'), - (2, 0, 100, 483777, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), - (3, false, 72, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '1', '1', '1', '6229-06-28 02:54:28.970117179', 'original'), - (4, 1, -90, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '5299', '5299', '5299', '2002-05-10 05:29:48.990818073', 'original') + (2, 0, 100, 2147483647, -23866739993, -3651.672121, -9223372036854775808.0, 9223372036854775807.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, 100, 2147483648, -23866739993, -3651.672121, -9223372036854775809.0, 9223372036854775808.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, 72, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '1', '1', '1', '6229-06-28 02:54:28.970117179', 'original'), + (5, 1, -90, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '5299', '5299', '5299', '2002-05-10 05:29:48.990818073', 'original') PREHOOK: type: QUERY PREHOOK: Input: default@values__tmp__table__10 PREHOOK: Output: default@part_change_various_various_int@part=1 POSTHOOK: query: insert into table part_change_various_various_int partition(part=1) values(1, -2999, 200, 72909, 3244222, -29.0764, 470614135, 470614135, '-2999', '-2999', '-2999', '0004-09-22 18:26:29.519542222', 'original'), - (2, 0, 100, 483777, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), - (3, false, 72, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '1', '1', '1', '6229-06-28 02:54:28.970117179', 'original'), - (4, 1, -90, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '5299', '5299', '5299', '2002-05-10 05:29:48.990818073', 'original') + (2, 0, 100, 2147483647, -23866739993, -3651.672121, -9223372036854775808.0, 9223372036854775807.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, 100, 2147483648, -23866739993, -3651.672121, -9223372036854775809.0, 9223372036854775808.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, 72, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '1', '1', '1', '6229-06-28 02:54:28.970117179', 'original'), + (5, 1, -90, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '5299', '5299', '5299', '2002-05-10 05:29:48.990818073', 'original') POSTHOOK: type: QUERY POSTHOOK: Input: default@values__tmp__table__10 POSTHOOK: Output: default@part_change_various_various_int@part=1 @@ -641,9 +657,10 @@ POSTHOOK: Input: default@part_change_various_various_int@part=1 #### A masked pattern was here #### insert_num part c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 b 1 1 true NULL NULL 3244222 -29.0764 4.70614135E8 470614135.000000000000000000 -2999 -2999 -2999 0004-09-22 18:26:29.519542222 original -2 1 true 100 NULL -23866739993 -3651.672 46114.284799488 46114.284799488000000000 2007-02-09 05:17:29.368756876 original -3 1 false 72 NULL -93222 30.774 -66475.561431 -66475.561431000000000000 1 1 1 6229-06-28 02:54:28.970117179 original -4 1 true -90 NULL 3289094 46114.285 9250340.75 9250340.750000000000000000 5299 5299 5299 2002-05-10 05:29:48.990818073 original +2 1 true 100 NULL -23866739993 -3651.672 -9.223372036854776E18 9223372036854775807.000000000000000000 2007-02-09 05:17:29.368756876 original +3 1 true 100 NULL -23866739993 -3651.672 -9.223372036854776E18 9223372036854775808.000000000000000000 2007-02-09 05:17:29.368756876 original +4 1 false 72 NULL -93222 30.774 -66475.561431 -66475.561431000000000000 1 1 1 6229-06-28 02:54:28.970117179 original +5 1 true -90 NULL 3289094 46114.285 9250340.75 9250340.750000000000000000 5299 5299 5299 2002-05-10 05:29:48.990818073 original PREHOOK: query: -- Table-Non-Cascade CHANGE COLUMNS ... alter table part_change_various_various_int replace columns (insert_num int, c1 INT, c2 INT, c3 INT, c4 INT, c5 INT, c6 INT, c7 INT, c8 INT, c9 INT, c10 INT, c11 INT, b STRING) PREHOOK: type: ALTERTABLE_REPLACECOLS @@ -719,25 +736,25 @@ STAGE PLANS: Map Operator Tree: TableScan alias: part_change_various_various_int - Statistics: Num rows: 6 Data size: 639 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 798 Basic stats: COMPLETE Column stats: NONE Select Operator expressions: insert_num (type: int), part (type: int), c1 (type: int), c2 (type: int), c3 (type: int), c4 (type: int), c5 (type: int), c6 (type: int), c7 (type: int), c8 (type: int), c9 (type: int), c10 (type: int), c11 (type: int), b (type: string) outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6, _col7, _col8, _col9, _col10, _col11, _col12, _col13 - Statistics: Num rows: 6 Data size: 639 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 798 Basic stats: COMPLETE Column stats: NONE Reduce Output Operator key expressions: _col0 (type: int) sort order: + - Statistics: Num rows: 6 Data size: 639 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 798 Basic stats: COMPLETE Column stats: NONE value expressions: _col1 (type: int), _col2 (type: int), _col3 (type: int), _col4 (type: int), _col5 (type: int), _col6 (type: int), _col7 (type: int), _col8 (type: int), _col9 (type: int), _col10 (type: int), _col11 (type: int), _col12 (type: int), _col13 (type: string) Execution mode: vectorized Reduce Operator Tree: Select Operator expressions: KEY.reducesinkkey0 (type: int), VALUE._col0 (type: int), VALUE._col1 (type: int), VALUE._col2 (type: int), VALUE._col3 (type: int), VALUE._col4 (type: int), VALUE._col5 (type: int), VALUE._col6 (type: int), VALUE._col7 (type: int), VALUE._col8 (type: int), VALUE._col9 (type: int), VALUE._col10 (type: int), VALUE._col11 (type: int), VALUE._col12 (type: string) outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6, _col7, _col8, _col9, _col10, _col11, _col12, _col13 - Statistics: Num rows: 6 Data size: 639 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 798 Basic stats: COMPLETE Column stats: NONE File Output Operator compressed: false - Statistics: Num rows: 6 Data size: 639 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 798 Basic stats: COMPLETE Column stats: NONE table: input format: org.apache.hadoop.mapred.SequenceFileInputFormat output format: org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat @@ -763,9 +780,10 @@ POSTHOOK: Input: default@part_change_various_various_int@part=2 #### A masked pattern was here #### insert_num part c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 b 1 1 1 NULL NULL 3244222 -29 470614135 470614135 -2999 -2999 -2999 -1888628267 original -2 1 1 100 NULL 1903063783 -3651 46114 46114 NULL NULL NULL 1171027049 original -3 1 0 72 NULL -93222 30 -66475 -66475 1 1 1 1272503892 original -4 1 1 -90 NULL 3289094 46114 9250340 9250340 5299 5299 5299 1021033788 original +2 1 1 100 NULL 1903063783 -3651 -2147483648 -1 NULL NULL NULL 1171027049 original +3 1 1 100 NULL 1903063783 -3651 -2147483648 0 NULL NULL NULL 1171027049 original +4 1 0 72 NULL -93222 30 -66475 -66475 1 1 1 1272503892 original +5 1 1 -90 NULL 3289094 46114 9250340 9250340 5299 5299 5299 1021033788 original 5 2 560930 -1281818 127 1 84269672 -60 27094665 -36016110 -182 3244222 561431 new 6 1 NULL NULL NULL -167 91 113 -164341325 -134237413 0 6229 NULL new PREHOOK: query: drop table part_change_various_various_int @@ -778,6 +796,7 @@ POSTHOOK: Input: default@part_change_various_various_int POSTHOOK: Output: default@part_change_various_various_int PREHOOK: query: -- -- SUBSECTION: ALTER TABLE CHANGE COLUMNS for Various --> Various: (BOOLEAN, TINYINT, SMALLINT, INT, FLOAT, DOUBLE, DECIMAL, STRING, CHAR, VARCHAR, TIMESTAMP) --> BIGINT +-- -9223372036854775808 to 9223372036854775807 -- CREATE TABLE part_change_various_various_bigint(insert_num int, c1 BOOLEAN, c2 TINYINT, c3 SMALLINT, c4 INT, c5 FLOAT, c6 DOUBLE, c7 DECIMAL(38,18), c8 STRING, c9 CHAR(25), c10 VARCHAR(25), c11 TIMESTAMP, b STRING) PARTITIONED BY(part INT) PREHOOK: type: CREATETABLE @@ -785,6 +804,7 @@ PREHOOK: Output: database:default PREHOOK: Output: default@part_change_various_various_bigint POSTHOOK: query: -- -- SUBSECTION: ALTER TABLE CHANGE COLUMNS for Various --> Various: (BOOLEAN, TINYINT, SMALLINT, INT, FLOAT, DOUBLE, DECIMAL, STRING, CHAR, VARCHAR, TIMESTAMP) --> BIGINT +-- -9223372036854775808 to 9223372036854775807 -- CREATE TABLE part_change_various_various_bigint(insert_num int, c1 BOOLEAN, c2 TINYINT, c3 SMALLINT, c4 INT, c5 FLOAT, c6 DOUBLE, c7 DECIMAL(38,18), c8 STRING, c9 CHAR(25), c10 VARCHAR(25), c11 TIMESTAMP, b STRING) PARTITIONED BY(part INT) POSTHOOK: type: CREATETABLE @@ -792,17 +812,19 @@ POSTHOOK: Output: database:default POSTHOOK: Output: default@part_change_various_various_bigint PREHOOK: query: insert into table part_change_various_various_bigint partition(part=1) values(1, -2999, 200, 72909, 3244222, -29.0764, 470614135, 470614135, '-2999', '-2999', '-2999', '0004-09-22 18:26:29.519542222', 'original'), - (2, 0, 100, 483777, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), - (3, false, 72, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '1', '1', '1', '6229-06-28 02:54:28.970117179', 'original'), - (4, 1, -90, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '1998287.3541', '1998287.3541', '1998287.3541', '2002-05-10 05:29:48.990818073', 'original') + (2, 0, 100, 32767, -23372036854775, -3651.672121, -9223372036854775808.0, 9223372036854775807.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, 100, -32768, 23372036854775, -3651.672121, -9223372036854775809.0, 9223372036854775808.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, 72, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '1', '1', '1', '6229-06-28 02:54:28.970117179', 'original'), + (5, 1, -90, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '1998287.3541', '1998287.3541', '1998287.3541', '2002-05-10 05:29:48.990818073', 'original') PREHOOK: type: QUERY PREHOOK: Input: default@values__tmp__table__13 PREHOOK: Output: default@part_change_various_various_bigint@part=1 POSTHOOK: query: insert into table part_change_various_various_bigint partition(part=1) values(1, -2999, 200, 72909, 3244222, -29.0764, 470614135, 470614135, '-2999', '-2999', '-2999', '0004-09-22 18:26:29.519542222', 'original'), - (2, 0, 100, 483777, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), - (3, false, 72, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '1', '1', '1', '6229-06-28 02:54:28.970117179', 'original'), - (4, 1, -90, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '1998287.3541', '1998287.3541', '1998287.3541', '2002-05-10 05:29:48.990818073', 'original') + (2, 0, 100, 32767, -23372036854775, -3651.672121, -9223372036854775808.0, 9223372036854775807.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, 100, -32768, 23372036854775, -3651.672121, -9223372036854775809.0, 9223372036854775808.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, 72, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '1', '1', '1', '6229-06-28 02:54:28.970117179', 'original'), + (5, 1, -90, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '1998287.3541', '1998287.3541', '1998287.3541', '2002-05-10 05:29:48.990818073', 'original') POSTHOOK: type: QUERY POSTHOOK: Input: default@values__tmp__table__13 POSTHOOK: Output: default@part_change_various_various_bigint@part=1 @@ -832,9 +854,10 @@ POSTHOOK: Input: default@part_change_various_various_bigint@part=1 #### A masked pattern was here #### insert_num part c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 b 1 1 true NULL NULL 3244222 -29.0764 4.70614135E8 470614135.000000000000000000 -2999 -2999 -2999 0004-09-22 18:26:29.519542222 original -2 1 true 100 NULL NULL -3651.672 46114.284799488 46114.284799488000000000 2007-02-09 05:17:29.368756876 original -3 1 false 72 NULL -93222 30.774 -66475.561431 -66475.561431000000000000 1 1 1 6229-06-28 02:54:28.970117179 original -4 1 true -90 NULL 3289094 46114.285 9250340.75 9250340.750000000000000000 1998287.3541 1998287.3541 1998287.3541 2002-05-10 05:29:48.990818073 original +2 1 true 100 32767 NULL -3651.672 -9.223372036854776E18 9223372036854775807.000000000000000000 2007-02-09 05:17:29.368756876 original +3 1 true 100 -32768 NULL -3651.672 -9.223372036854776E18 9223372036854775808.000000000000000000 2007-02-09 05:17:29.368756876 original +4 1 false 72 NULL -93222 30.774 -66475.561431 -66475.561431000000000000 1 1 1 6229-06-28 02:54:28.970117179 original +5 1 true -90 NULL 3289094 46114.285 9250340.75 9250340.750000000000000000 1998287.3541 1998287.3541 1998287.3541 2002-05-10 05:29:48.990818073 original PREHOOK: query: -- Table-Non-Cascade CHANGE COLUMNS ... alter table part_change_various_various_bigint replace columns (insert_num int, c1 BIGINT, c2 BIGINT, c3 BIGINT, c4 BIGINT, c5 BIGINT, c6 BIGINT, c7 BIGINT, c8 BIGINT, c9 BIGINT, c10 BIGINT, c11 BIGINT, b STRING) PREHOOK: type: ALTERTABLE_REPLACECOLS @@ -846,12 +869,12 @@ POSTHOOK: type: ALTERTABLE_REPLACECOLS POSTHOOK: Input: default@part_change_various_various_bigint POSTHOOK: Output: default@part_change_various_various_bigint PREHOOK: query: insert into table part_change_various_various_bigint partition(part=2) - values (5, 5573199346255528403, 71, 151775655, 1, 131, -60, 6275638713485623898, -230, -695025, 519542222, -29.0764, 'new') + values (6, 5573199346255528403, 71, 151775655, 1, 131, -60, 6275638713485623898, -230, -695025, 519542222, -29.0764, 'new') PREHOOK: type: QUERY PREHOOK: Input: default@values__tmp__table__14 PREHOOK: Output: default@part_change_various_various_bigint@part=2 POSTHOOK: query: insert into table part_change_various_various_bigint partition(part=2) - values (5, 5573199346255528403, 71, 151775655, 1, 131, -60, 6275638713485623898, -230, -695025, 519542222, -29.0764, 'new') + values (6, 5573199346255528403, 71, 151775655, 1, 131, -60, 6275638713485623898, -230, -695025, 519542222, -29.0764, 'new') POSTHOOK: type: QUERY POSTHOOK: Input: default@values__tmp__table__14 POSTHOOK: Output: default@part_change_various_various_bigint@part=2 @@ -870,12 +893,12 @@ POSTHOOK: Lineage: part_change_various_various_bigint PARTITION(part=2).c9 EXPRE POSTHOOK: Lineage: part_change_various_various_bigint PARTITION(part=2).insert_num EXPRESSION [(values__tmp__table__14)values__tmp__table__14.FieldSchema(name:tmp_values_col1, type:string, comment:), ] _col0 _col1 _col2 _col3 _col4 _col5 _col6 _col7 _col8 _col9 _col10 _col11 _col12 PREHOOK: query: insert into table part_change_various_various_bigint partition(part=1) - values (6, -164341325, 9043162437544575070, -126, -6566204574741299000, 91, 113, -28, -63, 0, 3244222, -90, 'new') + values (7, -164341325, 9043162437544575070, -126, -6566204574741299000, 91, 113, -28, -63, 0, 3244222, -90, 'new') PREHOOK: type: QUERY PREHOOK: Input: default@values__tmp__table__15 PREHOOK: Output: default@part_change_various_various_bigint@part=1 POSTHOOK: query: insert into table part_change_various_various_bigint partition(part=1) - values (6, -164341325, 9043162437544575070, -126, -6566204574741299000, 91, 113, -28, -63, 0, 3244222, -90, 'new') + values (7, -164341325, 9043162437544575070, -126, -6566204574741299000, 91, 113, -28, -63, 0, 3244222, -90, 'new') POSTHOOK: type: QUERY POSTHOOK: Input: default@values__tmp__table__15 POSTHOOK: Output: default@part_change_various_various_bigint@part=1 @@ -910,25 +933,25 @@ STAGE PLANS: Map Operator Tree: TableScan alias: part_change_various_various_bigint - Statistics: Num rows: 6 Data size: 682 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 838 Basic stats: COMPLETE Column stats: NONE Select Operator expressions: insert_num (type: int), part (type: int), c1 (type: bigint), c2 (type: bigint), c3 (type: bigint), c4 (type: bigint), c5 (type: bigint), c6 (type: bigint), c7 (type: bigint), c8 (type: bigint), c9 (type: bigint), c10 (type: bigint), c11 (type: bigint), b (type: string) outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6, _col7, _col8, _col9, _col10, _col11, _col12, _col13 - Statistics: Num rows: 6 Data size: 682 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 838 Basic stats: COMPLETE Column stats: NONE Reduce Output Operator key expressions: _col0 (type: int) sort order: + - Statistics: Num rows: 6 Data size: 682 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 838 Basic stats: COMPLETE Column stats: NONE value expressions: _col1 (type: int), _col2 (type: bigint), _col3 (type: bigint), _col4 (type: bigint), _col5 (type: bigint), _col6 (type: bigint), _col7 (type: bigint), _col8 (type: bigint), _col9 (type: bigint), _col10 (type: bigint), _col11 (type: bigint), _col12 (type: bigint), _col13 (type: string) Execution mode: vectorized Reduce Operator Tree: Select Operator expressions: KEY.reducesinkkey0 (type: int), VALUE._col0 (type: int), VALUE._col1 (type: bigint), VALUE._col2 (type: bigint), VALUE._col3 (type: bigint), VALUE._col4 (type: bigint), VALUE._col5 (type: bigint), VALUE._col6 (type: bigint), VALUE._col7 (type: bigint), VALUE._col8 (type: bigint), VALUE._col9 (type: bigint), VALUE._col10 (type: bigint), VALUE._col11 (type: bigint), VALUE._col12 (type: string) outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6, _col7, _col8, _col9, _col10, _col11, _col12, _col13 - Statistics: Num rows: 6 Data size: 682 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 838 Basic stats: COMPLETE Column stats: NONE File Output Operator compressed: false - Statistics: Num rows: 6 Data size: 682 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 838 Basic stats: COMPLETE Column stats: NONE table: input format: org.apache.hadoop.mapred.SequenceFileInputFormat output format: org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat @@ -954,11 +977,12 @@ POSTHOOK: Input: default@part_change_various_various_bigint@part=2 #### A masked pattern was here #### insert_num part c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 b 1 1 1 NULL NULL 3244222 -29 470614135 470614135 -2999 -2999 -2999 -62018170411 original -2 1 1 100 NULL NULL -3651 46114 46114 NULL NULL NULL 1171027049 original -3 1 0 72 NULL -93222 30 -66475 -66475 1 1 1 134416490068 original -4 1 1 -90 NULL 3289094 46114 9250340 9250340 1998287 NULL NULL 1021033788 original -5 2 5573199346255528403 71 151775655 1 131 -60 6275638713485623898 -230 -695025 519542222 -29 new -6 1 NULL NULL -126 NULL 91 113 -28 -63 0 3244222 NULL new +2 1 1 100 32767 NULL -3651 -9223372036854775808 9223372036854775807 NULL NULL NULL 1171027049 original +3 1 1 100 -32768 NULL -3651 -9223372036854775808 -9223372036854775808 NULL NULL NULL 1171027049 original +4 1 0 72 NULL -93222 30 -66475 -66475 1 1 1 134416490068 original +5 1 1 -90 NULL 3289094 46114 9250340 9250340 1998287 NULL NULL 1021033788 original +6 2 5573199346255528403 71 151775655 1 131 -60 6275638713485623898 -230 -695025 519542222 -29 new +7 1 NULL NULL -126 NULL 91 113 -28 -63 0 3244222 NULL new PREHOOK: query: drop table part_change_various_various_bigint PREHOOK: type: DROPTABLE PREHOOK: Input: default@part_change_various_various_bigint @@ -983,17 +1007,19 @@ POSTHOOK: Output: database:default POSTHOOK: Output: default@part_change_various_various_float PREHOOK: query: insert into table part_change_various_various_float partition(part=1) values(1, -2999, 200, 72909, 3244222, -29.0764, 470614135, 470614135, '-2999', '-2999', '-2999', '0004-09-22 18:26:29.519542222', 'original'), - (2, 0, 100, 483777, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), - (3, false, 72, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '2402.3', '2402.3', '2402.3', '6229-06-28 02:54:28.970117179', 'original'), - (4, 1, -90, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '5299', '5299', '5299', '2002-05-10 05:29:48.990818073', 'original') + (2, 0, 100, 32767, -23372036854775, -3651.672121, -9223372036854775808.0, 9223372036854775807.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, 100, -32768, 23372036854775, -3651.672121, -9223372036854775809.0, 9223372036854775808.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, 72, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '2402.3', '2402.3', '2402.3', '6229-06-28 02:54:28.970117179', 'original'), + (5, 1, -90, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '5299', '5299', '5299', '2002-05-10 05:29:48.990818073', 'original') PREHOOK: type: QUERY PREHOOK: Input: default@values__tmp__table__16 PREHOOK: Output: default@part_change_various_various_float@part=1 POSTHOOK: query: insert into table part_change_various_various_float partition(part=1) values(1, -2999, 200, 72909, 3244222, -29.0764, 470614135, 470614135, '-2999', '-2999', '-2999', '0004-09-22 18:26:29.519542222', 'original'), - (2, 0, 100, 483777, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), - (3, false, 72, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '2402.3', '2402.3', '2402.3', '6229-06-28 02:54:28.970117179', 'original'), - (4, 1, -90, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '5299', '5299', '5299', '2002-05-10 05:29:48.990818073', 'original') + (2, 0, 100, 32767, -23372036854775, -3651.672121, -9223372036854775808.0, 9223372036854775807.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, 100, -32768, 23372036854775, -3651.672121, -9223372036854775809.0, 9223372036854775808.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, 72, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '2402.3', '2402.3', '2402.3', '6229-06-28 02:54:28.970117179', 'original'), + (5, 1, -90, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '5299', '5299', '5299', '2002-05-10 05:29:48.990818073', 'original') POSTHOOK: type: QUERY POSTHOOK: Input: default@values__tmp__table__16 POSTHOOK: Output: default@part_change_various_various_float@part=1 @@ -1023,9 +1049,10 @@ POSTHOOK: Input: default@part_change_various_various_float@part=1 #### A masked pattern was here #### insert_num part c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 b 1 1 true NULL NULL 3244222 -29 4.70614135E8 470614135.000000000000000000 -2999 -2999 -2999 0004-09-22 18:26:29.519542222 original -2 1 true 100 NULL NULL -3651 46114.284799488 46114.284799488000000000 2007-02-09 05:17:29.368756876 original -3 1 false 72 NULL -93222 30 -66475.561431 -66475.561431000000000000 2402.3 2402.3 2402.3 6229-06-28 02:54:28.970117179 original -4 1 true -90 NULL 3289094 46114 9250340.75 9250340.750000000000000000 5299 5299 5299 2002-05-10 05:29:48.990818073 original +2 1 true 100 32767 NULL -3651 -9.223372036854776E18 9223372036854775807.000000000000000000 2007-02-09 05:17:29.368756876 original +3 1 true 100 -32768 NULL -3651 -9.223372036854776E18 9223372036854775808.000000000000000000 2007-02-09 05:17:29.368756876 original +4 1 false 72 NULL -93222 30 -66475.561431 -66475.561431000000000000 2402.3 2402.3 2402.3 6229-06-28 02:54:28.970117179 original +5 1 true -90 NULL 3289094 46114 9250340.75 9250340.750000000000000000 5299 5299 5299 2002-05-10 05:29:48.990818073 original PREHOOK: query: -- Table-Non-Cascade CHANGE COLUMNS ... alter table part_change_various_various_float replace columns (insert_num int, c1 FLOAT, c2 FLOAT, c3 FLOAT, c4 FLOAT, c5 FLOAT, c6 FLOAT, c7 FLOAT, c8 FLOAT, c9 FLOAT, c10 FLOAT, c11 FLOAT, b STRING) PREHOOK: type: ALTERTABLE_REPLACECOLS @@ -1037,12 +1064,12 @@ POSTHOOK: type: ALTERTABLE_REPLACECOLS POSTHOOK: Input: default@part_change_various_various_float POSTHOOK: Output: default@part_change_various_various_float PREHOOK: query: insert into table part_change_various_various_float partition(part=2) - values (5, 953967041., 62.0791539559013466, 718.78, 1, 203.199548118, -60, 6275638713485623898, -230, -695025, -3651.67212, 46114.28, 'new') + values (6, 953967041., 62.0791539559013466, 718.78, 1, 203.199548118, -60, 6275638713485623898, -230, -695025, -3651.67212, 46114.28, 'new') PREHOOK: type: QUERY PREHOOK: Input: default@values__tmp__table__17 PREHOOK: Output: default@part_change_various_various_float@part=2 POSTHOOK: query: insert into table part_change_various_various_float partition(part=2) - values (5, 953967041., 62.0791539559013466, 718.78, 1, 203.199548118, -60, 6275638713485623898, -230, -695025, -3651.67212, 46114.28, 'new') + values (6, 953967041., 62.0791539559013466, 718.78, 1, 203.199548118, -60, 6275638713485623898, -230, -695025, -3651.67212, 46114.28, 'new') POSTHOOK: type: QUERY POSTHOOK: Input: default@values__tmp__table__17 POSTHOOK: Output: default@part_change_various_various_float@part=2 @@ -1061,12 +1088,12 @@ POSTHOOK: Lineage: part_change_various_various_float PARTITION(part=2).c9 EXPRES POSTHOOK: Lineage: part_change_various_various_float PARTITION(part=2).insert_num EXPRESSION [(values__tmp__table__17)values__tmp__table__17.FieldSchema(name:tmp_values_col1, type:string, comment:), ] _col0 _col1 _col2 _col3 _col4 _col5 _col6 _col7 _col8 _col9 _col10 _col11 _col12 PREHOOK: query: insert into table part_change_various_various_float partition(part=1) - values (6, -1255178165.77663, 9043162437544575070.974, -4314.7918, -1240033819, 91, 1698.95, -100.3597812, -63, 0, -93222.200, 29.076, 'new') + values (7, -1255178165.77663, 9043162437544575070.974, -4314.7918, -1240033819, 91, 1698.95, -100.3597812, -63, 0, -93222.200, 29.076, 'new') PREHOOK: type: QUERY PREHOOK: Input: default@values__tmp__table__18 PREHOOK: Output: default@part_change_various_various_float@part=1 POSTHOOK: query: insert into table part_change_various_various_float partition(part=1) - values (6, -1255178165.77663, 9043162437544575070.974, -4314.7918, -1240033819, 91, 1698.95, -100.3597812, -63, 0, -93222.200, 29.076, 'new') + values (7, -1255178165.77663, 9043162437544575070.974, -4314.7918, -1240033819, 91, 1698.95, -100.3597812, -63, 0, -93222.200, 29.076, 'new') POSTHOOK: type: QUERY POSTHOOK: Input: default@values__tmp__table__18 POSTHOOK: Output: default@part_change_various_various_float@part=1 @@ -1101,25 +1128,25 @@ STAGE PLANS: Map Operator Tree: TableScan alias: part_change_various_various_float - Statistics: Num rows: 6 Data size: 679 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 831 Basic stats: COMPLETE Column stats: NONE Select Operator expressions: insert_num (type: int), part (type: int), c1 (type: float), c2 (type: float), c3 (type: float), c4 (type: float), c5 (type: float), c6 (type: float), c7 (type: float), c8 (type: float), c9 (type: float), c10 (type: float), c11 (type: float), b (type: string) outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6, _col7, _col8, _col9, _col10, _col11, _col12, _col13 - Statistics: Num rows: 6 Data size: 679 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 831 Basic stats: COMPLETE Column stats: NONE Reduce Output Operator key expressions: _col0 (type: int) sort order: + - Statistics: Num rows: 6 Data size: 679 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 831 Basic stats: COMPLETE Column stats: NONE value expressions: _col1 (type: int), _col2 (type: float), _col3 (type: float), _col4 (type: float), _col5 (type: float), _col6 (type: float), _col7 (type: float), _col8 (type: float), _col9 (type: float), _col10 (type: float), _col11 (type: float), _col12 (type: float), _col13 (type: string) Execution mode: vectorized Reduce Operator Tree: Select Operator expressions: KEY.reducesinkkey0 (type: int), VALUE._col0 (type: int), VALUE._col1 (type: float), VALUE._col2 (type: float), VALUE._col3 (type: float), VALUE._col4 (type: float), VALUE._col5 (type: float), VALUE._col6 (type: float), VALUE._col7 (type: float), VALUE._col8 (type: float), VALUE._col9 (type: float), VALUE._col10 (type: float), VALUE._col11 (type: float), VALUE._col12 (type: string) outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6, _col7, _col8, _col9, _col10, _col11, _col12, _col13 - Statistics: Num rows: 6 Data size: 679 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 831 Basic stats: COMPLETE Column stats: NONE File Output Operator compressed: false - Statistics: Num rows: 6 Data size: 679 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 831 Basic stats: COMPLETE Column stats: NONE table: input format: org.apache.hadoop.mapred.SequenceFileInputFormat output format: org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat @@ -1145,11 +1172,12 @@ POSTHOOK: Input: default@part_change_various_various_float@part=2 #### A masked pattern was here #### insert_num part c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 b 1 1 1.0 NULL NULL 3244222.0 -29.0 4.70614144E8 4.70614144E8 -2999.0 -2999.0 -2999.0 -6.2018171E10 original -2 1 1.0 100.0 NULL NULL -3651.0 46114.285 46114.285 NULL NULL NULL 1.17102707E9 original -3 1 0.0 72.0 NULL -93222.0 30.0 -66475.56 -66475.56 2402.3 2402.3 2402.3 1.3441649E11 original -4 1 1.0 -90.0 NULL 3289094.0 46114.0 9250341.0 9250341.0 5299.0 5299.0 5299.0 1.02103379E9 original -5 2 9.5396704E8 62.079155 718.78 1.0 203.19955 -60.0 6.2756385E18 -230.0 -695025.0 -3651.672 46114.28 new -6 1 NULL NULL -4314.0 NULL 91.0 1698.95 -100.35978 -63.0 0.0 -93222.2 NULL new +2 1 1.0 100.0 32767.0 NULL -3651.0 -9.223372E18 9.223372E18 NULL NULL NULL 1.17102707E9 original +3 1 1.0 100.0 -32768.0 NULL -3651.0 -9.223372E18 9.223372E18 NULL NULL NULL 1.17102707E9 original +4 1 0.0 72.0 NULL -93222.0 30.0 -66475.56 -66475.56 2402.3 2402.3 2402.3 1.3441649E11 original +5 1 1.0 -90.0 NULL 3289094.0 46114.0 9250341.0 9250341.0 5299.0 5299.0 5299.0 1.02103379E9 original +6 2 9.5396704E8 62.079155 718.78 1.0 203.19955 -60.0 6.2756385E18 -230.0 -695025.0 -3651.672 46114.28 new +7 1 NULL NULL -4314.0 NULL 91.0 1698.95 -100.35978 -63.0 0.0 -93222.2 NULL new PREHOOK: query: drop table part_change_various_various_float PREHOOK: type: DROPTABLE PREHOOK: Input: default@part_change_various_various_float @@ -1174,17 +1202,19 @@ POSTHOOK: Output: database:default POSTHOOK: Output: default@part_change_various_various_double PREHOOK: query: insert into table part_change_various_various_double partition(part=1) values(1, -2999, 200, 72909, 3244222, -29.0764, 470614135, 470614135, '-2999', '-2999', '-2999', '0004-09-22 18:26:29.519542222', 'original'), - (2, 0, 100, 483777, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), - (3, false, 72, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '1', '1', '1', '6229-06-28 02:54:28.970117179', 'original'), - (4, 1, -90, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '5299', '5299', '5299', '2002-05-10 05:29:48.990818073', 'original') + (2, 0, 100, 32767, -23372036854775, -3651.672121, -9223372036854775808.0, 9223372036854775807.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, 100, -32768, 23372036854775, -3651.672121, -9223372036854775809.0, 9223372036854775808.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, 72, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '1', '1', '1', '6229-06-28 02:54:28.970117179', 'original'), + (5, 1, -90, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '5299', '5299', '5299', '2002-05-10 05:29:48.990818073', 'original') PREHOOK: type: QUERY PREHOOK: Input: default@values__tmp__table__19 PREHOOK: Output: default@part_change_various_various_double@part=1 POSTHOOK: query: insert into table part_change_various_various_double partition(part=1) values(1, -2999, 200, 72909, 3244222, -29.0764, 470614135, 470614135, '-2999', '-2999', '-2999', '0004-09-22 18:26:29.519542222', 'original'), - (2, 0, 100, 483777, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), - (3, false, 72, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '1', '1', '1', '6229-06-28 02:54:28.970117179', 'original'), - (4, 1, -90, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '5299', '5299', '5299', '2002-05-10 05:29:48.990818073', 'original') + (2, 0, 100, 32767, -23372036854775, -3651.672121, -9223372036854775808.0, 9223372036854775807.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, 100, -32768, 23372036854775, -3651.672121, -9223372036854775809.0, 9223372036854775808.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, 72, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '1', '1', '1', '6229-06-28 02:54:28.970117179', 'original'), + (5, 1, -90, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '5299', '5299', '5299', '2002-05-10 05:29:48.990818073', 'original') POSTHOOK: type: QUERY POSTHOOK: Input: default@values__tmp__table__19 POSTHOOK: Output: default@part_change_various_various_double@part=1 @@ -1214,9 +1244,10 @@ POSTHOOK: Input: default@part_change_various_various_double@part=1 #### A masked pattern was here #### insert_num part c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 b 1 1 true NULL NULL 3244222 -29 4.70614135E8 470614135.000000000000000000 -2999 -2999 -2999 0004-09-22 18:26:29.519542222 original -2 1 true 100 NULL NULL -3651 46114.284799488 46114.284799488000000000 2007-02-09 05:17:29.368756876 original -3 1 false 72 NULL -93222 30 -66475.561431 -66475.561431000000000000 1 1 1 6229-06-28 02:54:28.970117179 original -4 1 true -90 NULL 3289094 46114 9250340.75 9250340.750000000000000000 5299 5299 5299 2002-05-10 05:29:48.990818073 original +2 1 true 100 32767 NULL -3651 -9.223372036854776E18 9223372036854775807.000000000000000000 2007-02-09 05:17:29.368756876 original +3 1 true 100 -32768 NULL -3651 -9.223372036854776E18 9223372036854775808.000000000000000000 2007-02-09 05:17:29.368756876 original +4 1 false 72 NULL -93222 30 -66475.561431 -66475.561431000000000000 1 1 1 6229-06-28 02:54:28.970117179 original +5 1 true -90 NULL 3289094 46114 9250340.75 9250340.750000000000000000 5299 5299 5299 2002-05-10 05:29:48.990818073 original PREHOOK: query: -- Table-Non-Cascade CHANGE COLUMNS ... alter table part_change_various_various_double replace columns (insert_num int, c1 DOUBLE, c2 DOUBLE, c3 DOUBLE, c4 DOUBLE, c5 DOUBLE, c6 DOUBLE, c7 DOUBLE, c8 DOUBLE, c9 DOUBLE, c10 DOUBLE, c11 DOUBLE, b STRING) PREHOOK: type: ALTERTABLE_REPLACECOLS @@ -1228,12 +1259,12 @@ POSTHOOK: type: ALTERTABLE_REPLACECOLS POSTHOOK: Input: default@part_change_various_various_double POSTHOOK: Output: default@part_change_various_various_double PREHOOK: query: insert into table part_change_various_various_double partition(part=2) - values (5, 953967041., 62.0791539559013466, 718.78, 1, 203.199548118, -60, 6275638713485623898, -230, -695025, 0.00007011717, 4.28479948, 'new') + values (6, 953967041., 62.0791539559013466, 718.78, 1, 203.199548118, -60, 6275638713485623898, -230, -695025, 0.00007011717, 4.28479948, 'new') PREHOOK: type: QUERY PREHOOK: Input: default@values__tmp__table__20 PREHOOK: Output: default@part_change_various_various_double@part=2 POSTHOOK: query: insert into table part_change_various_various_double partition(part=2) - values (5, 953967041., 62.0791539559013466, 718.78, 1, 203.199548118, -60, 6275638713485623898, -230, -695025, 0.00007011717, 4.28479948, 'new') + values (6, 953967041., 62.0791539559013466, 718.78, 1, 203.199548118, -60, 6275638713485623898, -230, -695025, 0.00007011717, 4.28479948, 'new') POSTHOOK: type: QUERY POSTHOOK: Input: default@values__tmp__table__20 POSTHOOK: Output: default@part_change_various_various_double@part=2 @@ -1252,12 +1283,12 @@ POSTHOOK: Lineage: part_change_various_various_double PARTITION(part=2).c9 EXPRE POSTHOOK: Lineage: part_change_various_various_double PARTITION(part=2).insert_num EXPRESSION [(values__tmp__table__20)values__tmp__table__20.FieldSchema(name:tmp_values_col1, type:string, comment:), ] _col0 _col1 _col2 _col3 _col4 _col5 _col6 _col7 _col8 _col9 _col10 _col11 _col12 PREHOOK: query: insert into table part_change_various_various_double partition(part=1) - values (6, -1255178165.77663, 9043162437544575070.974, -4314.7918, -1240033819, 91, 1698.95, -100.3597812, -63, 0, -66475.0000008, -284799488.1, 'new') + values (7, -1255178165.77663, 9043162437544575070.974, -4314.7918, -1240033819, 91, 1698.95, -100.3597812, -63, 0, -66475.0000008, -284799488.1, 'new') PREHOOK: type: QUERY PREHOOK: Input: default@values__tmp__table__21 PREHOOK: Output: default@part_change_various_various_double@part=1 POSTHOOK: query: insert into table part_change_various_various_double partition(part=1) - values (6, -1255178165.77663, 9043162437544575070.974, -4314.7918, -1240033819, 91, 1698.95, -100.3597812, -63, 0, -66475.0000008, -284799488.1, 'new') + values (7, -1255178165.77663, 9043162437544575070.974, -4314.7918, -1240033819, 91, 1698.95, -100.3597812, -63, 0, -66475.0000008, -284799488.1, 'new') POSTHOOK: type: QUERY POSTHOOK: Input: default@values__tmp__table__21 POSTHOOK: Output: default@part_change_various_various_double@part=1 @@ -1292,25 +1323,25 @@ STAGE PLANS: Map Operator Tree: TableScan alias: part_change_various_various_double - Statistics: Num rows: 6 Data size: 722 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 874 Basic stats: COMPLETE Column stats: NONE Select Operator expressions: insert_num (type: int), part (type: int), c1 (type: double), c2 (type: double), c3 (type: double), c4 (type: double), c5 (type: double), c6 (type: double), c7 (type: double), c8 (type: double), c9 (type: double), c10 (type: double), c11 (type: double), b (type: string) outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6, _col7, _col8, _col9, _col10, _col11, _col12, _col13 - Statistics: Num rows: 6 Data size: 722 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 874 Basic stats: COMPLETE Column stats: NONE Reduce Output Operator key expressions: _col0 (type: int) sort order: + - Statistics: Num rows: 6 Data size: 722 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 874 Basic stats: COMPLETE Column stats: NONE value expressions: _col1 (type: int), _col2 (type: double), _col3 (type: double), _col4 (type: double), _col5 (type: double), _col6 (type: double), _col7 (type: double), _col8 (type: double), _col9 (type: double), _col10 (type: double), _col11 (type: double), _col12 (type: double), _col13 (type: string) Execution mode: vectorized Reduce Operator Tree: Select Operator expressions: KEY.reducesinkkey0 (type: int), VALUE._col0 (type: int), VALUE._col1 (type: double), VALUE._col2 (type: double), VALUE._col3 (type: double), VALUE._col4 (type: double), VALUE._col5 (type: double), VALUE._col6 (type: double), VALUE._col7 (type: double), VALUE._col8 (type: double), VALUE._col9 (type: double), VALUE._col10 (type: double), VALUE._col11 (type: double), VALUE._col12 (type: string) outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6, _col7, _col8, _col9, _col10, _col11, _col12, _col13 - Statistics: Num rows: 6 Data size: 722 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 874 Basic stats: COMPLETE Column stats: NONE File Output Operator compressed: false - Statistics: Num rows: 6 Data size: 722 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 874 Basic stats: COMPLETE Column stats: NONE table: input format: org.apache.hadoop.mapred.SequenceFileInputFormat output format: org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat @@ -1336,11 +1367,12 @@ POSTHOOK: Input: default@part_change_various_various_double@part=2 #### A masked pattern was here #### insert_num part c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 b 1 1 1.0 NULL NULL 3244222.0 -29.0 4.70614135E8 4.70614135E8 -2999.0 -2999.0 -2999.0 -6.201817041048046E10 original -2 1 1.0 100.0 NULL NULL -3651.0 46114.284799488 46114.284799488 NULL NULL NULL 1.1710270493687568E9 original -3 1 0.0 72.0 NULL -93222.0 30.0 -66475.561431 -66475.561431 1.0 1.0 1.0 1.3441649006897012E11 original -4 1 1.0 -90.0 NULL 3289094.0 46114.0 9250340.75 9250340.75 5299.0 5299.0 5299.0 1.021033788990818E9 original -5 2 9.53967041E8 62.07915395590135 718.78 1.0 203.199548118 -60.0 6.2756387134856243E18 -230.0 -695025.0 7.011717E-5 4.28479948 new -6 1 NULL NULL -4314.0 NULL 91.0 1698.95 -100.3597812 -63.0 0.0 -66475.0000008 NULL new +2 1 1.0 100.0 32767.0 NULL -3651.0 -9.223372036854776E18 9.223372036854776E18 NULL NULL NULL 1.1710270493687568E9 original +3 1 1.0 100.0 -32768.0 NULL -3651.0 -9.223372036854776E18 9.223372036854776E18 NULL NULL NULL 1.1710270493687568E9 original +4 1 0.0 72.0 NULL -93222.0 30.0 -66475.561431 -66475.561431 1.0 1.0 1.0 1.3441649006897012E11 original +5 1 1.0 -90.0 NULL 3289094.0 46114.0 9250340.75 9250340.75 5299.0 5299.0 5299.0 1.021033788990818E9 original +6 2 9.53967041E8 62.07915395590135 718.78 1.0 203.199548118 -60.0 6.2756387134856243E18 -230.0 -695025.0 7.011717E-5 4.28479948 new +7 1 NULL NULL -4314.0 NULL 91.0 1698.95 -100.3597812 -63.0 0.0 -66475.0000008 NULL new PREHOOK: query: drop table part_change_various_various_double PREHOOK: type: DROPTABLE PREHOOK: Input: default@part_change_various_various_double @@ -1365,17 +1397,19 @@ POSTHOOK: Output: database:default POSTHOOK: Output: default@part_change_various_various_decimal PREHOOK: query: insert into table part_change_various_various_decimal partition(part=1) values(1, -2999, 200, 72909, 3244222, -29.0764, 470614135, 470614135, '--1551801.09502', '--1551801.09502', '--1551801.09502', '0004-09-22 18:26:29.519542222', 'original'), - (2, 0, 100, 483777, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), - (3, false, 72, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '1', '1', '1', '6229-06-28 02:54:28.970117179', 'original'), - (4, 1, -90, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '2402.3', '2402.3', '2402.3', '2002-05-10 05:29:48.990818073', 'original') + (2, 0, 100, 32767, -23372036854775, -3651.672121, -9223372036854775808.0, 9223372036854775807.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, 100, -32768, 23372036854775, -3651.672121, -9223372036854775809.0, 9223372036854775808.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, 72, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '1', '1', '1', '6229-06-28 02:54:28.970117179', 'original'), + (5, 1, -90, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '2402.3', '2402.3', '2402.3', '2002-05-10 05:29:48.990818073', 'original') PREHOOK: type: QUERY PREHOOK: Input: default@values__tmp__table__22 PREHOOK: Output: default@part_change_various_various_decimal@part=1 POSTHOOK: query: insert into table part_change_various_various_decimal partition(part=1) values(1, -2999, 200, 72909, 3244222, -29.0764, 470614135, 470614135, '--1551801.09502', '--1551801.09502', '--1551801.09502', '0004-09-22 18:26:29.519542222', 'original'), - (2, 0, 100, 483777, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), - (3, false, 72, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '1', '1', '1', '6229-06-28 02:54:28.970117179', 'original'), - (4, 1, -90, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '2402.3', '2402.3', '2402.3', '2002-05-10 05:29:48.990818073', 'original') + (2, 0, 100, 32767, -23372036854775, -3651.672121, -9223372036854775808.0, 9223372036854775807.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, 100, -32768, 23372036854775, -3651.672121, -9223372036854775809.0, 9223372036854775808.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, 72, 3244222, -93222, 30.774, -66475.561431, -66475.561431, '1', '1', '1', '6229-06-28 02:54:28.970117179', 'original'), + (5, 1, -90, 754072151, 3289094, 46114.284799488 ,9250340.75, 9250340.75, '2402.3', '2402.3', '2402.3', '2002-05-10 05:29:48.990818073', 'original') POSTHOOK: type: QUERY POSTHOOK: Input: default@values__tmp__table__22 POSTHOOK: Output: default@part_change_various_various_decimal@part=1 @@ -1405,9 +1439,10 @@ POSTHOOK: Input: default@part_change_various_various_decimal@part=1 #### A masked pattern was here #### insert_num part c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 b 1 1 true NULL NULL 3244222 -29 4.70614144E8 4.70614135E8 --1551801.09502 --1551801.09502 --1551801.09502 0004-09-22 18:26:29.519542222 original -2 1 true 100 NULL NULL -3651 46114.285 46114.284799488 2007-02-09 05:17:29.368756876 original -3 1 false 72 NULL -93222 30 -66475.56 -66475.561431 1 1 1 6229-06-28 02:54:28.970117179 original -4 1 true -90 NULL 3289094 46114 9250341.0 9250340.75 2402.3 2402.3 2402.3 2002-05-10 05:29:48.990818073 original +2 1 true 100 32767 NULL -3651 -9.223372E18 9.223372036854776E18 2007-02-09 05:17:29.368756876 original +3 1 true 100 -32768 NULL -3651 -9.223372E18 9.223372036854776E18 2007-02-09 05:17:29.368756876 original +4 1 false 72 NULL -93222 30 -66475.56 -66475.561431 1 1 1 6229-06-28 02:54:28.970117179 original +5 1 true -90 NULL 3289094 46114 9250341.0 9250340.75 2402.3 2402.3 2402.3 2002-05-10 05:29:48.990818073 original PREHOOK: query: -- Table-Non-Cascade CHANGE COLUMNS ... alter table part_change_various_various_decimal replace columns (insert_num int, c1 DECIMAL(38,18), c2 DECIMAL(38,18), c3 DECIMAL(38,18), c4 DECIMAL(38,18), c5 DECIMAL(38,18), c6 DECIMAL(38,18), c7 DECIMAL(38,18), c8 DECIMAL(38,18), c9 DECIMAL(38,18), c10 DECIMAL(38,18), c11 DECIMAL(38,18), b STRING) PREHOOK: type: ALTERTABLE_REPLACECOLS @@ -1419,12 +1454,12 @@ POSTHOOK: type: ALTERTABLE_REPLACECOLS POSTHOOK: Input: default@part_change_various_various_decimal POSTHOOK: Output: default@part_change_various_various_decimal PREHOOK: query: insert into table part_change_various_various_decimal partition(part=2) - values (5, 953967041., 62.0791539559013466, 718.78, 1, 203.199548118, -60, 6275638713485623898, -230, -695025, 0.00007011717, 4.28479948, 'new') + values (6, 953967041., 62.0791539559013466, 718.78, 1, 203.199548118, -60, 6275638713485623898, -230, -695025, 0.00007011717, 4.28479948, 'new') PREHOOK: type: QUERY PREHOOK: Input: default@values__tmp__table__23 PREHOOK: Output: default@part_change_various_various_decimal@part=2 POSTHOOK: query: insert into table part_change_various_various_decimal partition(part=2) - values (5, 953967041., 62.0791539559013466, 718.78, 1, 203.199548118, -60, 6275638713485623898, -230, -695025, 0.00007011717, 4.28479948, 'new') + values (6, 953967041., 62.0791539559013466, 718.78, 1, 203.199548118, -60, 6275638713485623898, -230, -695025, 0.00007011717, 4.28479948, 'new') POSTHOOK: type: QUERY POSTHOOK: Input: default@values__tmp__table__23 POSTHOOK: Output: default@part_change_various_various_decimal@part=2 @@ -1443,12 +1478,12 @@ POSTHOOK: Lineage: part_change_various_various_decimal PARTITION(part=2).c9 EXPR POSTHOOK: Lineage: part_change_various_various_decimal PARTITION(part=2).insert_num EXPRESSION [(values__tmp__table__23)values__tmp__table__23.FieldSchema(name:tmp_values_col1, type:string, comment:), ] _col0 _col1 _col2 _col3 _col4 _col5 _col6 _col7 _col8 _col9 _col10 _col11 _col12 PREHOOK: query: insert into table part_change_various_various_decimal partition(part=1) - values (6,-1255178165.77663, 9043162437544575070.974, -4314.7918, -1240033819, 91, 1698.95, -100.3597812, -63, 0, -66475.0000008, -284799488.1, 'new') + values (7,-1255178165.77663, 9043162437544575070.974, -4314.7918, -1240033819, 91, 1698.95, -100.3597812, -63, 0, -66475.0000008, -284799488.1, 'new') PREHOOK: type: QUERY PREHOOK: Input: default@values__tmp__table__24 PREHOOK: Output: default@part_change_various_various_decimal@part=1 POSTHOOK: query: insert into table part_change_various_various_decimal partition(part=1) - values (6,-1255178165.77663, 9043162437544575070.974, -4314.7918, -1240033819, 91, 1698.95, -100.3597812, -63, 0, -66475.0000008, -284799488.1, 'new') + values (7,-1255178165.77663, 9043162437544575070.974, -4314.7918, -1240033819, 91, 1698.95, -100.3597812, -63, 0, -66475.0000008, -284799488.1, 'new') POSTHOOK: type: QUERY POSTHOOK: Input: default@values__tmp__table__24 POSTHOOK: Output: default@part_change_various_various_decimal@part=1 @@ -1483,25 +1518,25 @@ STAGE PLANS: Map Operator Tree: TableScan alias: part_change_various_various_decimal - Statistics: Num rows: 6 Data size: 1006 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 1119 Basic stats: COMPLETE Column stats: NONE Select Operator expressions: insert_num (type: int), part (type: int), c1 (type: decimal(38,18)), c2 (type: decimal(38,18)), c3 (type: decimal(38,18)), c4 (type: decimal(38,18)), c5 (type: decimal(38,18)), c6 (type: decimal(38,18)), c7 (type: decimal(38,18)), c8 (type: decimal(38,18)), c9 (type: decimal(38,18)), c10 (type: decimal(38,18)), c11 (type: decimal(38,18)), b (type: string) outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6, _col7, _col8, _col9, _col10, _col11, _col12, _col13 - Statistics: Num rows: 6 Data size: 1006 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 1119 Basic stats: COMPLETE Column stats: NONE Reduce Output Operator key expressions: _col0 (type: int) sort order: + - Statistics: Num rows: 6 Data size: 1006 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 1119 Basic stats: COMPLETE Column stats: NONE value expressions: _col1 (type: int), _col2 (type: decimal(38,18)), _col3 (type: decimal(38,18)), _col4 (type: decimal(38,18)), _col5 (type: decimal(38,18)), _col6 (type: decimal(38,18)), _col7 (type: decimal(38,18)), _col8 (type: decimal(38,18)), _col9 (type: decimal(38,18)), _col10 (type: decimal(38,18)), _col11 (type: decimal(38,18)), _col12 (type: decimal(38,18)), _col13 (type: string) Execution mode: vectorized Reduce Operator Tree: Select Operator expressions: KEY.reducesinkkey0 (type: int), VALUE._col0 (type: int), VALUE._col1 (type: decimal(38,18)), VALUE._col2 (type: decimal(38,18)), VALUE._col3 (type: decimal(38,18)), VALUE._col4 (type: decimal(38,18)), VALUE._col5 (type: decimal(38,18)), VALUE._col6 (type: decimal(38,18)), VALUE._col7 (type: decimal(38,18)), VALUE._col8 (type: decimal(38,18)), VALUE._col9 (type: decimal(38,18)), VALUE._col10 (type: decimal(38,18)), VALUE._col11 (type: decimal(38,18)), VALUE._col12 (type: string) outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6, _col7, _col8, _col9, _col10, _col11, _col12, _col13 - Statistics: Num rows: 6 Data size: 1006 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 1119 Basic stats: COMPLETE Column stats: NONE File Output Operator compressed: false - Statistics: Num rows: 6 Data size: 1006 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 1119 Basic stats: COMPLETE Column stats: NONE table: input format: org.apache.hadoop.mapred.SequenceFileInputFormat output format: org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat @@ -1527,11 +1562,12 @@ POSTHOOK: Input: default@part_change_various_various_decimal@part=2 #### A masked pattern was here #### insert_num part c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 b 1 1 1.000000000000000000 NULL NULL 3244222.000000000000000000 -29.000000000000000000 470614144.000000000000000000 470614135.000000000000000000 NULL NULL NULL -62018170410.480460000000000000 original -2 1 1.000000000000000000 100.000000000000000000 NULL NULL -3651.000000000000000000 46114.285000000000000000 46114.284799488000000000 NULL NULL NULL 1171027049.368756800000000000 original -3 1 0.000000000000000000 72.000000000000000000 NULL -93222.000000000000000000 30.000000000000000000 -66475.560000000000000000 -66475.561431000000000000 1.000000000000000000 1.000000000000000000 1.000000000000000000 134416490068.970120000000000000 original -4 1 1.000000000000000000 -90.000000000000000000 NULL 3289094.000000000000000000 46114.000000000000000000 9250341.000000000000000000 9250340.750000000000000000 2402.300000000000000000 2402.300000000000000000 2402.300000000000000000 1021033788.990818000000000000 original -5 2 953967041.000000000000000000 62.079153955901346600 718.780000000000000000 1.000000000000000000 203.199548118000000000 -60.000000000000000000 6275638713485623898.000000000000000000 -230.000000000000000000 -695025.000000000000000000 0.000070117170000000 4.284799480000000000 new -6 1 NULL NULL -4314.000000000000000000 -1240033819.000000000000000000 91.000000000000000000 1698.950000000000000000 -100.359781200000000000 -63.000000000000000000 0.000000000000000000 -66475.000000800000000000 NULL new +2 1 1.000000000000000000 100.000000000000000000 32767.000000000000000000 NULL -3651.000000000000000000 -9223372000000000000.000000000000000000 9223372036854776000.000000000000000000 NULL NULL NULL 1171027049.368756800000000000 original +3 1 1.000000000000000000 100.000000000000000000 -32768.000000000000000000 NULL -3651.000000000000000000 -9223372000000000000.000000000000000000 9223372036854776000.000000000000000000 NULL NULL NULL 1171027049.368756800000000000 original +4 1 0.000000000000000000 72.000000000000000000 NULL -93222.000000000000000000 30.000000000000000000 -66475.560000000000000000 -66475.561431000000000000 1.000000000000000000 1.000000000000000000 1.000000000000000000 134416490068.970120000000000000 original +5 1 1.000000000000000000 -90.000000000000000000 NULL 3289094.000000000000000000 46114.000000000000000000 9250341.000000000000000000 9250340.750000000000000000 2402.300000000000000000 2402.300000000000000000 2402.300000000000000000 1021033788.990818000000000000 original +6 2 953967041.000000000000000000 62.079153955901346600 718.780000000000000000 1.000000000000000000 203.199548118000000000 -60.000000000000000000 6275638713485623898.000000000000000000 -230.000000000000000000 -695025.000000000000000000 0.000070117170000000 4.284799480000000000 new +7 1 NULL NULL -4314.000000000000000000 -1240033819.000000000000000000 91.000000000000000000 1698.950000000000000000 -100.359781200000000000 -63.000000000000000000 0.000000000000000000 -66475.000000800000000000 NULL new PREHOOK: query: drop table part_change_various_various_decimal PREHOOK: type: DROPTABLE PREHOOK: Input: default@part_change_various_various_decimal @@ -1556,17 +1592,19 @@ POSTHOOK: Output: database:default POSTHOOK: Output: default@part_change_various_various_string PREHOOK: query: insert into table part_change_various_various_string partition(part=1) values(1, true, 200, 72909, 3244222, -99999999999, -29.0764, 470614135, 470614135, 'dynamic reptile ', 'dynamic reptile ', '0004-09-22 18:26:29.519542222', '2007-02-09', 'binary', 'original'), - (2, 0, 100, 483777, 14, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, ' baffling ', ' baffling ', '2007-02-09 05:17:29.368756876', '0004-09-22', 'binary', 'original'), - (3, false, 72, 3244222, -93222, 30.774, - 66475.561431, -66475.561431, 0.561431, '1', '1', '6229-06-28 02:54:28.970117179', '5966-07-09', 'binary', 'original'), - (4, 1, -90, 754072151, 3289094, 46114.284799488, 9250340.75, 9250340.75, 9250340.75, 'junkyard', 'junkyard', '2002-05-10 05:29:48.990818073', '1815-05-06', 'binary', 'original') + (2, 0, 100, 32767, -23372036854775, -3651.672121, -9223372036854775808.0, 9223372036854775807.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, 100, -32768, 23372036854775, -3651.672121, -9223372036854775809.0, 9223372036854775808.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, 72, 3244222, -93222, 30.774, - 66475.561431, -66475.561431, 0.561431, '1', '1', '6229-06-28 02:54:28.970117179', '5966-07-09', 'binary', 'original'), + (5, 1, -90, 754072151, 3289094, 46114.284799488, 9250340.75, 9250340.75, 9250340.75, 'junkyard', 'junkyard', '2002-05-10 05:29:48.990818073', '1815-05-06', 'binary', 'original') PREHOOK: type: QUERY PREHOOK: Input: default@values__tmp__table__25 PREHOOK: Output: default@part_change_various_various_string@part=1 POSTHOOK: query: insert into table part_change_various_various_string partition(part=1) values(1, true, 200, 72909, 3244222, -99999999999, -29.0764, 470614135, 470614135, 'dynamic reptile ', 'dynamic reptile ', '0004-09-22 18:26:29.519542222', '2007-02-09', 'binary', 'original'), - (2, 0, 100, 483777, 14, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, ' baffling ', ' baffling ', '2007-02-09 05:17:29.368756876', '0004-09-22', 'binary', 'original'), - (3, false, 72, 3244222, -93222, 30.774, - 66475.561431, -66475.561431, 0.561431, '1', '1', '6229-06-28 02:54:28.970117179', '5966-07-09', 'binary', 'original'), - (4, 1, -90, 754072151, 3289094, 46114.284799488, 9250340.75, 9250340.75, 9250340.75, 'junkyard', 'junkyard', '2002-05-10 05:29:48.990818073', '1815-05-06', 'binary', 'original') + (2, 0, 100, 32767, -23372036854775, -3651.672121, -9223372036854775808.0, 9223372036854775807.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, 100, -32768, 23372036854775, -3651.672121, -9223372036854775809.0, 9223372036854775808.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, 72, 3244222, -93222, 30.774, - 66475.561431, -66475.561431, 0.561431, '1', '1', '6229-06-28 02:54:28.970117179', '5966-07-09', 'binary', 'original'), + (5, 1, -90, 754072151, 3289094, 46114.284799488, 9250340.75, 9250340.75, 9250340.75, 'junkyard', 'junkyard', '2002-05-10 05:29:48.990818073', '1815-05-06', 'binary', 'original') POSTHOOK: type: QUERY POSTHOOK: Input: default@values__tmp__table__25 POSTHOOK: Output: default@part_change_various_various_string@part=1 @@ -1598,9 +1636,10 @@ POSTHOOK: Input: default@part_change_various_various_string@part=1 #### A masked pattern was here #### insert_num part c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 c12 c13 b 1 1 true NULL NULL 3244222 -99999999999 -29.0764 4.70614135E8 470614135.000000000000000000 dynamic reptile dynamic reptile 0004-09-22 18:26:29.519542222 2007-02-09 binary original -2 1 true 100 NULL 14 -23866739993 -3651.672 46114.284799488 46114.284799488000000000 baffling baffling 2007-02-09 05:17:29.368756876 0004-09-22 binary original -3 1 false 72 NULL -93222 30 -66475.56 -66475.561431 0.561431000000000000 1 1 6229-06-28 02:54:28.970117179 5966-07-09 binary original -4 1 true -90 NULL 3289094 46114 9250341.0 9250340.75 9250340.750000000000000000 junkyard junkyard 2002-05-10 05:29:48.990818073 1815-05-06 binary original +2 1 true 100 32767 NULL -3651 -9.223372E18 9.223372036854776E18 NULL 2007-02-09 05:17:29.368756876 NULL NULL NULL +3 1 true 100 -32768 NULL -3651 -9.223372E18 9.223372036854776E18 NULL 2007-02-09 05:17:29.368756876 NULL NULL NULL +4 1 false 72 NULL -93222 30 -66475.56 -66475.561431 0.561431000000000000 1 1 6229-06-28 02:54:28.970117179 5966-07-09 binary original +5 1 true -90 NULL 3289094 46114 9250341.0 9250340.75 9250340.750000000000000000 junkyard junkyard 2002-05-10 05:29:48.990818073 1815-05-06 binary original PREHOOK: query: -- Table-Non-Cascade CHANGE COLUMNS ... alter table part_change_various_various_string replace columns (insert_num int, c1 STRING, c2 STRING, c3 STRING, c4 STRING, c5 STRING, c6 STRING, c7 STRING, c8 STRING, c9 STRING, c10 STRING, c11 STRING, c12 STRING, c13 STRING, b STRING) PREHOOK: type: ALTERTABLE_REPLACECOLS @@ -1612,12 +1651,12 @@ POSTHOOK: type: ALTERTABLE_REPLACECOLS POSTHOOK: Input: default@part_change_various_various_string POSTHOOK: Output: default@part_change_various_various_string PREHOOK: query: insert into table part_change_various_various_string partition(part=2) - values (5, 'true', '400', '44388', -'100', '953967041.', '62.079153', '718.78', '1', 'verdict', 'verdict', 'timestamp', 'date', 'binary', 'new') + values (6, 'true', '400', '44388', -'100', '953967041.', '62.079153', '718.78', '1', 'verdict', 'verdict', 'timestamp', 'date', 'binary', 'new') PREHOOK: type: QUERY PREHOOK: Input: default@values__tmp__table__26 PREHOOK: Output: default@part_change_various_various_string@part=2 POSTHOOK: query: insert into table part_change_various_various_string partition(part=2) - values (5, 'true', '400', '44388', -'100', '953967041.', '62.079153', '718.78', '1', 'verdict', 'verdict', 'timestamp', 'date', 'binary', 'new') + values (6, 'true', '400', '44388', -'100', '953967041.', '62.079153', '718.78', '1', 'verdict', 'verdict', 'timestamp', 'date', 'binary', 'new') POSTHOOK: type: QUERY POSTHOOK: Input: default@values__tmp__table__26 POSTHOOK: Output: default@part_change_various_various_string@part=2 @@ -1638,12 +1677,12 @@ POSTHOOK: Lineage: part_change_various_various_string PARTITION(part=2).c9 SIMPL POSTHOOK: Lineage: part_change_various_various_string PARTITION(part=2).insert_num EXPRESSION [(values__tmp__table__26)values__tmp__table__26.FieldSchema(name:tmp_values_col1, type:string, comment:), ] _col0 _col1 _col2 _col3 _col4 _col5 _col6 _col7 _col8 _col9 _col10 _col11 _col12 _col13 _col14 PREHOOK: query: insert into table part_change_various_various_string partition(part=1) - values (6,-'false', '-67', '833', '63993', ' 1255178165.77663', '905070.974', '-4314.7918', -'1240033819', 'trial', 'trial', '2016-03-07 03:02:22.0', '2016-03-07', 'binary', 'new') + values (7,-'false', '-67', '833', '63993', ' 1255178165.77663', '905070.974', '-4314.7918', -'1240033819', 'trial', 'trial', '2016-03-07 03:02:22.0', '2016-03-07', 'binary', 'new') PREHOOK: type: QUERY PREHOOK: Input: default@values__tmp__table__27 PREHOOK: Output: default@part_change_various_various_string@part=1 POSTHOOK: query: insert into table part_change_various_various_string partition(part=1) - values (6,-'false', '-67', '833', '63993', ' 1255178165.77663', '905070.974', '-4314.7918', -'1240033819', 'trial', 'trial', '2016-03-07 03:02:22.0', '2016-03-07', 'binary', 'new') + values (7,-'false', '-67', '833', '63993', ' 1255178165.77663', '905070.974', '-4314.7918', -'1240033819', 'trial', 'trial', '2016-03-07 03:02:22.0', '2016-03-07', 'binary', 'new') POSTHOOK: type: QUERY POSTHOOK: Input: default@values__tmp__table__27 POSTHOOK: Output: default@part_change_various_various_string@part=1 @@ -1680,25 +1719,25 @@ STAGE PLANS: Map Operator Tree: TableScan alias: part_change_various_various_string - Statistics: Num rows: 6 Data size: 914 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 991 Basic stats: COMPLETE Column stats: NONE Select Operator expressions: insert_num (type: int), part (type: int), c1 (type: string), c2 (type: string), c3 (type: string), c4 (type: string), c5 (type: string), c6 (type: string), c7 (type: string), c8 (type: string), c9 (type: string), c10 (type: string), c11 (type: string), c12 (type: string), c13 (type: string), b (type: string) outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6, _col7, _col8, _col9, _col10, _col11, _col12, _col13, _col14, _col15 - Statistics: Num rows: 6 Data size: 914 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 991 Basic stats: COMPLETE Column stats: NONE Reduce Output Operator key expressions: _col0 (type: int) sort order: + - Statistics: Num rows: 6 Data size: 914 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 991 Basic stats: COMPLETE Column stats: NONE value expressions: _col1 (type: int), _col2 (type: string), _col3 (type: string), _col4 (type: string), _col5 (type: string), _col6 (type: string), _col7 (type: string), _col8 (type: string), _col9 (type: string), _col10 (type: string), _col11 (type: string), _col12 (type: string), _col13 (type: string), _col14 (type: string), _col15 (type: string) Execution mode: vectorized Reduce Operator Tree: Select Operator expressions: KEY.reducesinkkey0 (type: int), VALUE._col0 (type: int), VALUE._col1 (type: string), VALUE._col2 (type: string), VALUE._col3 (type: string), VALUE._col4 (type: string), VALUE._col5 (type: string), VALUE._col6 (type: string), VALUE._col7 (type: string), VALUE._col8 (type: string), VALUE._col9 (type: string), VALUE._col10 (type: string), VALUE._col11 (type: string), VALUE._col12 (type: string), VALUE._col13 (type: string), VALUE._col14 (type: string) outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6, _col7, _col8, _col9, _col10, _col11, _col12, _col13, _col14, _col15 - Statistics: Num rows: 6 Data size: 914 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 991 Basic stats: COMPLETE Column stats: NONE File Output Operator compressed: false - Statistics: Num rows: 6 Data size: 914 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 991 Basic stats: COMPLETE Column stats: NONE table: input format: org.apache.hadoop.mapred.SequenceFileInputFormat output format: org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat @@ -1724,11 +1763,12 @@ POSTHOOK: Input: default@part_change_various_various_string@part=2 #### A masked pattern was here #### insert_num part c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 c12 c13 b 1 1 true NULL NULL 3244222 -99999999999 -29.0764 4.70614135E8 470614135 dynamic reptile dynamic reptile 0004-09-22 18:26:29.519542222 2007-02-09 binary original -2 1 true 100 NULL 14 -23866739993 -3651.672 46114.284799488 46114.284799488 baffling baffling 2007-02-09 05:17:29.368756876 0004-09-22 binary original -3 1 false 72 NULL -93222 30 -66475.56 -66475.561431 0.561431 1 1 6229-06-28 02:54:28.970117179 5966-07-09 binary original -4 1 true -90 NULL 3289094 46114 9250341.0 9250340.75 9250340.75 junkyard junkyard 2002-05-10 05:29:48.990818073 1815-05-06 binary original -5 2 true 400 44388 -100 953967041. 62.079153 718.78 1 verdict verdict timestamp date binary new -6 1 NULL -67 833 63993 NULL 905071.0 -4314.7918 -1240033819 trial trial 2016-03-07 03:02:22 2016-03-07 n)گ new +2 1 true 100 32767 NULL -3651 -9.223372E18 9.223372036854776E18 NULL 2007-02-09 05:17:29.368756876 NULL NULL NULL +3 1 true 100 -32768 NULL -3651 -9.223372E18 9.223372036854776E18 NULL 2007-02-09 05:17:29.368756876 NULL NULL NULL +4 1 false 72 NULL -93222 30 -66475.56 -66475.561431 0.561431 1 1 6229-06-28 02:54:28.970117179 5966-07-09 binary original +5 1 true -90 NULL 3289094 46114 9250341.0 9250340.75 9250340.75 junkyard junkyard 2002-05-10 05:29:48.990818073 1815-05-06 binary original +6 2 true 400 44388 -100 953967041. 62.079153 718.78 1 verdict verdict timestamp date binary new +7 1 NULL -67 833 63993 NULL 905071.0 -4314.7918 -1240033819 trial trial 2016-03-07 03:02:22 2016-03-07 n)گ new PREHOOK: query: drop table part_change_various_various_string PREHOOK: type: DROPTABLE PREHOOK: Input: default@part_change_various_various_string @@ -1753,17 +1793,19 @@ POSTHOOK: Output: database:default POSTHOOK: Output: default@part_change_various_various_char PREHOOK: query: insert into table part_change_various_various_char partition(part=1) values(1, true, 200, 72909, 3244222, -99999999999, -29.0764, 470614135, 470614135, 'dynamic reptile ', 'dynamic reptile ', '0004-09-22 18:26:29.519542222', '2007-02-09', 'binary', 'original'), - (2, 0, 100, 483777, 14, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, ' baffling ', ' baffling ', '2007-02-09 05:17:29.368756876', '0004-09-22', 'binary', 'original'), - (3, false, 72, 3244222, -93222, 30.774, - 66475.561431, -66475.561431, 0.561431, '1', '1', '6229-06-28 02:54:28.970117179', '5966-07-09', 'binary', 'original'), - (4, 1, -90, 754072151, 3289094, 46114.284799488, 9250340.75, 9250340.75, 9250340.75, 'junkyard', 'junkyard', '2002-05-10 05:29:48.990818073', '1815-05-06', 'binary', 'original') + (2, 0, 100, 32767, -23372036854775, -3651.672121, -9223372036854775808.0, 9223372036854775807.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, 100, -32768, 23372036854775, -3651.672121, -9223372036854775809.0, 9223372036854775808.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, 72, 3244222, -93222, 30.774, - 66475.561431, -66475.561431, 0.561431, '1', '1', '6229-06-28 02:54:28.970117179', '5966-07-09', 'binary', 'original'), + (5, 1, -90, 754072151, 3289094, 46114.284799488, 9250340.75, 9250340.75, 9250340.75, 'junkyard', 'junkyard', '2002-05-10 05:29:48.990818073', '1815-05-06', 'binary', 'original') PREHOOK: type: QUERY PREHOOK: Input: default@values__tmp__table__28 PREHOOK: Output: default@part_change_various_various_char@part=1 POSTHOOK: query: insert into table part_change_various_various_char partition(part=1) values(1, true, 200, 72909, 3244222, -99999999999, -29.0764, 470614135, 470614135, 'dynamic reptile ', 'dynamic reptile ', '0004-09-22 18:26:29.519542222', '2007-02-09', 'binary', 'original'), - (2, 0, 100, 483777, 14, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, ' baffling ', ' baffling ', '2007-02-09 05:17:29.368756876', '0004-09-22', 'binary', 'original'), - (3, false, 72, 3244222, -93222, 30.774, - 66475.561431, -66475.561431, 0.561431, '1', '1', '6229-06-28 02:54:28.970117179', '5966-07-09', 'binary', 'original'), - (4, 1, -90, 754072151, 3289094, 46114.284799488, 9250340.75, 9250340.75, 9250340.75, 'junkyard', 'junkyard', '2002-05-10 05:29:48.990818073', '1815-05-06', 'binary', 'original') + (2, 0, 100, 32767, -23372036854775, -3651.672121, -9223372036854775808.0, 9223372036854775807.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, 100, -32768, 23372036854775, -3651.672121, -9223372036854775809.0, 9223372036854775808.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, 72, 3244222, -93222, 30.774, - 66475.561431, -66475.561431, 0.561431, '1', '1', '6229-06-28 02:54:28.970117179', '5966-07-09', 'binary', 'original'), + (5, 1, -90, 754072151, 3289094, 46114.284799488, 9250340.75, 9250340.75, 9250340.75, 'junkyard', 'junkyard', '2002-05-10 05:29:48.990818073', '1815-05-06', 'binary', 'original') POSTHOOK: type: QUERY POSTHOOK: Input: default@values__tmp__table__28 POSTHOOK: Output: default@part_change_various_various_char@part=1 @@ -1795,9 +1837,10 @@ POSTHOOK: Input: default@part_change_various_various_char@part=1 #### A masked pattern was here #### insert_num part c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 c12 c13 b 1 1 true NULL NULL 3244222 -99999999999 -29.0764 4.70614135E8 470614135.000000000000000000 dynamic reptile dynamic reptile 0004-09-22 18:26:29.519542222 2007-02-09 binary original -2 1 true 100 NULL 14 -23866739993 -3651.672 46114.284799488 46114.284799488000000000 baffling baffling 2007-02-09 05:17:29.368756876 0004-09-22 binary original -3 1 false 72 NULL -93222 30 -66475.56 -66475.561431 0.561431000000000000 1 1 6229-06-28 02:54:28.970117179 5966-07-09 binary original -4 1 true -90 NULL 3289094 46114 9250341.0 9250340.75 9250340.750000000000000000 junkyard junkyard 2002-05-10 05:29:48.990818073 1815-05-06 binary original +2 1 true 100 32767 NULL -3651 -9.223372E18 9.223372036854776E18 NULL 2007-02-09 05:17:29.368756876 NULL NULL NULL +3 1 true 100 -32768 NULL -3651 -9.223372E18 9.223372036854776E18 NULL 2007-02-09 05:17:29.368756876 NULL NULL NULL +4 1 false 72 NULL -93222 30 -66475.56 -66475.561431 0.561431000000000000 1 1 6229-06-28 02:54:28.970117179 5966-07-09 binary original +5 1 true -90 NULL 3289094 46114 9250341.0 9250340.75 9250340.750000000000000000 junkyard junkyard 2002-05-10 05:29:48.990818073 1815-05-06 binary original PREHOOK: query: -- Table-Non-Cascade CHANGE COLUMNS ... alter table part_change_various_various_char replace columns (insert_num int, c1 CHAR(25), c2 CHAR(25), c3 CHAR(25), c4 CHAR(25), c5 CHAR(25), c6 CHAR(25), c7 CHAR(25), c8 CHAR(25), c9 CHAR(25), c10 CHAR(25), c11 CHAR(25), c12 CHAR(25), c13 CHAR(25), b STRING) PREHOOK: type: ALTERTABLE_REPLACECOLS @@ -1809,12 +1852,12 @@ POSTHOOK: type: ALTERTABLE_REPLACECOLS POSTHOOK: Input: default@part_change_various_various_char POSTHOOK: Output: default@part_change_various_various_char PREHOOK: query: insert into table part_change_various_various_char partition(part=2) - values (5, 'true', '400', '44388', -'100', '953967041.', '62.079153', '718.78', '1', 'verdict', 'verdict', 'timestamp', 'date', 'binary', 'new') + values (6, 'true', '400', '44388', -'100', '953967041.', '62.079153', '718.78', '1', 'verdict', 'verdict', 'timestamp', 'date', 'binary', 'new') PREHOOK: type: QUERY PREHOOK: Input: default@values__tmp__table__29 PREHOOK: Output: default@part_change_various_various_char@part=2 POSTHOOK: query: insert into table part_change_various_various_char partition(part=2) - values (5, 'true', '400', '44388', -'100', '953967041.', '62.079153', '718.78', '1', 'verdict', 'verdict', 'timestamp', 'date', 'binary', 'new') + values (6, 'true', '400', '44388', -'100', '953967041.', '62.079153', '718.78', '1', 'verdict', 'verdict', 'timestamp', 'date', 'binary', 'new') POSTHOOK: type: QUERY POSTHOOK: Input: default@values__tmp__table__29 POSTHOOK: Output: default@part_change_various_various_char@part=2 @@ -1835,12 +1878,12 @@ POSTHOOK: Lineage: part_change_various_various_char PARTITION(part=2).c9 EXPRESS POSTHOOK: Lineage: part_change_various_various_char PARTITION(part=2).insert_num EXPRESSION [(values__tmp__table__29)values__tmp__table__29.FieldSchema(name:tmp_values_col1, type:string, comment:), ] _col0 _col1 _col2 _col3 _col4 _col5 _col6 _col7 _col8 _col9 _col10 _col11 _col12 _col13 _col14 PREHOOK: query: insert into table part_change_various_various_char partition(part=1) - values (6,-'false', '-67', '833', '63993', ' 1255178165.77663', '905070.974', '-4314.7918', -'1240033819', 'trial', 'trial', '2016-03-07 03:02:22.0', '2016-03-07', 'binary', 'new') + values (7,-'false', '-67', '833', '63993', ' 1255178165.77663', '905070.974', '-4314.7918', -'1240033819', 'trial', 'trial', '2016-03-07 03:02:22.0', '2016-03-07', 'binary', 'new') PREHOOK: type: QUERY PREHOOK: Input: default@values__tmp__table__30 PREHOOK: Output: default@part_change_various_various_char@part=1 POSTHOOK: query: insert into table part_change_various_various_char partition(part=1) - values (6,-'false', '-67', '833', '63993', ' 1255178165.77663', '905070.974', '-4314.7918', -'1240033819', 'trial', 'trial', '2016-03-07 03:02:22.0', '2016-03-07', 'binary', 'new') + values (7,-'false', '-67', '833', '63993', ' 1255178165.77663', '905070.974', '-4314.7918', -'1240033819', 'trial', 'trial', '2016-03-07 03:02:22.0', '2016-03-07', 'binary', 'new') POSTHOOK: type: QUERY POSTHOOK: Input: default@values__tmp__table__30 POSTHOOK: Output: default@part_change_various_various_char@part=1 @@ -1877,25 +1920,25 @@ STAGE PLANS: Map Operator Tree: TableScan alias: part_change_various_various_char - Statistics: Num rows: 6 Data size: 854 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 892 Basic stats: COMPLETE Column stats: NONE Select Operator expressions: insert_num (type: int), part (type: int), c1 (type: char(25)), c2 (type: char(25)), c3 (type: char(25)), c4 (type: char(25)), c5 (type: char(25)), c6 (type: char(25)), c7 (type: char(25)), c8 (type: char(25)), c9 (type: char(25)), c10 (type: char(25)), c11 (type: char(25)), c12 (type: char(25)), c13 (type: char(25)), b (type: string) outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6, _col7, _col8, _col9, _col10, _col11, _col12, _col13, _col14, _col15 - Statistics: Num rows: 6 Data size: 854 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 892 Basic stats: COMPLETE Column stats: NONE Reduce Output Operator key expressions: _col0 (type: int) sort order: + - Statistics: Num rows: 6 Data size: 854 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 892 Basic stats: COMPLETE Column stats: NONE value expressions: _col1 (type: int), _col2 (type: char(25)), _col3 (type: char(25)), _col4 (type: char(25)), _col5 (type: char(25)), _col6 (type: char(25)), _col7 (type: char(25)), _col8 (type: char(25)), _col9 (type: char(25)), _col10 (type: char(25)), _col11 (type: char(25)), _col12 (type: char(25)), _col13 (type: char(25)), _col14 (type: char(25)), _col15 (type: string) Execution mode: vectorized Reduce Operator Tree: Select Operator expressions: KEY.reducesinkkey0 (type: int), VALUE._col0 (type: int), VALUE._col1 (type: char(25)), VALUE._col2 (type: char(25)), VALUE._col3 (type: char(25)), VALUE._col4 (type: char(25)), VALUE._col5 (type: char(25)), VALUE._col6 (type: char(25)), VALUE._col7 (type: char(25)), VALUE._col8 (type: char(25)), VALUE._col9 (type: char(25)), VALUE._col10 (type: char(25)), VALUE._col11 (type: char(25)), VALUE._col12 (type: char(25)), VALUE._col13 (type: char(25)), VALUE._col14 (type: string) outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6, _col7, _col8, _col9, _col10, _col11, _col12, _col13, _col14, _col15 - Statistics: Num rows: 6 Data size: 854 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 892 Basic stats: COMPLETE Column stats: NONE File Output Operator compressed: false - Statistics: Num rows: 6 Data size: 854 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 892 Basic stats: COMPLETE Column stats: NONE table: input format: org.apache.hadoop.mapred.SequenceFileInputFormat output format: org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat @@ -1921,11 +1964,12 @@ POSTHOOK: Input: default@part_change_various_various_char@part=2 #### A masked pattern was here #### insert_num part c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 c12 c13 b 1 1 true NULL NULL 3244222 -99999999999 -29.0764 4.70614135E8 470614135 dynamic reptile dynamic reptile 0004-09-22 18:26:29.51954 2007-02-09 binary original -2 1 true 100 NULL 14 -23866739993 -3651.672 46114.284799488 46114.284799488 baffling baffling 2007-02-09 05:17:29.36875 0004-09-22 binary original -3 1 false 72 NULL -93222 30 -66475.56 -66475.561431 0.561431 1 1 6229-06-28 02:54:28.97011 5966-07-09 binary original -4 1 true -90 NULL 3289094 46114 9250341.0 9250340.75 9250340.75 junkyard junkyard 2002-05-10 05:29:48.99081 1815-05-06 binary original -5 2 true 400 44388 -100 953967041. 62.079153 718.78 1 verdict verdict timestamp date binary new -6 1 NULL -67 833 63993 NULL 905071.0 -4314.7918 -1240033819 trial trial 2016-03-07 03:02:22 2016-03-07 n)گ new +2 1 true 100 32767 NULL -3651 -9.223372E18 9.223372036854776E18 NULL 2007-02-09 05:17:29.36875 NULL NULL NULL +3 1 true 100 -32768 NULL -3651 -9.223372E18 9.223372036854776E18 NULL 2007-02-09 05:17:29.36875 NULL NULL NULL +4 1 false 72 NULL -93222 30 -66475.56 -66475.561431 0.561431 1 1 6229-06-28 02:54:28.97011 5966-07-09 binary original +5 1 true -90 NULL 3289094 46114 9250341.0 9250340.75 9250340.75 junkyard junkyard 2002-05-10 05:29:48.99081 1815-05-06 binary original +6 2 true 400 44388 -100 953967041. 62.079153 718.78 1 verdict verdict timestamp date binary new +7 1 NULL -67 833 63993 NULL 905071.0 -4314.7918 -1240033819 trial trial 2016-03-07 03:02:22 2016-03-07 n)گ new PREHOOK: query: drop table part_change_various_various_char PREHOOK: type: DROPTABLE PREHOOK: Input: default@part_change_various_various_char @@ -1950,17 +1994,19 @@ POSTHOOK: Output: database:default POSTHOOK: Output: default@part_change_various_various_char_trunc PREHOOK: query: insert into table part_change_various_various_char_trunc partition(part=1) values(1, true, 200, 72909, 3244222, -99999999999, -29.0764, 470614135, 470614135, 'dynamic reptile ', 'dynamic reptile ', '0004-09-22 18:26:29.519542222', '2007-02-09', 'binary', 'original'), - (2, 0, 100, 483777, 14, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, ' baffling ', ' baffling ', '2007-02-09 05:17:29.368756876', '0004-09-22', 'binary', 'original'), - (3, false, 72, 3244222, -93222, 30.774, - 66475.561431, -66475.561431, 0.561431, '1', '1', '6229-06-28 02:54:28.970117179', '5966-07-09', 'binary', 'original'), - (4, 1, -90, 754072151, 3289094, 46114.284799488, 9250340.75, 9250340.75, 9250340.75, 'junkyard', 'junkyard', '2002-05-10 05:29:48.990818073', '1815-05-06', 'binary', 'original') + (2, 0, 100, 32767, -23372036854775, -3651.672121, -9223372036854775808.0, 9223372036854775807.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, 100, -32768, 23372036854775, -3651.672121, -9223372036854775809.0, 9223372036854775808.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, 72, 3244222, -93222, 30.774, - 66475.561431, -66475.561431, 0.561431, '1', '1', '6229-06-28 02:54:28.970117179', '5966-07-09', 'binary', 'original'), + (5, 1, -90, 754072151, 3289094, 46114.284799488, 9250340.75, 9250340.75, 9250340.75, 'junkyard', 'junkyard', '2002-05-10 05:29:48.990818073', '1815-05-06', 'binary', 'original') PREHOOK: type: QUERY PREHOOK: Input: default@values__tmp__table__31 PREHOOK: Output: default@part_change_various_various_char_trunc@part=1 POSTHOOK: query: insert into table part_change_various_various_char_trunc partition(part=1) values(1, true, 200, 72909, 3244222, -99999999999, -29.0764, 470614135, 470614135, 'dynamic reptile ', 'dynamic reptile ', '0004-09-22 18:26:29.519542222', '2007-02-09', 'binary', 'original'), - (2, 0, 100, 483777, 14, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, ' baffling ', ' baffling ', '2007-02-09 05:17:29.368756876', '0004-09-22', 'binary', 'original'), - (3, false, 72, 3244222, -93222, 30.774, - 66475.561431, -66475.561431, 0.561431, '1', '1', '6229-06-28 02:54:28.970117179', '5966-07-09', 'binary', 'original'), - (4, 1, -90, 754072151, 3289094, 46114.284799488, 9250340.75, 9250340.75, 9250340.75, 'junkyard', 'junkyard', '2002-05-10 05:29:48.990818073', '1815-05-06', 'binary', 'original') + (2, 0, 100, 32767, -23372036854775, -3651.672121, -9223372036854775808.0, 9223372036854775807.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, 100, -32768, 23372036854775, -3651.672121, -9223372036854775809.0, 9223372036854775808.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, 72, 3244222, -93222, 30.774, - 66475.561431, -66475.561431, 0.561431, '1', '1', '6229-06-28 02:54:28.970117179', '5966-07-09', 'binary', 'original'), + (5, 1, -90, 754072151, 3289094, 46114.284799488, 9250340.75, 9250340.75, 9250340.75, 'junkyard', 'junkyard', '2002-05-10 05:29:48.990818073', '1815-05-06', 'binary', 'original') POSTHOOK: type: QUERY POSTHOOK: Input: default@values__tmp__table__31 POSTHOOK: Output: default@part_change_various_various_char_trunc@part=1 @@ -1992,9 +2038,10 @@ POSTHOOK: Input: default@part_change_various_various_char_trunc@part=1 #### A masked pattern was here #### insert_num part c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 c12 c13 b 1 1 true NULL NULL 3244222 -99999999999 -29.0764 4.70614135E8 470614135.000000000000000000 dynamic reptile dynamic 0004-09-22 18:26:29.519542222 2007-02-09 binary original -2 1 true 100 NULL 14 -23866739993 -3651.672 46114.284799488 46114.284799488000000000 baffling baffli 2007-02-09 05:17:29.368756876 0004-09-22 binary original -3 1 false 72 NULL -93222 30 -66475.56 -66475.561431 0.561431000000000000 1 1 6229-06-28 02:54:28.970117179 5966-07-09 binary original -4 1 true -90 NULL 3289094 46114 9250341.0 9250340.75 9250340.750000000000000000 junkyard junkyard 2002-05-10 05:29:48.990818073 1815-05-06 binary original +2 1 true 100 32767 NULL -3651 -9.223372E18 9.223372036854776E18 NULL 2007-02-09 05:17:29.368756876 NULL NULL NULL +3 1 true 100 -32768 NULL -3651 -9.223372E18 9.223372036854776E18 NULL 2007-02-09 05:17:29.368756876 NULL NULL NULL +4 1 false 72 NULL -93222 30 -66475.56 -66475.561431 0.561431000000000000 1 1 6229-06-28 02:54:28.970117179 5966-07-09 binary original +5 1 true -90 NULL 3289094 46114 9250341.0 9250340.75 9250340.750000000000000000 junkyard junkyard 2002-05-10 05:29:48.990818073 1815-05-06 binary original PREHOOK: query: -- Table-Non-Cascade CHANGE COLUMNS ... alter table part_change_various_various_char_trunc replace columns (insert_num int, c1 CHAR(8), c2 CHAR(8), c3 CHAR(8), c4 CHAR(8), c5 CHAR(8), c6 CHAR(8), c7 CHAR(8), c8 CHAR(8), c9 CHAR(8), c10 CHAR(8), c11 CHAR(8), c12 CHAR(8), c13 CHAR(8), b STRING) PREHOOK: type: ALTERTABLE_REPLACECOLS @@ -2006,12 +2053,12 @@ POSTHOOK: type: ALTERTABLE_REPLACECOLS POSTHOOK: Input: default@part_change_various_various_char_trunc POSTHOOK: Output: default@part_change_various_various_char_trunc PREHOOK: query: insert into table part_change_various_various_char_trunc partition(part=2) - values (5, 'true', '400', '44388', -'100', '953967041.', '62.079153', '718.78', '1', 'verdict', 'verdict', 'timestamp', 'date', 'binary', 'new') + values (6, 'true', '400', '44388', -'100', '953967041.', '62.079153', '718.78', '1', 'verdict', 'verdict', 'timestamp', 'date', 'binary', 'new') PREHOOK: type: QUERY PREHOOK: Input: default@values__tmp__table__32 PREHOOK: Output: default@part_change_various_various_char_trunc@part=2 POSTHOOK: query: insert into table part_change_various_various_char_trunc partition(part=2) - values (5, 'true', '400', '44388', -'100', '953967041.', '62.079153', '718.78', '1', 'verdict', 'verdict', 'timestamp', 'date', 'binary', 'new') + values (6, 'true', '400', '44388', -'100', '953967041.', '62.079153', '718.78', '1', 'verdict', 'verdict', 'timestamp', 'date', 'binary', 'new') POSTHOOK: type: QUERY POSTHOOK: Input: default@values__tmp__table__32 POSTHOOK: Output: default@part_change_various_various_char_trunc@part=2 @@ -2032,12 +2079,12 @@ POSTHOOK: Lineage: part_change_various_various_char_trunc PARTITION(part=2).c9 E POSTHOOK: Lineage: part_change_various_various_char_trunc PARTITION(part=2).insert_num EXPRESSION [(values__tmp__table__32)values__tmp__table__32.FieldSchema(name:tmp_values_col1, type:string, comment:), ] _col0 _col1 _col2 _col3 _col4 _col5 _col6 _col7 _col8 _col9 _col10 _col11 _col12 _col13 _col14 PREHOOK: query: insert into table part_change_various_various_char_trunc partition(part=1) - values (6,-'false', '-67', '833', '63993', ' 1255178165.77663', '905070.974', '-4314.7918', -'1240033819', 'trial', 'trial', '2016-03-07 03:02:22.0', '2016-03-07', 'binary', 'new') + values (7,-'false', '-67', '833', '63993', ' 1255178165.77663', '905070.974', '-4314.7918', -'1240033819', 'trial', 'trial', '2016-03-07 03:02:22.0', '2016-03-07', 'binary', 'new') PREHOOK: type: QUERY PREHOOK: Input: default@values__tmp__table__33 PREHOOK: Output: default@part_change_various_various_char_trunc@part=1 POSTHOOK: query: insert into table part_change_various_various_char_trunc partition(part=1) - values (6,-'false', '-67', '833', '63993', ' 1255178165.77663', '905070.974', '-4314.7918', -'1240033819', 'trial', 'trial', '2016-03-07 03:02:22.0', '2016-03-07', 'binary', 'new') + values (7,-'false', '-67', '833', '63993', ' 1255178165.77663', '905070.974', '-4314.7918', -'1240033819', 'trial', 'trial', '2016-03-07 03:02:22.0', '2016-03-07', 'binary', 'new') POSTHOOK: type: QUERY POSTHOOK: Input: default@values__tmp__table__33 POSTHOOK: Output: default@part_change_various_various_char_trunc@part=1 @@ -2074,25 +2121,25 @@ STAGE PLANS: Map Operator Tree: TableScan alias: part_change_various_various_char_trunc - Statistics: Num rows: 6 Data size: 804 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 848 Basic stats: COMPLETE Column stats: NONE Select Operator expressions: insert_num (type: int), part (type: int), c1 (type: char(8)), c2 (type: char(8)), c3 (type: char(8)), c4 (type: char(8)), c5 (type: char(8)), c6 (type: char(8)), c7 (type: char(8)), c8 (type: char(8)), c9 (type: char(8)), c10 (type: char(8)), c11 (type: char(8)), c12 (type: char(8)), c13 (type: char(8)), b (type: string) outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6, _col7, _col8, _col9, _col10, _col11, _col12, _col13, _col14, _col15 - Statistics: Num rows: 6 Data size: 804 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 848 Basic stats: COMPLETE Column stats: NONE Reduce Output Operator key expressions: _col0 (type: int) sort order: + - Statistics: Num rows: 6 Data size: 804 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 848 Basic stats: COMPLETE Column stats: NONE value expressions: _col1 (type: int), _col2 (type: char(8)), _col3 (type: char(8)), _col4 (type: char(8)), _col5 (type: char(8)), _col6 (type: char(8)), _col7 (type: char(8)), _col8 (type: char(8)), _col9 (type: char(8)), _col10 (type: char(8)), _col11 (type: char(8)), _col12 (type: char(8)), _col13 (type: char(8)), _col14 (type: char(8)), _col15 (type: string) Execution mode: vectorized Reduce Operator Tree: Select Operator expressions: KEY.reducesinkkey0 (type: int), VALUE._col0 (type: int), VALUE._col1 (type: char(8)), VALUE._col2 (type: char(8)), VALUE._col3 (type: char(8)), VALUE._col4 (type: char(8)), VALUE._col5 (type: char(8)), VALUE._col6 (type: char(8)), VALUE._col7 (type: char(8)), VALUE._col8 (type: char(8)), VALUE._col9 (type: char(8)), VALUE._col10 (type: char(8)), VALUE._col11 (type: char(8)), VALUE._col12 (type: char(8)), VALUE._col13 (type: char(8)), VALUE._col14 (type: string) outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6, _col7, _col8, _col9, _col10, _col11, _col12, _col13, _col14, _col15 - Statistics: Num rows: 6 Data size: 804 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 848 Basic stats: COMPLETE Column stats: NONE File Output Operator compressed: false - Statistics: Num rows: 6 Data size: 804 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 848 Basic stats: COMPLETE Column stats: NONE table: input format: org.apache.hadoop.mapred.SequenceFileInputFormat output format: org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat @@ -2118,11 +2165,12 @@ POSTHOOK: Input: default@part_change_various_various_char_trunc@part=2 #### A masked pattern was here #### insert_num part c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 c12 c13 b 1 1 true NULL NULL 3244222 -9999999 -29.0764 4.706141 47061413 dynamic dynamic 0004-09- 2007-02- binary original -2 1 true 100 NULL 14 -2386673 -3651.67 46114.28 46114.28 baffli baffli 2007-02- 0004-09- binary original -3 1 false 72 NULL -93222 30 -66475.5 -66475.5 0.561431 1 1 6229-06- 5966-07- binary original -4 1 true -90 NULL 3289094 46114 9250341. 9250340. 9250340. junkyard junkyard 2002-05- 1815-05- binary original -5 2 true 400 44388 -100 95396704 62.07915 718.78 1 verdict verdict timestam date binary new -6 1 NULL -67 833 63993 NULL 905070.9 -4314.79 -1240033 trial trial NULL NULL n)گ new +2 1 true 100 32767 NULL -3651 -9.22337 9.223372 NULL 2007-02- NULL NULL NULL +3 1 true 100 -32768 NULL -3651 -9.22337 9.223372 NULL 2007-02- NULL NULL NULL +4 1 false 72 NULL -93222 30 -66475.5 -66475.5 0.561431 1 1 6229-06- 5966-07- binary original +5 1 true -90 NULL 3289094 46114 9250341. 9250340. 9250340. junkyard junkyard 2002-05- 1815-05- binary original +6 2 true 400 44388 -100 95396704 62.07915 718.78 1 verdict verdict timestam date binary new +7 1 NULL -67 833 63993 NULL 905070.9 -4314.79 -1240033 trial trial NULL NULL n)گ new PREHOOK: query: drop table part_change_various_various_char_trunc PREHOOK: type: DROPTABLE PREHOOK: Input: default@part_change_various_various_char_trunc @@ -2147,17 +2195,19 @@ POSTHOOK: Output: database:default POSTHOOK: Output: default@part_change_various_various_varchar PREHOOK: query: insert into table part_change_various_various_varchar partition(part=1) values(1, true, 200, 72909, 3244222, -99999999999, -29.0764, 470614135, 470614135, 'dynamic reptile ', 'dynamic reptile ', '0004-09-22 18:26:29.519542222', '2007-02-09', 'binary', 'original'), - (2, 0, 100, 483777, 14, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, ' baffling ', ' baffling ', '2007-02-09 05:17:29.368756876', '0004-09-22', 'binary', 'original'), - (3, false, 72, 3244222, -93222, 30.774, - 66475.561431, -66475.561431, 0.561431, '1', '1', '6229-06-28 02:54:28.970117179', '5966-07-09', 'binary', 'original'), - (4, 1, -90, 754072151, 3289094, 46114.284799488, 9250340.75, 9250340.75, 9250340.75, 'junkyard', 'junkyard', '2002-05-10 05:29:48.990818073', '1815-05-06', 'binary', 'original') + (2, 0, 100, 32767, -23372036854775, -9223372036854775808.0, -9223372036854775808.0, 9223372036854775807.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, 100, -32768, 23372036854775, -9223372036854775809.0, -9223372036854775809.0, 9223372036854775808.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, 72, 3244222, -93222, 30.774, - 66475.561431, -66475.561431, 0.561431, '1', '1', '6229-06-28 02:54:28.970117179', '5966-07-09', 'binary', 'original'), + (5, 1, -90, 754072151, 3289094, 46114.284799488, 9250340.75, 9250340.75, 9250340.75, 'junkyard', 'junkyard', '2002-05-10 05:29:48.990818073', '1815-05-06', 'binary', 'original') PREHOOK: type: QUERY PREHOOK: Input: default@values__tmp__table__34 PREHOOK: Output: default@part_change_various_various_varchar@part=1 POSTHOOK: query: insert into table part_change_various_various_varchar partition(part=1) values(1, true, 200, 72909, 3244222, -99999999999, -29.0764, 470614135, 470614135, 'dynamic reptile ', 'dynamic reptile ', '0004-09-22 18:26:29.519542222', '2007-02-09', 'binary', 'original'), - (2, 0, 100, 483777, 14, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, ' baffling ', ' baffling ', '2007-02-09 05:17:29.368756876', '0004-09-22', 'binary', 'original'), - (3, false, 72, 3244222, -93222, 30.774, - 66475.561431, -66475.561431, 0.561431, '1', '1', '6229-06-28 02:54:28.970117179', '5966-07-09', 'binary', 'original'), - (4, 1, -90, 754072151, 3289094, 46114.284799488, 9250340.75, 9250340.75, 9250340.75, 'junkyard', 'junkyard', '2002-05-10 05:29:48.990818073', '1815-05-06', 'binary', 'original') + (2, 0, 100, 32767, -23372036854775, -9223372036854775808.0, -9223372036854775808.0, 9223372036854775807.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, 100, -32768, 23372036854775, -9223372036854775809.0, -9223372036854775809.0, 9223372036854775808.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, 72, 3244222, -93222, 30.774, - 66475.561431, -66475.561431, 0.561431, '1', '1', '6229-06-28 02:54:28.970117179', '5966-07-09', 'binary', 'original'), + (5, 1, -90, 754072151, 3289094, 46114.284799488, 9250340.75, 9250340.75, 9250340.75, 'junkyard', 'junkyard', '2002-05-10 05:29:48.990818073', '1815-05-06', 'binary', 'original') POSTHOOK: type: QUERY POSTHOOK: Input: default@values__tmp__table__34 POSTHOOK: Output: default@part_change_various_various_varchar@part=1 @@ -2189,9 +2239,10 @@ POSTHOOK: Input: default@part_change_various_various_varchar@part=1 #### A masked pattern was here #### insert_num part c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 c12 c13 b 1 1 true NULL NULL 3244222 -99999999999 -29.0764 4.70614135E8 470614135.000000000000000000 dynamic reptile dynamic reptile 0004-09-22 18:26:29.519542222 2007-02-09 binary original -2 1 true 100 NULL 14 -23866739993 -3651.672 46114.284799488 46114.284799488000000000 baffling baffling 2007-02-09 05:17:29.368756876 0004-09-22 binary original -3 1 false 72 NULL -93222 30 -66475.56 -66475.561431 0.561431000000000000 1 1 6229-06-28 02:54:28.970117179 5966-07-09 binary original -4 1 true -90 NULL 3289094 46114 9250341.0 9250340.75 9250340.750000000000000000 junkyard junkyard 2002-05-10 05:29:48.990818073 1815-05-06 binary original +2 1 true 100 32767 NULL -9223372036854775808 -9.223372E18 9.223372036854776E18 NULL 2007-02-09 05:17:29.368756876 NULL NULL NULL +3 1 true 100 -32768 NULL NULL -9.223372E18 9.223372036854776E18 NULL 2007-02-09 05:17:29.368756876 NULL NULL NULL +4 1 false 72 NULL -93222 30 -66475.56 -66475.561431 0.561431000000000000 1 1 6229-06-28 02:54:28.970117179 5966-07-09 binary original +5 1 true -90 NULL 3289094 46114 9250341.0 9250340.75 9250340.750000000000000000 junkyard junkyard 2002-05-10 05:29:48.990818073 1815-05-06 binary original PREHOOK: query: -- Table-Non-Cascade CHANGE COLUMNS ... alter table part_change_various_various_varchar replace columns (insert_num int, c1 VARCHAR(25), c2 VARCHAR(25), c3 VARCHAR(25), c4 VARCHAR(25), c5 VARCHAR(25), c6 VARCHAR(25), c7 VARCHAR(25), c8 VARCHAR(25), c9 VARCHAR(25), c10 VARCHAR(25), c11 VARCHAR(25), c12 VARCHAR(25), c13 VARCHAR(25), b STRING) PREHOOK: type: ALTERTABLE_REPLACECOLS @@ -2203,12 +2254,12 @@ POSTHOOK: type: ALTERTABLE_REPLACECOLS POSTHOOK: Input: default@part_change_various_various_varchar POSTHOOK: Output: default@part_change_various_various_varchar PREHOOK: query: insert into table part_change_various_various_varchar partition(part=2) - values (5, 'true', '400', '44388', -'100', '953967041.', '62.079153', '718.78', '1', 'verdict', 'verdict', 'timestamp', 'date', 'binary', 'new') + values (6, 'true', '400', '44388', -'100', '953967041.', '62.079153', '718.78', '1', 'verdict', 'verdict', 'timestamp', 'date', 'binary', 'new') PREHOOK: type: QUERY PREHOOK: Input: default@values__tmp__table__35 PREHOOK: Output: default@part_change_various_various_varchar@part=2 POSTHOOK: query: insert into table part_change_various_various_varchar partition(part=2) - values (5, 'true', '400', '44388', -'100', '953967041.', '62.079153', '718.78', '1', 'verdict', 'verdict', 'timestamp', 'date', 'binary', 'new') + values (6, 'true', '400', '44388', -'100', '953967041.', '62.079153', '718.78', '1', 'verdict', 'verdict', 'timestamp', 'date', 'binary', 'new') POSTHOOK: type: QUERY POSTHOOK: Input: default@values__tmp__table__35 POSTHOOK: Output: default@part_change_various_various_varchar@part=2 @@ -2229,12 +2280,12 @@ POSTHOOK: Lineage: part_change_various_various_varchar PARTITION(part=2).c9 EXPR POSTHOOK: Lineage: part_change_various_various_varchar PARTITION(part=2).insert_num EXPRESSION [(values__tmp__table__35)values__tmp__table__35.FieldSchema(name:tmp_values_col1, type:string, comment:), ] _col0 _col1 _col2 _col3 _col4 _col5 _col6 _col7 _col8 _col9 _col10 _col11 _col12 _col13 _col14 PREHOOK: query: insert into table part_change_various_various_varchar partition(part=1) - values (6,-'false', '-67', '833', '63993', ' 1255178165.77663', '905070.974', '-4314.7918', -'1240033819', 'trial', 'trial', '2016-03-07 03:02:22.0', '2016-03-07', 'binary', 'new') + values (7,-'false', '-67', '833', '63993', ' 1255178165.77663', '905070.974', '-4314.7918', -'1240033819', 'trial', 'trial', '2016-03-07 03:02:22.0', '2016-03-07', 'binary', 'new') PREHOOK: type: QUERY PREHOOK: Input: default@values__tmp__table__36 PREHOOK: Output: default@part_change_various_various_varchar@part=1 POSTHOOK: query: insert into table part_change_various_various_varchar partition(part=1) - values (6,-'false', '-67', '833', '63993', ' 1255178165.77663', '905070.974', '-4314.7918', -'1240033819', 'trial', 'trial', '2016-03-07 03:02:22.0', '2016-03-07', 'binary', 'new') + values (7,-'false', '-67', '833', '63993', ' 1255178165.77663', '905070.974', '-4314.7918', -'1240033819', 'trial', 'trial', '2016-03-07 03:02:22.0', '2016-03-07', 'binary', 'new') POSTHOOK: type: QUERY POSTHOOK: Input: default@values__tmp__table__36 POSTHOOK: Output: default@part_change_various_various_varchar@part=1 @@ -2271,25 +2322,25 @@ STAGE PLANS: Map Operator Tree: TableScan alias: part_change_various_various_varchar - Statistics: Num rows: 6 Data size: 914 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 1003 Basic stats: COMPLETE Column stats: NONE Select Operator expressions: insert_num (type: int), part (type: int), c1 (type: varchar(25)), c2 (type: varchar(25)), c3 (type: varchar(25)), c4 (type: varchar(25)), c5 (type: varchar(25)), c6 (type: varchar(25)), c7 (type: varchar(25)), c8 (type: varchar(25)), c9 (type: varchar(25)), c10 (type: varchar(25)), c11 (type: varchar(25)), c12 (type: varchar(25)), c13 (type: varchar(25)), b (type: string) outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6, _col7, _col8, _col9, _col10, _col11, _col12, _col13, _col14, _col15 - Statistics: Num rows: 6 Data size: 914 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 1003 Basic stats: COMPLETE Column stats: NONE Reduce Output Operator key expressions: _col0 (type: int) sort order: + - Statistics: Num rows: 6 Data size: 914 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 1003 Basic stats: COMPLETE Column stats: NONE value expressions: _col1 (type: int), _col2 (type: varchar(25)), _col3 (type: varchar(25)), _col4 (type: varchar(25)), _col5 (type: varchar(25)), _col6 (type: varchar(25)), _col7 (type: varchar(25)), _col8 (type: varchar(25)), _col9 (type: varchar(25)), _col10 (type: varchar(25)), _col11 (type: varchar(25)), _col12 (type: varchar(25)), _col13 (type: varchar(25)), _col14 (type: varchar(25)), _col15 (type: string) Execution mode: vectorized Reduce Operator Tree: Select Operator expressions: KEY.reducesinkkey0 (type: int), VALUE._col0 (type: int), VALUE._col1 (type: varchar(25)), VALUE._col2 (type: varchar(25)), VALUE._col3 (type: varchar(25)), VALUE._col4 (type: varchar(25)), VALUE._col5 (type: varchar(25)), VALUE._col6 (type: varchar(25)), VALUE._col7 (type: varchar(25)), VALUE._col8 (type: varchar(25)), VALUE._col9 (type: varchar(25)), VALUE._col10 (type: varchar(25)), VALUE._col11 (type: varchar(25)), VALUE._col12 (type: varchar(25)), VALUE._col13 (type: varchar(25)), VALUE._col14 (type: string) outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6, _col7, _col8, _col9, _col10, _col11, _col12, _col13, _col14, _col15 - Statistics: Num rows: 6 Data size: 914 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 1003 Basic stats: COMPLETE Column stats: NONE File Output Operator compressed: false - Statistics: Num rows: 6 Data size: 914 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 1003 Basic stats: COMPLETE Column stats: NONE table: input format: org.apache.hadoop.mapred.SequenceFileInputFormat output format: org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat @@ -2315,11 +2366,12 @@ POSTHOOK: Input: default@part_change_various_various_varchar@part=2 #### A masked pattern was here #### insert_num part c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 c12 c13 b 1 1 true NULL NULL 3244222 -99999999999 -29.0764 4.70614135E8 470614135 dynamic reptile dynamic reptile 0004-09-22 18:26:29.51954 2007-02-09 binary original -2 1 true 100 NULL 14 -23866739993 -3651.672 46114.284799488 46114.284799488 baffling baffling 2007-02-09 05:17:29.36875 0004-09-22 binary original -3 1 false 72 NULL -93222 30 -66475.56 -66475.561431 0.561431 1 1 6229-06-28 02:54:28.97011 5966-07-09 binary original -4 1 true -90 NULL 3289094 46114 9250341.0 9250340.75 9250340.75 junkyard junkyard 2002-05-10 05:29:48.99081 1815-05-06 binary original -5 2 true 400 44388 -100 953967041. 62.079153 718.78 1 verdict verdict timestamp date binary new -6 1 NULL -67 833 63993 NULL 905071.0 -4314.7918 -1240033819 trial trial 2016-03-07 03:02:22 2016-03-07 n)گ new +2 1 true 100 32767 NULL -9223372036854775808 -9.223372E18 9.223372036854776E18 NULL 2007-02-09 05:17:29.36875 NULL NULL NULL +3 1 true 100 -32768 NULL NULL -9.223372E18 9.223372036854776E18 NULL 2007-02-09 05:17:29.36875 NULL NULL NULL +4 1 false 72 NULL -93222 30 -66475.56 -66475.561431 0.561431 1 1 6229-06-28 02:54:28.97011 5966-07-09 binary original +5 1 true -90 NULL 3289094 46114 9250341.0 9250340.75 9250340.75 junkyard junkyard 2002-05-10 05:29:48.99081 1815-05-06 binary original +6 2 true 400 44388 -100 953967041. 62.079153 718.78 1 verdict verdict timestamp date binary new +7 1 NULL -67 833 63993 NULL 905071.0 -4314.7918 -1240033819 trial trial 2016-03-07 03:02:22 2016-03-07 n)گ new PREHOOK: query: drop table part_change_various_various_varchar PREHOOK: type: DROPTABLE PREHOOK: Input: default@part_change_various_various_varchar @@ -2344,7 +2396,8 @@ POSTHOOK: Output: database:default POSTHOOK: Output: default@part_change_various_various_varchar_trunc PREHOOK: query: insert into table part_change_various_various_varchar_trunc partition(part=1) values(1, true, 200, 72909, 3244222, -99999999999, -29.0764, 470614135, 470614135, 'dynamic reptile ', 'dynamic reptile ', '0004-09-22 18:26:29.519542222', '2007-02-09', 'binary', 'original'), - (2, 0, 100, 483777, 14, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, ' baffling ', ' baffling ', '2007-02-09 05:17:29.368756876', '0004-09-22', 'binary', 'original'), + (2, 0, 100, 32767, -23372036854775, -9223372036854775808.0, -9223372036854775808.0, 9223372036854775807.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, 100, -32768, 23372036854775, -9223372036854775809.0, -9223372036854775809.0, 9223372036854775808.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), (3, false, 72, 3244222, -93222, 30.774, - 66475.561431, -66475.561431, 0.561431, '1', '1', '6229-06-28 02:54:28.970117179', '5966-07-09', 'binary', 'original'), (4, 1, -90, 754072151, 3289094, 46114.284799488, 9250340.75, 9250340.75, 9250340.75, 'junkyard', 'junkyard', '2002-05-10 05:29:48.990818073', '1815-05-06', 'binary', 'original') PREHOOK: type: QUERY @@ -2352,7 +2405,8 @@ PREHOOK: Input: default@values__tmp__table__37 PREHOOK: Output: default@part_change_various_various_varchar_trunc@part=1 POSTHOOK: query: insert into table part_change_various_various_varchar_trunc partition(part=1) values(1, true, 200, 72909, 3244222, -99999999999, -29.0764, 470614135, 470614135, 'dynamic reptile ', 'dynamic reptile ', '0004-09-22 18:26:29.519542222', '2007-02-09', 'binary', 'original'), - (2, 0, 100, 483777, 14, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, ' baffling ', ' baffling ', '2007-02-09 05:17:29.368756876', '0004-09-22', 'binary', 'original'), + (2, 0, 100, 32767, -23372036854775, -9223372036854775808.0, -9223372036854775808.0, 9223372036854775807.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, 100, -32768, 23372036854775, -9223372036854775809.0, -9223372036854775809.0, 9223372036854775808.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), (3, false, 72, 3244222, -93222, 30.774, - 66475.561431, -66475.561431, 0.561431, '1', '1', '6229-06-28 02:54:28.970117179', '5966-07-09', 'binary', 'original'), (4, 1, -90, 754072151, 3289094, 46114.284799488, 9250340.75, 9250340.75, 9250340.75, 'junkyard', 'junkyard', '2002-05-10 05:29:48.990818073', '1815-05-06', 'binary', 'original') POSTHOOK: type: QUERY @@ -2386,8 +2440,9 @@ POSTHOOK: Input: default@part_change_various_various_varchar_trunc@part=1 #### A masked pattern was here #### insert_num part c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 c12 c13 b 1 1 true NULL NULL 3244222 -99999999999 -29.0764 4.70614135E8 470614135.000000000000000000 dynamic reptile dynamic reptile 0004-09-22 18:26:29.519542222 2007-02-09 binary original -2 1 true 100 NULL 14 -23866739993 -3651.672 46114.284799488 46114.284799488000000000 baffling baffling 2007-02-09 05:17:29.368756876 0004-09-22 binary original +2 1 true 100 32767 NULL -9223372036854775808 -9.223372E18 9.223372036854776E18 NULL 2007-02-09 05:17:29.368756876 NULL NULL NULL 3 1 false 72 NULL -93222 30 -66475.56 -66475.561431 0.561431000000000000 1 1 6229-06-28 02:54:28.970117179 5966-07-09 binary original +3 1 true 100 -32768 NULL NULL -9.223372E18 9.223372036854776E18 NULL 2007-02-09 05:17:29.368756876 NULL NULL NULL 4 1 true -90 NULL 3289094 46114 9250341.0 9250340.75 9250340.750000000000000000 junkyard junkyard 2002-05-10 05:29:48.990818073 1815-05-06 binary original PREHOOK: query: -- Table-Non-Cascade CHANGE COLUMNS ... alter table part_change_various_various_varchar_trunc replace columns (insert_num int, c1 VARCHAR(8), c2 VARCHAR(8), c3 VARCHAR(8), c4 VARCHAR(8), c5 VARCHAR(8), c6 VARCHAR(8), c7 VARCHAR(8), c8 VARCHAR(8), c9 VARCHAR(8), c10 VARCHAR(8), c11 VARCHAR(8), c12 VARCHAR(8), c13 VARCHAR(8), b STRING) @@ -2468,25 +2523,25 @@ STAGE PLANS: Map Operator Tree: TableScan alias: part_change_various_various_varchar_trunc - Statistics: Num rows: 6 Data size: 879 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 968 Basic stats: COMPLETE Column stats: NONE Select Operator expressions: insert_num (type: int), part (type: int), c1 (type: varchar(8)), c2 (type: varchar(8)), c3 (type: varchar(8)), c4 (type: varchar(8)), c5 (type: varchar(8)), c6 (type: varchar(8)), c7 (type: varchar(8)), c8 (type: varchar(8)), c9 (type: varchar(8)), c10 (type: varchar(8)), c11 (type: varchar(8)), c12 (type: varchar(8)), c13 (type: varchar(8)), b (type: string) outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6, _col7, _col8, _col9, _col10, _col11, _col12, _col13, _col14, _col15 - Statistics: Num rows: 6 Data size: 879 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 968 Basic stats: COMPLETE Column stats: NONE Reduce Output Operator key expressions: _col0 (type: int) sort order: + - Statistics: Num rows: 6 Data size: 879 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 968 Basic stats: COMPLETE Column stats: NONE value expressions: _col1 (type: int), _col2 (type: varchar(8)), _col3 (type: varchar(8)), _col4 (type: varchar(8)), _col5 (type: varchar(8)), _col6 (type: varchar(8)), _col7 (type: varchar(8)), _col8 (type: varchar(8)), _col9 (type: varchar(8)), _col10 (type: varchar(8)), _col11 (type: varchar(8)), _col12 (type: varchar(8)), _col13 (type: varchar(8)), _col14 (type: varchar(8)), _col15 (type: string) Execution mode: vectorized Reduce Operator Tree: Select Operator expressions: KEY.reducesinkkey0 (type: int), VALUE._col0 (type: int), VALUE._col1 (type: varchar(8)), VALUE._col2 (type: varchar(8)), VALUE._col3 (type: varchar(8)), VALUE._col4 (type: varchar(8)), VALUE._col5 (type: varchar(8)), VALUE._col6 (type: varchar(8)), VALUE._col7 (type: varchar(8)), VALUE._col8 (type: varchar(8)), VALUE._col9 (type: varchar(8)), VALUE._col10 (type: varchar(8)), VALUE._col11 (type: varchar(8)), VALUE._col12 (type: varchar(8)), VALUE._col13 (type: varchar(8)), VALUE._col14 (type: string) outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6, _col7, _col8, _col9, _col10, _col11, _col12, _col13, _col14, _col15 - Statistics: Num rows: 6 Data size: 879 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 968 Basic stats: COMPLETE Column stats: NONE File Output Operator compressed: false - Statistics: Num rows: 6 Data size: 879 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 968 Basic stats: COMPLETE Column stats: NONE table: input format: org.apache.hadoop.mapred.SequenceFileInputFormat output format: org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat @@ -2512,8 +2567,9 @@ POSTHOOK: Input: default@part_change_various_various_varchar_trunc@part=2 #### A masked pattern was here #### insert_num part c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 c12 c13 b 1 1 true NULL NULL 3244222 -9999999 -29.0764 4.706141 47061413 dynamic dynamic 0004-09- 2007-02- binary original -2 1 true 100 NULL 14 -2386673 -3651.67 46114.28 46114.28 baffli baffli 2007-02- 0004-09- binary original +2 1 true 100 32767 NULL -9223372 -9.22337 9.223372 NULL 2007-02- NULL NULL NULL 3 1 false 72 NULL -93222 30 -66475.5 -66475.5 0.561431 1 1 6229-06- 5966-07- binary original +3 1 true 100 -32768 NULL NULL -9.22337 9.223372 NULL 2007-02- NULL NULL NULL 4 1 true -90 NULL 3289094 46114 9250341. 9250340. 9250340. junkyard junkyard 2002-05- 1815-05- binary original 5 2 true 400 44388 -100 95396704 62.07915 718.78 1 verdict verdict timestam date binary new 6 1 NULL -67 833 63993 NULL 905070.9 -4314.79 -1240033 trial trial NULL NULL n)گ new @@ -2541,17 +2597,19 @@ POSTHOOK: Output: database:default POSTHOOK: Output: default@part_change_various_various_timestamp PREHOOK: query: insert into table part_change_various_various_timestamp partition(part=1) values(1, true, 200, 72909, 3244222, -99999999999, -29.0764, 470614135, 470614135, '0004-09-22 18:26:29.519542222', '0004-09-22 18:26:29.519542222', '0004-09-22 18:26:29.519542222', '2007-02-09', 'original'), - (2, 0, 100, 483777, 14, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, '2007-02-09 05:17:29.368756876', '2007-02-09 05:17:29.368756876', '2007-02-09 05:17:29.368756876', '0004-09-22', 'original'), - (3, false, 72, 3244222, -93222, 30.774, - 66475.561431, -66475.561431, 0.561431, '6229-06-28 02:54:28.970117179', '6229-06-28 02:54:28.970117179', '6229-06-28 02:54:28.970117179', '5966-07-09', 'original'), - (4, 1, -90, 754072151, 3289094, 46114.284799488, 9250340.75, 9250340.75, 9250340.75, '2002-05-10 05:29:48.990818073', '2002-05-10 05:29:48.990818073', '2002-05-10 05:29:48.990818073', '1815-05-06', 'original') + (2, 0, 100, 32767, -23372036854775, -9223372036854775808.0, -9223372036854775808.0, 9223372036854775807.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, 100, -32768, 23372036854775, -9223372036854775809.0, -9223372036854775809.0, 9223372036854775808.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, 72, 3244222, -93222, 30.774, - 66475.561431, -66475.561431, 0.561431, '6229-06-28 02:54:28.970117179', '6229-06-28 02:54:28.970117179', '6229-06-28 02:54:28.970117179', '5966-07-09', 'original'), + (5, 1, -90, 754072151, 3289094, 46114.284799488, 9250340.75, 9250340.75, 9250340.75, '2002-05-10 05:29:48.990818073', '2002-05-10 05:29:48.990818073', '2002-05-10 05:29:48.990818073', '1815-05-06', 'original') PREHOOK: type: QUERY PREHOOK: Input: default@values__tmp__table__40 PREHOOK: Output: default@part_change_various_various_timestamp@part=1 POSTHOOK: query: insert into table part_change_various_various_timestamp partition(part=1) values(1, true, 200, 72909, 3244222, -99999999999, -29.0764, 470614135, 470614135, '0004-09-22 18:26:29.519542222', '0004-09-22 18:26:29.519542222', '0004-09-22 18:26:29.519542222', '2007-02-09', 'original'), - (2, 0, 100, 483777, 14, -23866739993, -3651.672121, 46114.284799488, 46114.284799488, '2007-02-09 05:17:29.368756876', '2007-02-09 05:17:29.368756876', '2007-02-09 05:17:29.368756876', '0004-09-22', 'original'), - (3, false, 72, 3244222, -93222, 30.774, - 66475.561431, -66475.561431, 0.561431, '6229-06-28 02:54:28.970117179', '6229-06-28 02:54:28.970117179', '6229-06-28 02:54:28.970117179', '5966-07-09', 'original'), - (4, 1, -90, 754072151, 3289094, 46114.284799488, 9250340.75, 9250340.75, 9250340.75, '2002-05-10 05:29:48.990818073', '2002-05-10 05:29:48.990818073', '2002-05-10 05:29:48.990818073', '1815-05-06', 'original') + (2, 0, 100, 32767, -23372036854775, -9223372036854775808.0, -9223372036854775808.0, 9223372036854775807.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (3, 0, 100, -32768, 23372036854775, -9223372036854775809.0, -9223372036854775809.0, 9223372036854775808.0, '', '', '', '2007-02-09 05:17:29.368756876', 'original'), + (4, false, 72, 3244222, -93222, 30.774, - 66475.561431, -66475.561431, 0.561431, '6229-06-28 02:54:28.970117179', '6229-06-28 02:54:28.970117179', '6229-06-28 02:54:28.970117179', '5966-07-09', 'original'), + (5, 1, -90, 754072151, 3289094, 46114.284799488, 9250340.75, 9250340.75, 9250340.75, '2002-05-10 05:29:48.990818073', '2002-05-10 05:29:48.990818073', '2002-05-10 05:29:48.990818073', '1815-05-06', 'original') POSTHOOK: type: QUERY POSTHOOK: Input: default@values__tmp__table__40 POSTHOOK: Output: default@part_change_various_various_timestamp@part=1 @@ -2582,9 +2640,10 @@ POSTHOOK: Input: default@part_change_various_various_timestamp@part=1 #### A masked pattern was here #### insert_num part c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 c12 b 1 1 true NULL NULL 3244222 -99999999999 -29.0764 4.70614135E8 470614135.000000000000000000 0004-09-22 18:26:29.519542222 0004-09-22 18:26:29.51954 0004-09-22 18:26:29.51954 2007-02-09 original -2 1 true 100 NULL 14 -23866739993 -3651.672 46114.284799488 46114.284799488000000000 2007-02-09 05:17:29.368756876 2007-02-09 05:17:29.36875 2007-02-09 05:17:29.36875 0004-09-22 original -3 1 false 72 NULL -93222 30 -66475.56 -66475.561431 0.561431000000000000 6229-06-28 02:54:28.970117179 6229-06-28 02:54:28.97011 6229-06-28 02:54:28.97011 5966-07-09 original -4 1 true -90 NULL 3289094 46114 9250341.0 9250340.75 9250340.750000000000000000 2002-05-10 05:29:48.990818073 2002-05-10 05:29:48.99081 2002-05-10 05:29:48.99081 1815-05-06 original +2 1 true 100 32767 NULL -9223372036854775808 -9.223372E18 9.223372036854776E18 NULL 2007-02-09 05:17:29.36875 NULL NULL +3 1 true 100 -32768 NULL NULL -9.223372E18 9.223372036854776E18 NULL 2007-02-09 05:17:29.36875 NULL NULL +4 1 false 72 NULL -93222 30 -66475.56 -66475.561431 0.561431000000000000 6229-06-28 02:54:28.970117179 6229-06-28 02:54:28.97011 6229-06-28 02:54:28.97011 5966-07-09 original +5 1 true -90 NULL 3289094 46114 9250341.0 9250340.75 9250340.750000000000000000 2002-05-10 05:29:48.990818073 2002-05-10 05:29:48.99081 2002-05-10 05:29:48.99081 1815-05-06 original PREHOOK: query: -- Table-Non-Cascade CHANGE COLUMNS ... alter table part_change_various_various_timestamp replace columns (insert_num int, c1 TIMESTAMP, c2 TIMESTAMP, c3 TIMESTAMP, c4 TIMESTAMP, c5 TIMESTAMP, c6 TIMESTAMP, c7 TIMESTAMP, c8 TIMESTAMP, c9 TIMESTAMP, c10 TIMESTAMP, c11 TIMESTAMP, c12 TIMESTAMP, b STRING) PREHOOK: type: ALTERTABLE_REPLACECOLS @@ -2596,12 +2655,12 @@ POSTHOOK: type: ALTERTABLE_REPLACECOLS POSTHOOK: Input: default@part_change_various_various_timestamp POSTHOOK: Output: default@part_change_various_various_timestamp PREHOOK: query: insert into table part_change_various_various_timestamp partition(part=2) - values (5, 'true', '400', '44388', -'100', '953967041.', '62.079153', '718.78', '1', 'timestamp', 'timestamp', 'timestamp', 'date', 'new') + values (6, 'true', '400', '44388', -'100', '953967041.', '62.079153', '718.78', '1', 'timestamp', 'timestamp', 'timestamp', 'date', 'new') PREHOOK: type: QUERY PREHOOK: Input: default@values__tmp__table__41 PREHOOK: Output: default@part_change_various_various_timestamp@part=2 POSTHOOK: query: insert into table part_change_various_various_timestamp partition(part=2) - values (5, 'true', '400', '44388', -'100', '953967041.', '62.079153', '718.78', '1', 'timestamp', 'timestamp', 'timestamp', 'date', 'new') + values (6, 'true', '400', '44388', -'100', '953967041.', '62.079153', '718.78', '1', 'timestamp', 'timestamp', 'timestamp', 'date', 'new') POSTHOOK: type: QUERY POSTHOOK: Input: default@values__tmp__table__41 POSTHOOK: Output: default@part_change_various_various_timestamp@part=2 @@ -2621,12 +2680,12 @@ POSTHOOK: Lineage: part_change_various_various_timestamp PARTITION(part=2).c9 EX POSTHOOK: Lineage: part_change_various_various_timestamp PARTITION(part=2).insert_num EXPRESSION [(values__tmp__table__41)values__tmp__table__41.FieldSchema(name:tmp_values_col1, type:string, comment:), ] _col0 _col1 _col2 _col3 _col4 _col5 _col6 _col7 _col8 _col9 _col10 _col11 _col12 _col13 PREHOOK: query: insert into table part_change_various_various_timestamp partition(part=1) - values (6,-'false', '-67', '833', '63993', ' 1255178165.77663', '905070.974', '-4314.7918', -'1240033819', '2016-03-07 03:02:22.0', '2016-03-07 03:02:22.0', '2016-03-07 03:02:22.0', '2016-03-07', 'new') + values (7,-'false', '-67', '833', '63993', ' 1255178165.77663', '905070.974', '-4314.7918', -'1240033819', '2016-03-07 03:02:22.0', '2016-03-07 03:02:22.0', '2016-03-07 03:02:22.0', '2016-03-07', 'new') PREHOOK: type: QUERY PREHOOK: Input: default@values__tmp__table__42 PREHOOK: Output: default@part_change_various_various_timestamp@part=1 POSTHOOK: query: insert into table part_change_various_various_timestamp partition(part=1) - values (6,-'false', '-67', '833', '63993', ' 1255178165.77663', '905070.974', '-4314.7918', -'1240033819', '2016-03-07 03:02:22.0', '2016-03-07 03:02:22.0', '2016-03-07 03:02:22.0', '2016-03-07', 'new') + values (7,-'false', '-67', '833', '63993', ' 1255178165.77663', '905070.974', '-4314.7918', -'1240033819', '2016-03-07 03:02:22.0', '2016-03-07 03:02:22.0', '2016-03-07 03:02:22.0', '2016-03-07', 'new') POSTHOOK: type: QUERY POSTHOOK: Input: default@values__tmp__table__42 POSTHOOK: Output: default@part_change_various_various_timestamp@part=1 @@ -2662,25 +2721,25 @@ STAGE PLANS: Map Operator Tree: TableScan alias: part_change_various_various_timestamp - Statistics: Num rows: 6 Data size: 848 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 871 Basic stats: COMPLETE Column stats: NONE Select Operator expressions: insert_num (type: int), part (type: int), c1 (type: timestamp), c2 (type: timestamp), c3 (type: timestamp), c4 (type: timestamp), c5 (type: timestamp), c6 (type: timestamp), c7 (type: timestamp), c8 (type: timestamp), c9 (type: timestamp), c10 (type: timestamp), c11 (type: timestamp), c12 (type: timestamp), b (type: string) outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6, _col7, _col8, _col9, _col10, _col11, _col12, _col13, _col14 - Statistics: Num rows: 6 Data size: 848 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 871 Basic stats: COMPLETE Column stats: NONE Reduce Output Operator key expressions: _col0 (type: int) sort order: + - Statistics: Num rows: 6 Data size: 848 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 871 Basic stats: COMPLETE Column stats: NONE value expressions: _col1 (type: int), _col2 (type: timestamp), _col3 (type: timestamp), _col4 (type: timestamp), _col5 (type: timestamp), _col6 (type: timestamp), _col7 (type: timestamp), _col8 (type: timestamp), _col9 (type: timestamp), _col10 (type: timestamp), _col11 (type: timestamp), _col12 (type: timestamp), _col13 (type: timestamp), _col14 (type: string) Execution mode: vectorized Reduce Operator Tree: Select Operator expressions: KEY.reducesinkkey0 (type: int), VALUE._col0 (type: int), VALUE._col1 (type: timestamp), VALUE._col2 (type: timestamp), VALUE._col3 (type: timestamp), VALUE._col4 (type: timestamp), VALUE._col5 (type: timestamp), VALUE._col6 (type: timestamp), VALUE._col7 (type: timestamp), VALUE._col8 (type: timestamp), VALUE._col9 (type: timestamp), VALUE._col10 (type: timestamp), VALUE._col11 (type: timestamp), VALUE._col12 (type: timestamp), VALUE._col13 (type: string) outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6, _col7, _col8, _col9, _col10, _col11, _col12, _col13, _col14 - Statistics: Num rows: 6 Data size: 848 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 871 Basic stats: COMPLETE Column stats: NONE File Output Operator compressed: false - Statistics: Num rows: 6 Data size: 848 Basic stats: COMPLETE Column stats: NONE + Statistics: Num rows: 7 Data size: 871 Basic stats: COMPLETE Column stats: NONE table: input format: org.apache.hadoop.mapred.SequenceFileInputFormat output format: org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat @@ -2706,11 +2765,12 @@ POSTHOOK: Input: default@part_change_various_various_timestamp@part=2 #### A masked pattern was here #### insert_num part c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 c12 b 1 1 1969-12-31 16:00:00.001 NULL NULL 1969-12-31 16:54:04.222 1966-10-31 06:13:20.001 1969-12-31 15:59:30.923599244 1984-11-29 14:08:55 1984-11-29 14:08:55 0004-09-22 18:26:29.519542222 0004-09-22 18:26:29.51954 0004-09-22 18:26:29.51954 2007-02-09 00:00:00 original -2 1 1969-12-31 16:00:00.001 1969-12-31 16:00:00.1 NULL 1969-12-31 16:00:00.014 1969-03-30 10:21:00.007 1969-12-31 14:59:08.32788086 1970-01-01 04:48:34.284799488 1970-01-01 04:48:34.284799488 2007-02-09 05:17:29.368756876 2007-02-09 05:17:29.36875 2007-02-09 05:17:29.36875 0004-09-22 00:00:00 original -3 1 1969-12-31 16:00:00 1969-12-31 16:00:00.072 NULL 1969-12-31 15:58:26.778 1969-12-31 16:00:00.03 1969-12-30 21:32:04.4375 1969-12-30 21:32:04.438569 1969-12-31 16:00:00.561431 6229-06-28 02:54:28.970117179 6229-06-28 02:54:28.97011 6229-06-28 02:54:28.97011 5966-07-09 00:00:00 original -4 1 1969-12-31 16:00:00.001 1969-12-31 15:59:59.91 NULL 1969-12-31 16:54:49.094 1969-12-31 16:00:46.114 1970-04-17 17:32:21 1970-04-17 17:32:20.75 1970-04-17 17:32:20.75 2002-05-10 05:29:48.990818073 2002-05-10 05:29:48.99081 2002-05-10 05:29:48.99081 1815-05-06 00:00:00 original -5 2 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL new -6 1 NULL NULL NULL NULL NULL NULL NULL NULL 2016-03-07 03:02:22 2016-03-07 03:02:22 2016-03-07 03:02:22 NULL new +2 1 1969-12-31 16:00:00.001 1969-12-31 16:00:00.1 1969-12-31 16:00:32.767 NULL NULL NULL 1969-12-31 15:59:58.72647168 NULL NULL NULL 2007-02-09 05:17:29.36875 NULL NULL +3 1 1969-12-31 16:00:00.001 1969-12-31 16:00:00.1 1969-12-31 15:59:27.232 NULL NULL NULL 1969-12-31 15:59:58.72647168 NULL NULL NULL 2007-02-09 05:17:29.36875 NULL NULL +4 1 1969-12-31 16:00:00 1969-12-31 16:00:00.072 NULL 1969-12-31 15:58:26.778 1969-12-31 16:00:00.03 1969-12-30 21:32:04.4375 1969-12-30 21:32:04.438569 1969-12-31 16:00:00.561431 6229-06-28 02:54:28.970117179 6229-06-28 02:54:28.97011 6229-06-28 02:54:28.97011 5966-07-09 00:00:00 original +5 1 1969-12-31 16:00:00.001 1969-12-31 15:59:59.91 NULL 1969-12-31 16:54:49.094 1969-12-31 16:00:46.114 1970-04-17 17:32:21 1970-04-17 17:32:20.75 1970-04-17 17:32:20.75 2002-05-10 05:29:48.990818073 2002-05-10 05:29:48.99081 2002-05-10 05:29:48.99081 1815-05-06 00:00:00 original +6 2 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL new +7 1 NULL NULL NULL NULL NULL NULL NULL NULL 2016-03-07 03:02:22 2016-03-07 03:02:22 2016-03-07 03:02:22 NULL new PREHOOK: query: drop table part_change_various_various_timestamp PREHOOK: type: DROPTABLE PREHOOK: Input: default@part_change_various_various_timestamp @@ -2889,170 +2949,3 @@ POSTHOOK: query: drop table part_change_various_various_date POSTHOOK: type: DROPTABLE POSTHOOK: Input: default@part_change_various_various_date POSTHOOK: Output: default@part_change_various_various_date -PREHOOK: query: -- --- SUBSECTION: ALTER TABLE CHANGE COLUMNS for Various --> Various: (STRING, CHAR, VARCHAR) --> BINARY --- -CREATE TABLE part_change_various_various_binary(insert_num int, c1 STRING, c2 CHAR(25), c3 VARCHAR(25), b STRING) PARTITIONED BY(part INT) -PREHOOK: type: CREATETABLE -PREHOOK: Output: database:default -PREHOOK: Output: default@part_change_various_various_binary -POSTHOOK: query: -- --- SUBSECTION: ALTER TABLE CHANGE COLUMNS for Various --> Various: (STRING, CHAR, VARCHAR) --> BINARY --- -CREATE TABLE part_change_various_various_binary(insert_num int, c1 STRING, c2 CHAR(25), c3 VARCHAR(25), b STRING) PARTITIONED BY(part INT) -POSTHOOK: type: CREATETABLE -POSTHOOK: Output: database:default -POSTHOOK: Output: default@part_change_various_various_binary -PREHOOK: query: insert into table part_change_various_various_binary partition(part=1) - values(1, 'binary', 'binary', 'binary', 'original'), - (2, 'binary', 'binary', 'binary', 'original'), - (3, 'binary', 'binary', 'binary', 'original'), - (4, 'binary', 'binary', 'binary', 'original') -PREHOOK: type: QUERY -PREHOOK: Input: default@values__tmp__table__46 -PREHOOK: Output: default@part_change_various_various_binary@part=1 -POSTHOOK: query: insert into table part_change_various_various_binary partition(part=1) - values(1, 'binary', 'binary', 'binary', 'original'), - (2, 'binary', 'binary', 'binary', 'original'), - (3, 'binary', 'binary', 'binary', 'original'), - (4, 'binary', 'binary', 'binary', 'original') -POSTHOOK: type: QUERY -POSTHOOK: Input: default@values__tmp__table__46 -POSTHOOK: Output: default@part_change_various_various_binary@part=1 -POSTHOOK: Lineage: part_change_various_various_binary PARTITION(part=1).b SIMPLE [(values__tmp__table__46)values__tmp__table__46.FieldSchema(name:tmp_values_col5, type:string, comment:), ] -POSTHOOK: Lineage: part_change_various_various_binary PARTITION(part=1).c1 SIMPLE [(values__tmp__table__46)values__tmp__table__46.FieldSchema(name:tmp_values_col2, type:string, comment:), ] -POSTHOOK: Lineage: part_change_various_various_binary PARTITION(part=1).c2 EXPRESSION [(values__tmp__table__46)values__tmp__table__46.FieldSchema(name:tmp_values_col3, type:string, comment:), ] -POSTHOOK: Lineage: part_change_various_various_binary PARTITION(part=1).c3 EXPRESSION [(values__tmp__table__46)values__tmp__table__46.FieldSchema(name:tmp_values_col4, type:string, comment:), ] -POSTHOOK: Lineage: part_change_various_various_binary PARTITION(part=1).insert_num EXPRESSION [(values__tmp__table__46)values__tmp__table__46.FieldSchema(name:tmp_values_col1, type:string, comment:), ] -_col0 _col1 _col2 _col3 _col4 -PREHOOK: query: select insert_num,part,c1,c2,c3,b from part_change_various_various_binary order by insert_num -PREHOOK: type: QUERY -PREHOOK: Input: default@part_change_various_various_binary -PREHOOK: Input: default@part_change_various_various_binary@part=1 -#### A masked pattern was here #### -POSTHOOK: query: select insert_num,part,c1,c2,c3,b from part_change_various_various_binary order by insert_num -POSTHOOK: type: QUERY -POSTHOOK: Input: default@part_change_various_various_binary -POSTHOOK: Input: default@part_change_various_various_binary@part=1 -#### A masked pattern was here #### -insert_num part c1 c2 c3 b -1 1 binary binary binary original -2 1 binary binary binary original -3 1 binary binary binary original -4 1 binary binary binary original -PREHOOK: query: -- Table-Non-Cascade CHANGE COLUMNS ... -alter table part_change_various_various_binary replace columns (insert_num int, c1 BINARY, c2 BINARY, c3 BINARY, b STRING) -PREHOOK: type: ALTERTABLE_REPLACECOLS -PREHOOK: Input: default@part_change_various_various_binary -PREHOOK: Output: default@part_change_various_various_binary -POSTHOOK: query: -- Table-Non-Cascade CHANGE COLUMNS ... -alter table part_change_various_various_binary replace columns (insert_num int, c1 BINARY, c2 BINARY, c3 BINARY, b STRING) -POSTHOOK: type: ALTERTABLE_REPLACECOLS -POSTHOOK: Input: default@part_change_various_various_binary -POSTHOOK: Output: default@part_change_various_various_binary -PREHOOK: query: insert into table part_change_various_various_binary partition(part=2) - values (5, 'binary', 'binary', 'binary', 'new') -PREHOOK: type: QUERY -PREHOOK: Input: default@values__tmp__table__47 -PREHOOK: Output: default@part_change_various_various_binary@part=2 -POSTHOOK: query: insert into table part_change_various_various_binary partition(part=2) - values (5, 'binary', 'binary', 'binary', 'new') -POSTHOOK: type: QUERY -POSTHOOK: Input: default@values__tmp__table__47 -POSTHOOK: Output: default@part_change_various_various_binary@part=2 -POSTHOOK: Lineage: part_change_various_various_binary PARTITION(part=2).b SIMPLE [(values__tmp__table__47)values__tmp__table__47.FieldSchema(name:tmp_values_col5, type:string, comment:), ] -POSTHOOK: Lineage: part_change_various_various_binary PARTITION(part=2).c1 EXPRESSION [(values__tmp__table__47)values__tmp__table__47.FieldSchema(name:tmp_values_col2, type:string, comment:), ] -POSTHOOK: Lineage: part_change_various_various_binary PARTITION(part=2).c2 EXPRESSION [(values__tmp__table__47)values__tmp__table__47.FieldSchema(name:tmp_values_col3, type:string, comment:), ] -POSTHOOK: Lineage: part_change_various_various_binary PARTITION(part=2).c3 EXPRESSION [(values__tmp__table__47)values__tmp__table__47.FieldSchema(name:tmp_values_col4, type:string, comment:), ] -POSTHOOK: Lineage: part_change_various_various_binary PARTITION(part=2).insert_num EXPRESSION [(values__tmp__table__47)values__tmp__table__47.FieldSchema(name:tmp_values_col1, type:string, comment:), ] -_col0 _col1 _col2 _col3 _col4 -PREHOOK: query: insert into table part_change_various_various_binary partition(part=1) - values (6,-'binary', 'binary', 'binary', 'new') -PREHOOK: type: QUERY -PREHOOK: Input: default@values__tmp__table__48 -PREHOOK: Output: default@part_change_various_various_binary@part=1 -POSTHOOK: query: insert into table part_change_various_various_binary partition(part=1) - values (6,-'binary', 'binary', 'binary', 'new') -POSTHOOK: type: QUERY -POSTHOOK: Input: default@values__tmp__table__48 -POSTHOOK: Output: default@part_change_various_various_binary@part=1 -POSTHOOK: Lineage: part_change_various_various_binary PARTITION(part=1).b SIMPLE [(values__tmp__table__48)values__tmp__table__48.FieldSchema(name:tmp_values_col5, type:string, comment:), ] -POSTHOOK: Lineage: part_change_various_various_binary PARTITION(part=1).c1 EXPRESSION [(values__tmp__table__48)values__tmp__table__48.FieldSchema(name:tmp_values_col2, type:string, comment:), ] -POSTHOOK: Lineage: part_change_various_various_binary PARTITION(part=1).c2 EXPRESSION [(values__tmp__table__48)values__tmp__table__48.FieldSchema(name:tmp_values_col3, type:string, comment:), ] -POSTHOOK: Lineage: part_change_various_various_binary PARTITION(part=1).c3 EXPRESSION [(values__tmp__table__48)values__tmp__table__48.FieldSchema(name:tmp_values_col4, type:string, comment:), ] -POSTHOOK: Lineage: part_change_various_various_binary PARTITION(part=1).insert_num EXPRESSION [(values__tmp__table__48)values__tmp__table__48.FieldSchema(name:tmp_values_col1, type:string, comment:), ] -_col0 _col1 _col2 _col3 _col4 -PREHOOK: query: explain -select insert_num,part,c1,c2,c3,b from part_change_various_various_binary order by insert_num -PREHOOK: type: QUERY -POSTHOOK: query: explain -select insert_num,part,c1,c2,c3,b from part_change_various_various_binary order by insert_num -POSTHOOK: type: QUERY -Explain -STAGE DEPENDENCIES: - Stage-1 is a root stage - Stage-0 depends on stages: Stage-1 - -STAGE PLANS: - Stage: Stage-1 - Map Reduce - Map Operator Tree: - TableScan - alias: part_change_various_various_binary - Statistics: Num rows: 6 Data size: 192 Basic stats: COMPLETE Column stats: NONE - Select Operator - expressions: insert_num (type: int), part (type: int), c1 (type: binary), c2 (type: binary), c3 (type: binary), b (type: string) - outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5 - Statistics: Num rows: 6 Data size: 192 Basic stats: COMPLETE Column stats: NONE - Reduce Output Operator - key expressions: _col0 (type: int) - sort order: + - Statistics: Num rows: 6 Data size: 192 Basic stats: COMPLETE Column stats: NONE - value expressions: _col1 (type: int), _col2 (type: binary), _col3 (type: binary), _col4 (type: binary), _col5 (type: string) - Execution mode: vectorized - Reduce Operator Tree: - Select Operator - expressions: KEY.reducesinkkey0 (type: int), VALUE._col0 (type: int), VALUE._col1 (type: binary), VALUE._col2 (type: binary), VALUE._col3 (type: binary), VALUE._col4 (type: string) - outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5 - Statistics: Num rows: 6 Data size: 192 Basic stats: COMPLETE Column stats: NONE - File Output Operator - compressed: false - Statistics: Num rows: 6 Data size: 192 Basic stats: COMPLETE Column stats: NONE - table: - input format: org.apache.hadoop.mapred.SequenceFileInputFormat - output format: org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat - serde: org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe - - Stage: Stage-0 - Fetch Operator - limit: -1 - Processor Tree: - ListSink - -PREHOOK: query: select insert_num,part,c1,c2,c3,b from part_change_various_various_binary order by insert_num -PREHOOK: type: QUERY -PREHOOK: Input: default@part_change_various_various_binary -PREHOOK: Input: default@part_change_various_various_binary@part=1 -PREHOOK: Input: default@part_change_various_various_binary@part=2 -#### A masked pattern was here #### -POSTHOOK: query: select insert_num,part,c1,c2,c3,b from part_change_various_various_binary order by insert_num -POSTHOOK: type: QUERY -POSTHOOK: Input: default@part_change_various_various_binary -POSTHOOK: Input: default@part_change_various_various_binary@part=1 -POSTHOOK: Input: default@part_change_various_various_binary@part=2 -#### A masked pattern was here #### -insert_num part c1 c2 c3 b -1 1 binary binary binary original -2 1 binary binary binary original -3 1 binary binary binary original -4 1 binary binary binary original -5 2 binary binary binary new -6 1 LWJpbmFyeQ== YmluYXJ5 YmluYXJ5 new -PREHOOK: query: drop table part_change_various_various_binary -PREHOOK: type: DROPTABLE -PREHOOK: Input: default@part_change_various_various_binary -PREHOOK: Output: default@part_change_various_various_binary -POSTHOOK: query: drop table part_change_various_various_binary -POSTHOOK: type: DROPTABLE -POSTHOOK: Input: default@part_change_various_various_binary -POSTHOOK: Output: default@part_change_various_various_binary diff --git storage-api/src/java/org/apache/hadoop/hive/ql/util/TimestampUtils.java storage-api/src/java/org/apache/hadoop/hive/ql/util/TimestampUtils.java index 189ead5..41db9ca 100644 --- storage-api/src/java/org/apache/hadoop/hive/ql/util/TimestampUtils.java +++ storage-api/src/java/org/apache/hadoop/hive/ql/util/TimestampUtils.java @@ -39,45 +39,53 @@ public static double getDouble(Timestamp ts) { } public static Timestamp doubleToTimestamp(double f) { - long seconds = (long) f; - - // We must ensure the exactness of the double's fractional portion. - // 0.6 as the fraction part will be converted to 0.59999... and - // significantly reduce the savings from binary serialization - BigDecimal bd; try { - bd = new BigDecimal(String.valueOf(f)); + long seconds = (long) f; + + // We must ensure the exactness of the double's fractional portion. + // 0.6 as the fraction part will be converted to 0.59999... and + // significantly reduce the savings from binary serialization + BigDecimal bd = new BigDecimal(String.valueOf(f)); + + bd = bd.subtract(new BigDecimal(seconds)).multiply(new BigDecimal(1000000000)); + int nanos = bd.intValue(); + + // Convert to millis + long millis = seconds * 1000; + if (nanos < 0) { + millis -= 1000; + nanos += 1000000000; + } + Timestamp t = new Timestamp(millis); + + // Set remaining fractional portion to nanos + t.setNanos(nanos); + return t; } catch (NumberFormatException nfe) { return null; + } catch (IllegalArgumentException iae) { + return null; } - bd = bd.subtract(new BigDecimal(seconds)).multiply(new BigDecimal(1000000000)); - int nanos = bd.intValue(); - - // Convert to millis - long millis = seconds * 1000; - if (nanos < 0) { - millis -= 1000; - nanos += 1000000000; - } - Timestamp t = new Timestamp(millis); - - // Set remaining fractional portion to nanos - t.setNanos(nanos); - return t; } public static Timestamp decimalToTimestamp(HiveDecimal d) { - BigDecimal nanoInstant = d.bigDecimalValue().multiply(BILLION_BIG_DECIMAL); - int nanos = nanoInstant.remainder(BILLION_BIG_DECIMAL).intValue(); - if (nanos < 0) { - nanos += 1000000000; - } - long seconds = - nanoInstant.subtract(new BigDecimal(nanos)).divide(BILLION_BIG_DECIMAL).longValue(); - Timestamp t = new Timestamp(seconds * 1000); - t.setNanos(nanos); + try { + BigDecimal nanoInstant = d.bigDecimalValue().multiply(BILLION_BIG_DECIMAL); + int nanos = nanoInstant.remainder(BILLION_BIG_DECIMAL).intValue(); + if (nanos < 0) { + nanos += 1000000000; + } + long seconds = + nanoInstant.subtract(new BigDecimal(nanos)).divide(BILLION_BIG_DECIMAL).longValue(); + Timestamp t = new Timestamp(seconds * 1000); + t.setNanos(nanos); - return t; + return t; + } catch (NumberFormatException nfe) { + return null; + } catch (IllegalArgumentException iae) { + return null; + } } /**