Skip to content

Commit

Permalink
8
Browse files Browse the repository at this point in the history
  • Loading branch information
xinyiZzz committed Sep 19, 2023
1 parent 141f403 commit cebb67f
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@ private static TFetchSchemaTableDataResult backendsMetadataResult(TMetadataTable
trow.addToColumnValue(new TCell().setIntVal(backend.getBePort()));
trow.addToColumnValue(new TCell().setIntVal(backend.getHttpPort()));
trow.addToColumnValue(new TCell().setIntVal(backend.getBrpcPort()));
trow.addToColumnValue(new TCell().setIntVal(backend.getArrowFlightSqlPort()));
}
trow.addToColumnValue(new TCell().setStringVal(TimeUtils.longToTimeString(backend.getLastStartTime())));
trow.addToColumnValue(new TCell().setStringVal(TimeUtils.longToTimeString(backend.getLastUpdateMs())));
Expand Down
2 changes: 2 additions & 0 deletions regression-test/data/performance_p0/redundant_conjuncts.out
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ PLAN FRAGMENT 0
PARTITION: HASH_PARTITIONED: `default_cluster:regression_test_performance_p0`.`redundant_conjuncts`.`k1`

VRESULT SINK
MYSQL_PROTOCAL

0:VOlapScanNode
TABLE: default_cluster:regression_test_performance_p0.redundant_conjuncts(redundant_conjuncts), PREAGGREGATION: OFF. Reason: No AggregateInfo
Expand All @@ -21,6 +22,7 @@ PLAN FRAGMENT 0
PARTITION: HASH_PARTITIONED: `default_cluster:regression_test_performance_p0`.`redundant_conjuncts`.`k1`

VRESULT SINK
MYSQL_PROTOCAL

0:VOlapScanNode
TABLE: default_cluster:regression_test_performance_p0.redundant_conjuncts(redundant_conjuncts), PREAGGREGATION: OFF. Reason: No AggregateInfo
Expand Down
2 changes: 1 addition & 1 deletion regression-test/suites/demo_p0/httpTest_action.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ suite("http_test_action") {
def backendIdToBackendIP = [:]
def backendIdToBackendBrpcPort = [:]
for (String[] backend in backends) {
if (backend[8].equals("true")) {
if (backend[9].equals("true")) {
backendIdToBackendIP.put(backend[0], backend[1])
backendIdToBackendBrpcPort.put(backend[0], backend[5])
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
suite("test_backends_tvf","p0,external,tvf,external_docker") {
List<List<Object>> table = sql """ select * from backends(); """
assertTrue(table.size() > 0)
assertEquals(24, table[0].size)
assertEquals(25, table[0].size)

// filter columns
table = sql """ select BackendId, Host, Alive, TotalCapacity, Version, NodeRole from backends();"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
suite("test_frontends_tvf","p0,external,tvf,external_docker") {
List<List<Object>> table = sql """ select * from `frontends`(); """
assertTrue(table.size() > 0)
assertTrue(table[0].size == 17)
assertTrue(table[0].size == 18)

// filter columns
table = sql """ select Name from `frontends`();"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ suite("test_map_load_and_compaction", "p0") {
backends = sql """ show backends; """
assertTrue(backends.size() > 0)
for (String[] b : backends) {
assertEquals("true", b[8])
assertEquals("true", b[9])
}
} finally {
try_sql("DROP TABLE IF EXISTS ${testTable}")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
suite("information_schema") {
List<List<Object>> table = sql """ select * from backends(); """
assertTrue(table.size() > 0)
assertTrue(table[0].size == 24)
assertTrue(table[0].size == 25)

sql "SELECT DATABASE();"
sql "select USER();"
Expand Down

0 comments on commit cebb67f

Please sign in to comment.