Merge pull request #48490 from ClickHouse/CurtizJ-patch-7

Change error code
This commit is contained in:
Anton Popov 2023-04-11 15:09:59 +02:00 committed by GitHub
commit 1a642c4b58
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -30,6 +30,7 @@ namespace ErrorCodes
extern const int TYPE_MISMATCH;
extern const int LOGICAL_ERROR;
extern const int INCOMPATIBLE_COLUMNS;
extern const int NOT_IMPLEMENTED;
}
size_t getNumberOfDimensions(const IDataType & type)
@ -121,7 +122,7 @@ DataTypePtr getDataTypeByColumn(const IColumn & column)
return makeNullable(getDataTypeByColumn(column_nullable->getNestedColumn()));
/// TODO: add more types.
throw Exception(ErrorCodes::LOGICAL_ERROR, "Cannot get data type of column {}", column.getFamilyName());
throw Exception(ErrorCodes::NOT_IMPLEMENTED, "Cannot get data type of column {}", column.getFamilyName());
}
template <size_t I, typename Tuple>