mirror of
https://github.com/tencentmusic/supersonic.git
synced 2025-12-10 19:51:00 +00:00
[fix][headless]Fix schema corrector test cases. (#2027)
This commit is contained in:
@@ -666,8 +666,9 @@ public class SqlSelectHelper {
|
||||
}
|
||||
if (withSelect instanceof ParenthesedSelect) {
|
||||
ParenthesedSelect parenthesedSelect = (ParenthesedSelect) withSelect;
|
||||
PlainSelect withPlainSelect = parenthesedSelect.getPlainSelect();
|
||||
plainSelectList.add(withPlainSelect);
|
||||
List<PlainSelect> plainSelects = new ArrayList<>();
|
||||
SqlReplaceHelper.getFromSelect(parenthesedSelect, plainSelects);
|
||||
plainSelectList.addAll(plainSelects);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -893,7 +894,9 @@ public class SqlSelectHelper {
|
||||
collectSelects(withItem.getSelect(), selects);
|
||||
} else if (select instanceof ParenthesedSelect) {
|
||||
ParenthesedSelect parenthesedSelect = (ParenthesedSelect) select;
|
||||
collectSelects(parenthesedSelect.getPlainSelect(), selects);
|
||||
List<PlainSelect> plainSelects = new ArrayList<>();
|
||||
SqlReplaceHelper.getFromSelect(parenthesedSelect, plainSelects);
|
||||
plainSelects.forEach(s -> collectSelects(s, selects));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user