Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions regression-test/suites/export/test_array_export.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -118,10 +118,11 @@ suite("test_array_export", "export") {
}

def select_out_file = {exportTable, HdfsPath, outFormat, BrokerName, HdfsUserName, HdfsPasswd->
sql """

def sqlString = """
SELECT * FROM ${exportTable}
INTO OUTFILE "${HdfsPath}"
FORMAT AS "${outFormat}"
FORMAT AS ${outFormat}
PROPERTIES
(
"broker.name" = "${BrokerName}",
Expand All @@ -131,6 +132,8 @@ suite("test_array_export", "export") {
"broker.password"="${HdfsPasswd}"
)
"""
logger.info("sqlString: ${sqlString}")
sql sqlString
}

def check_export_result = {checklabel->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ suite("test_array_load", "load_p0") {
def check_load_result = {checklabel, testTablex ->
def max_try_milli_secs = 10000
while(max_try_milli_secs) {
result = sql "show load where label = '${checklabel}'"
def result = sql "show load where label = '${checklabel}'"
if(result[0][2] == "FINISHED") {
sql "sync"
qt_select "select * from ${testTablex} order by k1"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ suite("test_broker_load_seq", "load_p0") {
def check_load_result = {checklabel, testTablex ->
def max_try_milli_secs = 10000
while(max_try_milli_secs) {
result = sql "show load where label = '${checklabel}'"
def result = sql "show load where label = '${checklabel}'"
if(result[0][2] == "FINISHED") {
//sql "sync"
qt_select "select * from ${testTablex} order by user_id, date, group_id"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ suite("test_broker_load_with_merge", "load_p0") {
`k2` DATE NOT NULL,
`k3` INT(11) NOT NULL,
`k4` INT(11) NOT NULL,
`v5` BIGINT SUM NULL DEFAULT "0"
`v5` BIGINT NULL DEFAULT "0"
) ENGINE=OLAP
UNIQUE KEY(`k1`)
COMMENT 'OLAP'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ suite("test_broker_load_with_partition", "load_p0") {
def check_load_result = {checklabel, testTablex ->
def max_try_milli_secs = 10000
while(max_try_milli_secs) {
result = sql "show load where label = '${checklabel}'"
def result = sql "show load where label = '${checklabel}'"
log.info("result: ${result}")
if(result[0][2] == "FINISHED") {
//sql "sync"
Expand All @@ -129,7 +129,7 @@ suite("test_broker_load_with_partition", "load_p0") {
def check_load_tmp_partition_result = {checklabel, testTablex ->
max_try_milli_secs = 10000
while(max_try_milli_secs) {
result = sql "show load where label = '${checklabel}'"
def result = sql "show load where label = '${checklabel}'"
log.info("result: ${result}")
if(result[0][2] == "FINISHED") {
//sql "sync"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ suite("test_broker_load_with_where", "load_p0") {
def check_load_result = {checklabel, testTablex ->
def max_try_milli_secs = 10000
while(max_try_milli_secs) {
result = sql "show load where label = '${checklabel}'"
def result = sql "show load where label = '${checklabel}'"
if(result[0][2] == "FINISHED") {
//sql "sync"
qt_select "select * from ${testTablex} order by k1"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ suite("test_json_load", "p0,nonConcurrent") {
}

def check_load_result = {checklabel, testTablex ->
def max_try_milli_secs = 10000
def max_try_milli_secs = 100000
while(max_try_milli_secs) {
def result = sql "show load where label = '${checklabel}'"
if(result[0][2] == "FINISHED") {
Expand Down