AnalyzedColumnDefinition columnDefinition = columnDefinitionByIdent(partitionedByIdent, true);
if (columnDefinition == null) {
if (skipIfNotFound) {
return;
}
throw new ColumnUnknownException(partitionedByIdent.sqlFqn());
}
if (columnDefinition.dataType().equals("object")) {
throw new IllegalArgumentException(String.format(Locale.ENGLISH,
"Cannot use object column '%s' in PARTITIONED BY clause",
columnDefinition.ident().sqlFqn()));