Skip to content

Commit

Permalink
Revert "[pick](nestedtype)support nested type with agg replace_if_not…
Browse files Browse the repository at this point in the history
…_null apache#38304 (apache#38716)"

This reverts commit ba2d3dd.
  • Loading branch information
root authored and root committed Aug 27, 2024
1 parent 917306c commit 945ebe9
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 377 deletions.
2 changes: 2 additions & 0 deletions be/src/vec/columns/column_nullable.h
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,8 @@ class ColumnNullable final : public COWHelper<IColumn, ColumnNullable> {

if (!nullable_rhs.is_null_at(row)) {
nested_column->replace_column_data(*nullable_rhs.nested_column, row, self_row);
} else {
nested_column->replace_column_data_default(self_row);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -494,12 +494,11 @@ public void analyze(Analyzer analyzer) throws UserException, AnalysisException {
columnDef.analyze(engineName.equals("olap"));

if (columnDef.getType().isComplexType() && engineName.equals("olap")) {
if (columnDef.getAggregateType() != null && columnDef.getAggregateType() != AggregateType.NONE
&& columnDef.getAggregateType() != AggregateType.REPLACE
&& columnDef.getAggregateType() != AggregateType.REPLACE_IF_NOT_NULL) {
throw new AnalysisException(
columnDef.getType().getPrimitiveType() + " column can't support aggregation "
+ columnDef.getAggregateType());
if (columnDef.getAggregateType() != null
&& columnDef.getAggregateType() != AggregateType.NONE
&& columnDef.getAggregateType() != AggregateType.REPLACE) {
throw new AnalysisException(columnDef.getType().getPrimitiveType()
+ " column can't support aggregation " + columnDef.getAggregateType());
}
if (columnDef.isKey()) {
throw new AnalysisException(columnDef.getType().getPrimitiveType()
Expand Down

This file was deleted.

Loading

0 comments on commit 945ebe9

Please sign in to comment.