Change error code.

This commit is contained in:
Anton Popov 2023-04-06 16:17:45 +02:00 committed by GitHub
parent d3d9b21c7b
commit e88938d6c8
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>