Skip to content

Commit

Permalink
fix routine load problem
Browse files Browse the repository at this point in the history
  • Loading branch information
LiBinfeng-01 committed Nov 26, 2024
1 parent c396a9a commit 7c8f181
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1516,7 +1516,7 @@ public LogicalPlan visitCreateRoutineLoad(CreateRoutineLoadContext ctx) {
} else {
throw new AnalysisException("labelParts in load should be [ctl.][db.]label");
}
LabelNameInfo jobLabelInfo = new LabelNameInfo(labelName, labelDbName);
LabelNameInfo jobLabelInfo = new LabelNameInfo(labelDbName, labelName);
String tableName = null;
if (ctx.table != null) {
tableName = ctx.table.getText();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,7 @@ public LabelNameInfo() {
* @param label tblName
*/
public LabelNameInfo(String db, String label) {
Objects.requireNonNull(label, "require tbl object");
Objects.requireNonNull(db, "require db object");
Objects.requireNonNull(label, "require label object");
this.label = label;
if (Env.isStoredTableNamesLowerCase()) {
this.label = label.toLowerCase();
Expand Down

0 comments on commit 7c8f181

Please sign in to comment.