blob: 7d4914c5fde3bb398f5afe373ef1bebdd829392d [file] [log] [blame]
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http:# www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
{
types: [
{from: "Int", to: "BigInt", major: "Fixed"},
{from: "Float4", to: "Float8", major: "Fixed" },
{from: "Int", to: "Float4", major: "Fixed" },
{from: "BigInt", to: "Float4", major: "Fixed" },
{from: "Int", to: "Float8", major: "Fixed" },
{from: "BigInt", to: "Float8", major: "Fixed" },
{to: "Int", from: "BigInt", explicit: "int", major: "Fixed"},
{to: "Float4", from: "Float8" , explicit: "float", major: "Fixed"},
{to: "Int", from: "Float4" , explicit: "int", native: "float", major: "Fixed"},
{to: "BigInt", from: "Float4" , explicit: "long", native: "float", major: "Fixed"},
{to: "Int", from: "Float8" , explicit: "int", native: "double", major: "Fixed"},
{to: "BigInt", from: "Float8" , explicit: "long", native: "double", major: "Fixed"},
{from: "TinyInt", to: "Bit", major: "Fixed"},
{from: "Bit", to: "TinyInt", explicit: "byte", major: "Fixed"},
{from: "VarChar", to: "BigInt", major: "SrcVarlen", javaType: "Long", primeType: "long"},
{from: "VarChar", to: "Int", major: "SrcVarlen", javaType:"Integer", primeType:"int"},
{from: "VarBinary", to: "BigInt", major: "SrcVarlen", javaType: "Long", primeType : "long"},
{from: "VarBinary", to: "Int", major: "SrcVarlen", javaType:"Integer", primeType : "int"},
{from: "VarChar", to: "Float4", major: "SrcVarlen", javaType:"Float", parse:"Float"},
{from: "VarChar", to: "Float8", major: "SrcVarlen", javaType:"Double", parse:"Double"},
{from: "VarBinary", to: "Float4", major: "SrcVarlen", javaType:"Float", parse:"Float"},
{from: "VarBinary", to: "Float8", major: "SrcVarlen", javaType:"Double", parse:"Double"},
{from: "BigInt", to: "VarChar", major: "TargetVarlen", javaType: "Long", bufferLength:"20"},
{from: "Int", to: "VarChar", major: "TargetVarlen", javaType: "Integer", bufferLength:"11"},
{from: "Float4", to: "VarChar", major: "TargetVarlen", javaType: "Float", bufferLength:"100"},
{from: "Float8", to: "VarChar", major: "TargetVarlen", javaType: "Double", bufferLength:"100"},
{from: "BigInt", to: "VarBinary", major: "TargetVarlen", javaType: "Long", bufferLength:"20"},
{from: "Int", to: "VarBinary", major: "TargetVarlen", javaType: "Integer", bufferLength:"11"},
{from: "Float4", to: "VarBinary", major: "TargetVarlen", javaType: "Float", bufferLength:"100"},
{from: "Float8", to: "VarBinary", major: "TargetVarlen", javaType: "Double", bufferLength:"100"},
{from: "VarBinary", to: "VarChar", major: "SrcVarlenTargetVarlen"},
{from: "VarChar", to: "VarChar", major: "SrcVarlenTargetVarlen"},
{from: "VarChar", to: "VarBinary", major: "SrcVarlenTargetVarlen"},
{from: "VarBinary", to: "VarBinary", major: "SrcVarlenTargetVarlen"},
{from: "Date", to: "TimeStamp", major: "Date"},
{from: "TimeStamp", to: "Date", major: "Date"},
{from: "VarChar", to: "Date", major: "VarCharDate", alias: "datetype"},
{from: "VarChar", to: "TimeStamp", major: "VarCharDate", alias: "timestamptype"},
{from: "VarChar", to: "Time", major: "VarCharDate", alias: "timetype"},
{from: "VarBinary", to: "Date", major: "VarBinaryDate", alias: "datetype"},
{from: "VarBinary", to: "TimeStamp", major: "VarBinaryDate", alias: "timestamptype"},
{from: "VarBinary", to: "Time", major: "VarBinaryDate", alias: "timetype"},
{from: "Date", to: "VarChar", major: "DateVarChar", bufferLength: "10"}
{from: "TimeStamp", to: "VarChar", major: "DateVarChar", bufferLength: "23"},
{from: "Time", to: "VarChar", major: "DateVarChar", bufferLength: "12"},
{from: "VarChar", to: "Interval", major: "VarCharInterval"},
{from: "VarChar", to: "IntervalDay", major: "VarCharInterval"},
{from: "VarChar", to: "IntervalYear", major: "VarCharInterval"},
{from: "Interval", to: "VarChar", major: "IntervalVarChar", bufferLength: "65"},
{from: "IntervalYear", to: "VarChar", major: "IntervalYearVarChar", bufferLength: "35"},
{from: "IntervalDay", to: "VarChar", major: "IntervalDayVarChar", bufferLength: "43"},
{from: "IntervalYear", to: "Interval", major: "IntervalSimpleToComplex", months: "in.value", days: "0", millis: "0"},
{from: "IntervalDay", to: "Interval", major: "IntervalSimpleToComplex", months: "0", days: "in.days", millis: "in.milliseconds"},
{from: "Interval", to: "IntervalYear", major: "IntervalComplexToSimple"},
{from: "Interval", to: "IntervalDay", major: "IntervalComplexToSimple"}
{from: "Decimal9", to: "Decimal18", major: "DecimalSimpleDecimalSimple", javatype: "long"},
{from: "Decimal9", to: "Decimal28Dense", major: "DecimalSimpleDecimalDense", arraySize: "3"},
{from: "Decimal9", to: "Decimal38Dense", major: "DecimalSimpleDecimalDense", arraySize: "4"},
{from: "Decimal18", to: "Decimal28Dense", major: "DecimalSimpleDecimalDense", arraySize: "3"},
{from: "Decimal18", to: "Decimal38Dense", major: "DecimalSimpleDecimalDense", arraySize: "4"},
{from: "Decimal9", to: "Decimal28Sparse", major: "DecimalSimpleDecimalSparse", arraySize: "5"},
{from: "Decimal9", to: "Decimal38Sparse", major: "DecimalSimpleDecimalSparse", arraySize: "6"},
{from: "Decimal18", to: "Decimal28Sparse", major: "DecimalSimpleDecimalSparse", arraySize: "5"},
{from: "Decimal18", to: "Decimal38Sparse", major: "DecimalSimpleDecimalSparse", arraySize: "6"},
{from: "Decimal28Dense", to: "Decimal28Sparse", major: "DecimalDenseDecimalSparse", arraySize: "5"},
{from: "Decimal28Dense", to: "Decimal38Sparse", major: "DecimalDenseDecimalSparse",arraySize: "6"},
{from: "Decimal38Dense", to: "Decimal38Sparse", major: "DecimalDenseDecimalSparse", arraySize: "6"},
{from: "Decimal28Sparse", to: "Decimal28Dense", major: "DecimalSparseDecimalDense", arraySize: "3"},
{from: "Decimal28Sparse", to: "Decimal38Dense", major: "DecimalSparseDecimalDense", arraySize: "4"},
{from: "Decimal38Sparse", to: "Decimal38Dense", major: "DecimalSparseDecimalDense", arraySize: "4"},
{from: "Decimal28Dense", to: "Decimal38Dense", major: "DecimalSimilar", arraySize: "4"},
{from: "Decimal28Sparse", to: "Decimal38Sparse", major: "DecimalSimilar", arraySize: "6"},
{from: "Int", to: "Decimal9", major: "IntDecimal", javatype: "int"},
{from: "Int", to: "Decimal18", major: "IntDecimal", javatype: "long"},
{from: "Int", to: "Decimal28Sparse", major: "IntDecimal", arraySize: "5"},
{from: "Int", to: "Decimal38Sparse", major: "IntDecimal", arraySize: "6"},
{from: "BigInt", to: "Decimal9", major: "BigIntDecimal", javatype: "int"},
{from: "BigInt", to: "Decimal18", major: "BigIntDecimal", javatype: "long"},
{from: "BigInt", to: "Decimal28Sparse", major: "BigIntDecimal", arraySize: "5"},
{from: "BigInt", to: "Decimal38Sparse", major: "BigIntDecimal", arraySize: "6"},
{from: "Decimal9", to: "Int", major: "DecimalSimpleInt", javatype: "int"},
{from: "Decimal18", to: "Int", major: "DecimalSimpleInt", javatype: "int"},
{from: "Decimal28Sparse", to: "Int", major: "DecimalComplexInt", javatype: "int"},
{from: "Decimal38Sparse", to: "Int", major: "DecimalComplexInt", javatype: "int"},
{from: "Decimal9", to: "BigInt", major: "DecimalSimpleBigInt", javatype: "long"},
{from: "Decimal18", to: "BigInt", major: "DecimalSimpleBigInt", javatype: "long"},
{from: "Decimal28Sparse", to: "BigInt", major: "DecimalComplexBigInt", javatype: "long"},
{from: "Decimal38Sparse", to: "BigInt", major: "DecimalComplexBigInt", javatype: "long"},
{from: "Decimal9", to: "Float4", major: "DecimalSimpleFloat", javatype: "float"},
{from: "Decimal18", to: "Float4", major: "DecimalSimpleFloat", javatype: "float"},
{from: "Decimal28Sparse", to: "Float4", major: "DecimalComplexFloat", javatype: "float"},
{from: "Decimal28Dense", to: "Float4", major: "DecimalComplexFloat", javatype: "float"},
{from: "Decimal38Sparse", to: "Float4", major: "DecimalComplexFloat", javatype: "float"},
{from: "Decimal38Dense", to: "Float4", major: "DecimalComplexFloat", javatype: "float"},
{from: "Float4", to: "Decimal9", major: "FloatDecimalSimple", javatype: "int"},
{from: "Float4", to: "Decimal18", major: "FloatDecimalSimple", javatype: "long"},
{from: "Float4", to: "Decimal28Sparse", major: "FloatDecimalComplex", arraySize: "5"},
{from: "Float4", to: "Decimal38Sparse", major: "FloatDecimalComplex", arraySize: "6"},
{from: "Float8", to: "Decimal9", major: "DoubleDecimalSimple", javatype: "int"},
{from: "Float8", to: "Decimal18", major: "DoubleDecimalSimple", javatype: "long"},
{from: "Float8", to: "Decimal28Sparse", major: "DoubleDecimalComplex", arraySize: "5"},
{from: "Float8", to: "Decimal38Sparse", major: "DoubleDecimalComplex", arraySize: "6"}
{from: "Decimal9", to: "Float8", major: "DecimalSimpleDouble", javatype: "double"},
{from: "Decimal18", to: "Float8", major: "DecimalSimpleDouble", javatype: "double"},
{from: "Decimal28Sparse", to: "Float8", major: "DecimalComplexDouble", javatype: "double"},
{from: "Decimal28Dense", to: "Float8", major: "DecimalComplexDouble", javatype: "double"},
{from: "Decimal38Sparse", to: "Float8", major: "DecimalComplexDouble", javatype: "double"},
{from: "Decimal38Dense", to: "Float8", major: "DecimalComplexDouble", javatype: "double"},
{from: "VarChar", to: "Decimal9", major: "VarCharDecimalSimple", javatype: "int"},
{from: "VarChar", to: "Decimal18", major: "VarCharDecimalSimple", javatype: "long"},
{from: "VarChar", to: "Decimal28Sparse", major: "VarCharDecimalComplex", arraySize: "5"},
{from: "VarChar", to: "Decimal38Sparse", major: "VarCharDecimalComplex", arraySize: "6"},
{from: "Decimal9", to: "VarChar", major: "DecimalSimpleVarChar", bufferSize: "11", javatype: "int"},
{from: "Decimal18", to: "VarChar", major: "DecimalSimpleVarChar", bufferSize: "20", javatype: "long"},
{from: "Decimal28Sparse", to: "VarChar", major: "DecimalComplexVarChar", bufferSize: "30", arraySize: "5"},
{from: "Decimal38Sparse", to: "VarChar", major: "DecimalComplexVarChar", bufferSize: "40", arraySize: "6"},
{from: "Decimal18", to: "Decimal9", major: "DownwardDecimalSimpleDecimalSimple", javatype: "int"},
{from: "Decimal28Sparse", to: "Decimal18", major: "DownwardDecimalSimpleDecimalComplex", javatype: "long"},
{from: "Decimal28Sparse", to: "Decimal9", major: "DownwardDecimalSimpleDecimalComplex", javatype: "int"},
{from: "Decimal38Sparse", to: "Decimal28Sparse", major: "DownwardDecimalComplexDecimalComplex", arraySize: "5"},
{from: "Decimal38Sparse", to: "Decimal18", major: "DownwardDecimalComplexDecimalSimple", javatype: "long"},
{from: "Decimal38Sparse", to: "Decimal9", major: "DownwardDecimalComplexDecimalSimple", javatype: "int"},
{from: "VarChar", to: "Int", major: "EmptyString", javaType:"Integer", primeType:"int"},
{from: "VarChar", to: "BigInt", major: "EmptyString", javaType: "Long", primeType: "long"},
{from: "VarChar", to: "Float4", major: "EmptyString", javaType:"Float", parse:"Float"},
{from: "VarChar", to: "Float8", major: "EmptyString", javaType:"Double", parse:"Double"},
{from: "VarChar", to: "Decimal9", major: "EmptyStringVarCharDecimalSimple", javatype: "int"},
{from: "VarChar", to: "Decimal18", major: "EmptyStringVarCharDecimalSimple", javatype: "long"},
{from: "VarChar", to: "Decimal28Sparse", major: "EmptyStringVarCharDecimalComplex", arraySize: "5"},
{from: "VarChar", to: "Decimal38Sparse", major: "EmptyStringVarCharDecimalComplex", arraySize: "6"},
{from: "NullableVarChar", to: "Int", major: "EmptyString", javaType:"Integer", primeType:"int"},
{from: "NullableVarChar", to: "BigInt", major: "EmptyString", javaType: "Long", primeType: "long"},
{from: "NullableVarChar", to: "Float4", major: "EmptyString", javaType:"Float", parse:"Float"},
{from: "NullableVarChar", to: "Float8", major: "EmptyString", javaType:"Double", parse:"Double"},
{from: "NullableVarChar", to: "Decimal9", major: "EmptyStringVarCharDecimalSimple", javatype: "int"},
{from: "NullableVarChar", to: "Decimal18", major: "EmptyStringVarCharDecimalSimple", javatype: "long"},
{from: "NullableVarChar", to: "Decimal28Sparse", major: "EmptyStringVarCharDecimalComplex", arraySize: "5"},
{from: "NullableVarChar", to: "Decimal38Sparse", major: "EmptyStringVarCharDecimalComplex", arraySize: "6"},
]
}