[fix](tvf) To fix the bug that requires adding backticks on "frontends()" in order to query the frontends TVF. (#21338)

This commit is contained in:
zzzzzzzs
2023-06-30 22:37:21 +08:00
committed by GitHub
parent ed2cd4974e
commit 96aa0e5876
3 changed files with 26 additions and 2 deletions

View File

@ -7624,6 +7624,8 @@ keyword ::=
{: RESULT = id; :}
| KW_FEATURE:id
{: RESULT = id; :}
| KW_FRONTENDS:id
{: RESULT = id; :}
| KW_MAP:id
{: RESULT = id; :}
| KW_VARCHAR:id

View File

@ -32,14 +32,14 @@ import java.util.Map;
/**
* The Implement of table valued function
* backends().
* frontends().
*/
public class FrontendsTableValuedFunction extends MetadataTableValuedFunction {
public static final String NAME = "frontends";
private static final ImmutableList<Column> SCHEMA = ImmutableList.of(
new Column("Name", ScalarType.createStringType()),
new Column("HOST", ScalarType.createStringType()),
new Column("Host", ScalarType.createStringType()),
new Column("EditLogPort", ScalarType.createStringType()),
new Column("HttpPort", ScalarType.createStringType()),
new Column("QueryPort", ScalarType.createStringType()),