fix first last
This commit is contained in:
parent
8fba0b631c
commit
f81ce17df4
|
@ -2936,6 +2936,10 @@ int32_t firstFunction(SqlFunctionCtx* pCtx) {
|
|||
|
||||
pInfo->bytes = pInputCol->info.bytes;
|
||||
|
||||
if (IS_NULL_TYPE(pInputCol->info.type)) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
// All null data column, return directly.
|
||||
if (pInput->colDataSMAIsSet && (pInput->pColumnDataAgg[0]->numOfNull == pInput->totalRows)) {
|
||||
ASSERT(pInputCol->hasNull == true);
|
||||
|
@ -3040,6 +3044,10 @@ int32_t lastFunction(SqlFunctionCtx* pCtx) {
|
|||
int32_t bytes = pInputCol->info.bytes;
|
||||
pInfo->bytes = bytes;
|
||||
|
||||
if (IS_NULL_TYPE(type)) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
// All null data column, return directly.
|
||||
if (pInput->colDataSMAIsSet && (pInput->pColumnDataAgg[0]->numOfNull == pInput->totalRows)) {
|
||||
ASSERT(pInputCol->hasNull == true);
|
||||
|
|
Loading…
Reference in New Issue