fix lead/lag merge result type bug
This commit is contained in:
@ -2,14 +2,14 @@ static ObObjType MERGE_RESULT_TYPE[ObMaxType][ObMaxType] = {
|
|||||||
/*NullType*/
|
/*NullType*/
|
||||||
{
|
{
|
||||||
ObNullType, /*NullType=>NullType */
|
ObNullType, /*NullType=>NullType */
|
||||||
ObTinyIntType, /*NullType=>TinyIntType */
|
ObInt32Type, /*NullType=>TinyIntType */
|
||||||
ObSmallIntType, /*NullType=>SmallIntType */
|
ObInt32Type, /*NullType=>SmallIntType */
|
||||||
ObIntType, /*NullType=>MediumIntType */
|
ObInt32Type, /*NullType=>MediumIntType */
|
||||||
ObInt32Type, /*NullType=>Int32Type */
|
ObInt32Type, /*NullType=>Int32Type */
|
||||||
ObIntType, /*NullType=>IntType */
|
ObIntType, /*NullType=>IntType */
|
||||||
ObUTinyIntType, /*NullType=>UTinyIntType */
|
ObUInt32Type, /*NullType=>UTinyIntType */
|
||||||
ObUSmallIntType, /*NullType=>USmallIntType */
|
ObUInt32Type, /*NullType=>USmallIntType */
|
||||||
ObUMediumIntType, /*NullType=>UMediumIntType */
|
ObUInt32Type, /*NullType=>UMediumIntType */
|
||||||
ObUInt32Type, /*NullType=>UInt32Type */
|
ObUInt32Type, /*NullType=>UInt32Type */
|
||||||
ObUInt64Type, /*NullType=>UIntType */
|
ObUInt64Type, /*NullType=>UIntType */
|
||||||
ObFloatType, /*NullType=>FloatType */
|
ObFloatType, /*NullType=>FloatType */
|
||||||
@ -54,7 +54,7 @@ static ObObjType MERGE_RESULT_TYPE[ObMaxType][ObMaxType] = {
|
|||||||
|
|
||||||
/*TinyIntType*/
|
/*TinyIntType*/
|
||||||
{
|
{
|
||||||
ObTinyIntType, /*TinyIntType=>NullType */
|
ObInt32Type, /*TinyIntType=>NullType */
|
||||||
ObInt32Type, /*TinyIntType=>TinyIntType */
|
ObInt32Type, /*TinyIntType=>TinyIntType */
|
||||||
ObInt32Type, /*TinyIntType=>SmallIntType */
|
ObInt32Type, /*TinyIntType=>SmallIntType */
|
||||||
ObInt32Type, /*TinyIntType=>MediumIntType */
|
ObInt32Type, /*TinyIntType=>MediumIntType */
|
||||||
@ -107,7 +107,7 @@ static ObObjType MERGE_RESULT_TYPE[ObMaxType][ObMaxType] = {
|
|||||||
|
|
||||||
/*SmallIntType*/
|
/*SmallIntType*/
|
||||||
{
|
{
|
||||||
ObSmallIntType, /*SmallIntType=>NullType */
|
ObInt32Type, /*SmallIntType=>NullType */
|
||||||
ObInt32Type, /*SmallIntType=>TinyIntType */
|
ObInt32Type, /*SmallIntType=>TinyIntType */
|
||||||
ObInt32Type, /*SmallIntType=>SmallIntType */
|
ObInt32Type, /*SmallIntType=>SmallIntType */
|
||||||
ObInt32Type, /*SmallIntType=>MediumIntType */
|
ObInt32Type, /*SmallIntType=>MediumIntType */
|
||||||
@ -160,7 +160,7 @@ static ObObjType MERGE_RESULT_TYPE[ObMaxType][ObMaxType] = {
|
|||||||
|
|
||||||
/*MediumIntType*/
|
/*MediumIntType*/
|
||||||
{
|
{
|
||||||
ObMediumIntType, /*MediumIntType=>NullType */
|
ObInt32Type, /*MediumIntType=>NullType */
|
||||||
ObInt32Type, /*MediumIntType=>TinyIntType */
|
ObInt32Type, /*MediumIntType=>TinyIntType */
|
||||||
ObInt32Type, /*MediumIntType=>SmallIntType */
|
ObInt32Type, /*MediumIntType=>SmallIntType */
|
||||||
ObInt32Type, /*MediumIntType=>MediumIntType */
|
ObInt32Type, /*MediumIntType=>MediumIntType */
|
||||||
@ -319,7 +319,7 @@ static ObObjType MERGE_RESULT_TYPE[ObMaxType][ObMaxType] = {
|
|||||||
|
|
||||||
/*UTinyIntType*/
|
/*UTinyIntType*/
|
||||||
{
|
{
|
||||||
ObUTinyIntType, /*UTinyIntType=>NullType */
|
ObUInt32Type, /*UTinyIntType=>NullType */
|
||||||
ObInt32Type, /*UTinyIntType=>TinyIntType */
|
ObInt32Type, /*UTinyIntType=>TinyIntType */
|
||||||
ObInt32Type, /*UTinyIntType=>SmallIntType */
|
ObInt32Type, /*UTinyIntType=>SmallIntType */
|
||||||
ObInt32Type, /*UTinyIntType=>MediumIntType */
|
ObInt32Type, /*UTinyIntType=>MediumIntType */
|
||||||
@ -372,7 +372,7 @@ static ObObjType MERGE_RESULT_TYPE[ObMaxType][ObMaxType] = {
|
|||||||
|
|
||||||
/*USmallIntType*/
|
/*USmallIntType*/
|
||||||
{
|
{
|
||||||
ObUSmallIntType, /*USmallIntType=>NullType */
|
ObUInt32Type, /*USmallIntType=>NullType */
|
||||||
ObInt32Type, /*USmallIntType=>TinyIntType */
|
ObInt32Type, /*USmallIntType=>TinyIntType */
|
||||||
ObInt32Type, /*USmallIntType=>SmallIntType */
|
ObInt32Type, /*USmallIntType=>SmallIntType */
|
||||||
ObInt32Type, /*USmallIntType=>MediumIntType */
|
ObInt32Type, /*USmallIntType=>MediumIntType */
|
||||||
@ -425,7 +425,7 @@ static ObObjType MERGE_RESULT_TYPE[ObMaxType][ObMaxType] = {
|
|||||||
|
|
||||||
/*UMediumIntType*/
|
/*UMediumIntType*/
|
||||||
{
|
{
|
||||||
ObUMediumIntType, /*UMediumIntType=>NullType */
|
ObUInt32Type, /*UMediumIntType=>NullType */
|
||||||
ObInt32Type, /*UMediumIntType=>TinyIntType */
|
ObInt32Type, /*UMediumIntType=>TinyIntType */
|
||||||
ObInt32Type, /*UMediumIntType=>SmallIntType */
|
ObInt32Type, /*UMediumIntType=>SmallIntType */
|
||||||
ObInt32Type, /*UMediumIntType=>MediumIntType */
|
ObInt32Type, /*UMediumIntType=>MediumIntType */
|
||||||
|
|||||||
Reference in New Issue
Block a user