Open Lchangliang opened 5 months ago
Two-dimensional test template: Because schema change is inherently asynchronous, a serial implementation is chosen. For example, https://github.com/apache/doris/pull/27112. We can also do this with asynchronous threads. groovy's asynchronous example is shown below
def thread1 = Thread.start {
sleep(600000)
for (int m = 0; m < 20; m++) {
big_base_query = queries_list.get(random.nextInt(queries_list.size()))
big_query_job(big_base_query)
}
}
def thread2 = Thread.start {
def load_times = 100
def load_threads = 250
for (int i = 0; i < load_times; i++) {
def threads = []
for (int j = 1; j < load_threads; j++) {
def idx = i * load_threads + j
def formattedNumber = String.format("%06d", idx)
threads.add(Thread.start {
stream_load_job(table_name, formattedNumber)
})
}
threads.each { it.join() }
}
}
thread1.join()
thread2.join()
Search before asking
Description
We need to test schema change at different latitudes to make sure it is correct.The following will provide some functional tests for interested students to implement. By implementing these functional tests, you can increase your understanding of doris and contribute to the doris community! If you want to pick the cases,the format example is
[One-dimensional][table][agg][col][1]
. If you finish the cases, you need to add pr-link after the comment, such as[One-dimensional][table][agg][col][1] pr-link
.You can refer to pr https://github.com/apache/doris/pull/34717/files.
Solution
One-dimensional test
table dimensional
agg
col
type
unique (mor and mow)
col
type
dup
col
type
property dimensional
table
partition
Two-dimensional test
Query
Analyze
Are you willing to submit PR?
Code of Conduct