Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangstar333 committed Apr 18, 2024
1 parent b39b66c commit 8a58d45
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,8 @@ public void analyze(Analyzer analyzer) throws UserException {
analyzeUda();
} else if (isAlias) {
analyzeAliasFunction();
} else if (isTableFunction) {
analyzeTableFunction();
} else {
analyzeUdf();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -753,7 +753,11 @@ public List<Comparable> getInfo(boolean isVerbose) {
// function type
// intermediate type
if (this instanceof ScalarFunction) {
row.add("Scalar");
if (isUDTFunction()) {
row.add("TABLES");
} else {
row.add("Scalar");
}
row.add("NULL");
} else if (this instanceof AliasFunction) {
row.add("Alias");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ suite("test_javaudtf_decimal") {
qt_select2 """ SELECT user_id, cost_2, e1 FROM ${tableName} lateral view udtf_decimal(cost_2) temp as e1 order by user_id; """

} finally {
// try_sql("DROP FUNCTION IF EXISTS udtf_decimal(decimal);")
// try_sql("DROP TABLE IF EXISTS ${tableName}")
try_sql("DROP FUNCTION IF EXISTS udtf_decimal(decimal);")
try_sql("DROP TABLE IF EXISTS ${tableName}")
}
}
4 changes: 2 additions & 2 deletions regression-test/suites/javaudf_p0/test_javaudtf_double.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ suite("test_javaudtf_double") {
qt_select2 """ SELECT user_id, double_2, e1 FROM ${tableName} lateral view udtf_double(double_2) temp as e1 order by user_id; """

} finally {
// try_sql("DROP FUNCTION IF EXISTS udtf_double(double);")
// try_sql("DROP TABLE IF EXISTS ${tableName}")
try_sql("DROP FUNCTION IF EXISTS udtf_double(double);")
try_sql("DROP TABLE IF EXISTS ${tableName}")
}
}

0 comments on commit 8a58d45

Please sign in to comment.