Merge pull request #39716 from arthurpassos/fix_scalar_cte_with_lc_result

Unwrap LC column in IExecutablefunction::executeWithoutSparseColumns
This commit is contained in:
Kruglov Pavel 2022-08-03 18:53:37 +02:00 committed by GitHub
commit b84e65bb3b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 0 deletions

View File

@ -42,6 +42,11 @@ public:
return 1;
}
bool useDefaultImplementationForLowCardinalityColumns() const override
{
return false;
}
bool isSuitableForShortCircuitArgumentsExecution(const DataTypesWithConstInfo & /*arguments*/) const override { return false; }
DataTypePtr getReturnTypeImpl(const ColumnsWithTypeAndName & arguments) const override

View File

@ -0,0 +1 @@
a

View File

@ -0,0 +1 @@
WITH ( SELECT toLowCardinality('a') ) AS bar SELECT bar