Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Enhancement] Improve error message to return table information and partition column names #52961

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,10 @@ private static void initPartitionInfo(LogicalScanOperator operator, OptimizerCon
LOG.warn("Partition pruning is invalid. queryId: {}", DebugUtil.printId(context.getQueryId()));
throw new AnalysisException("Partition pruning is invalid, please check: "
+ "1. The partition predicate must be included. "
+ "2. The left and right children of the partition predicate cannot be function parameters.");
+ "2. The left and right children of the partition predicate cannot be function parameters. "
+ "Table: " + hmsTable.getCatalogName() + "." + hmsTable.getDbName()
+ "." + hmsTable.getTableName() + " " + "Partition columns: "
+ partitionColumns.stream().map(Column::getName).collect(Collectors.joining(", ")));
}

// get partition names
Expand Down
Loading