Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dataroaring committed May 16, 2024
1 parent 62b35b1 commit 0a94c34
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,12 @@ suite("select_with_tablets") {
order_qt_select1 """ SELECT * FROM ${table_name1} """

def res = sql_return_maparray """ show tablets from ${table_name1}"""
log.info("res: " + res.toString())
res = deduplicate_tablets(res)
log.info("res: " + res.toString())

res = sql_return_maparray """ show tablets from ${table_name1} where version = 2 """
log.info("res: " + res.toString())
res = deduplicate_tablets(res)
log.info("res: " + res.toString())
assertEquals(res.size(), 1)
Expand All @@ -70,8 +72,10 @@ suite("select_with_tablets") {
order_qt_select11 """ SELECT * FROM ${table_name1} PARTITION between_20_70 where id < 2"""

res = sql_return_maparray """ show tablets from ${table_name1} where version = 1 """
log.info("res: " + res.toString())
res = deduplicate_tablets(res)
assertTrue(res.size() == 2)
log.info("res: " + res.toString())
assertEquals(res.size(), 2)
assertEquals("1", res[0].Version)
assertEquals("1", res[1].Version)
// result should be empty because TABLET(${res[0].TabletId}) does not have data.
Expand Down

0 comments on commit 0a94c34

Please sign in to comment.