Skip to content

Commit

Permalink
fix fe bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
zclllyybb committed Jan 13, 2025
1 parent 2928660 commit d627a57
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -692,7 +692,7 @@ private static Map<String, NamedExpression> getDictColumnToOutput(
Map<String, NamedExpression> columnToOutput = Maps.newTreeMap(String.CASE_INSENSITIVE_ORDER);
// for sink columns D|B|A, link them with child's outputs
for (Column column : sinkSchema) {
if (upstreamOutputs.containsKey(column)) {
if (upstreamOutputs.containsKey(column.getName())) {
// TODO: for dictionary the type should be exactly same. try to remove TypeCoercion here
Alias output = new Alias(TypeCoercionUtils.castIfNotSameType(upstreamOutputs.get(column.getName()),
DataType.fromCatalogType(column.getType())), column.getName());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public void run(ConnectContext ctx, StmtExecutor executor) {
LOG.info("Created dictionary {} in {} from {}", createDictionaryInfo.getDictName(),
createDictionaryInfo.getDbName(), createDictionaryInfo.getSourceTableName());
} catch (Exception e) {
LOG.warn("Failed to create dictionary: {}", e.getMessage());
LOG.warn("Failed to create dictionary: {}", e);
throw new AnalysisException("Failed to create dictionary: " + e.getMessage());
}
}
Expand Down

0 comments on commit d627a57

Please sign in to comment.