Skip to content

Commit

Permalink
fix-rt
Browse files Browse the repository at this point in the history
  • Loading branch information
englefly committed Sep 10, 2024
1 parent c947dbb commit 2535ddd
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ suite("test_array_char_orderby", "query") {
def testTable = "test_array_char_orderby"

sql """
CREATE TABLE IF NOT EXISTS ${testTable} (
CREATE TABLE IF NOT EXISTS test_array_char_orderby (
`k1` INT(11) NULL,
`k2` array<array<char(50)>> NULL
) ENGINE=OLAP
Expand All @@ -35,16 +35,17 @@ suite("test_array_char_orderby", "query") {
)
"""
// prepare data
sql """ INSERT INTO ${testTable} VALUES (100, [['abc']]), (200, [['xyz']]) """
sql """ INSERT INTO test_array_char_orderby VALUES (100, [['abc']]), (200, [['xyz']]) """
sql "analyze table test_array_char_orderby with sync"
// set topn_opt_limit_threshold = 1024 to make sure _internal_service to be request with proto request
sql """ set topn_opt_limit_threshold = 1024 """

explain{
sql("select * from ${testTable} order by k1 limit 1")
sql("select * from test_array_char_orderby order by k1 limit 1")
contains "TOPN"
}

qt_select """ select * from ${testTable} order by k1 limit 1 """
qt_select """ select * from test_array_char_orderby order by k1 limit 1 """

sql "DROP TABLE IF EXISTS unpart_tbl_parquet_struct_3;"
sql """
Expand Down

0 comments on commit 2535ddd

Please sign in to comment.