This is an automated email from the ASF dual-hosted git repository.
yiguolei pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/master by this push:
new 171a194070 [minor](regression) fix unstable test case (#19018)
171a194070 is described below
commit 171a1940708f9e39afa3ab8799d04d6e78bde363
Author: Gabriel <[email protected]>
AuthorDate: Tue Apr 25 09:09:24 2023 +0800
[minor](regression) fix unstable test case (#19018)
* [minor](regression) fix unstable test case
* update
---
.../inverted_index_p0/unique_with_mow/test_pk_uk_case.groovy | 8 +-------
regression-test/suites/unique_with_mow_p2/test_pk_uk_case.groovy | 8 +-------
2 files changed, 2 insertions(+), 14 deletions(-)
diff --git
a/regression-test/suites/inverted_index_p0/unique_with_mow/test_pk_uk_case.groovy
b/regression-test/suites/inverted_index_p0/unique_with_mow/test_pk_uk_case.groovy
index 05ce6f56a8..2f1487a822 100644
---
a/regression-test/suites/inverted_index_p0/unique_with_mow/test_pk_uk_case.groovy
+++
b/regression-test/suites/inverted_index_p0/unique_with_mow/test_pk_uk_case.groovy
@@ -102,14 +102,13 @@ suite("test_pk_uk_case", "inverted_index") {
def part_key = rd.nextInt(1000)
def sub_key = 13
def line_num = 29
- def decimal = rd.nextFloat()
+ def decimal = rd.nextInt(1000) + 0.11
def city = RandomStringUtils.randomAlphabetic(10)
def name = UUID.randomUUID().toString()
def date =
DateTimeFormatter.ofPattern("yyyy-MM-dd").format(LocalDateTime.now())
for (int idx = 0; idx < 10; idx++) {
order_key = rd.nextInt(10)
part_key = rd.nextInt(10)
- decimal = rd.nextFloat()
city = RandomStringUtils.randomAlphabetic(10)
name = UUID.randomUUID().toString()
sql """ INSERT INTO ${tableNamePk} VALUES
@@ -123,7 +122,6 @@ suite("test_pk_uk_case", "inverted_index") {
order_key = rd.nextInt(10)
part_key = rd.nextInt(10)
- decimal = rd.nextFloat()
city = RandomStringUtils.randomAlphabetic(10)
name = UUID.randomUUID().toString()
sql """ INSERT INTO ${tableNamePk} VALUES
@@ -137,7 +135,6 @@ suite("test_pk_uk_case", "inverted_index") {
order_key = rd.nextInt(10)
part_key = rd.nextInt(10)
- decimal = rd.nextFloat()
city = RandomStringUtils.randomAlphabetic(10)
name = UUID.randomUUID().toString()
sql """ INSERT INTO ${tableNamePk} VALUES
@@ -151,7 +148,6 @@ suite("test_pk_uk_case", "inverted_index") {
order_key = rd.nextInt(10)
part_key = rd.nextInt(10)
- decimal = rd.nextFloat()
city = RandomStringUtils.randomAlphabetic(10)
name = UUID.randomUUID().toString()
sql """ INSERT INTO ${tableNamePk} VALUES
@@ -165,7 +161,6 @@ suite("test_pk_uk_case", "inverted_index") {
order_key = rd.nextInt(10)
part_key = rd.nextInt(10)
- decimal = rd.nextFloat()
city = RandomStringUtils.randomAlphabetic(10)
name = UUID.randomUUID().toString()
sql """ INSERT INTO ${tableNamePk} VALUES
@@ -180,7 +175,6 @@ suite("test_pk_uk_case", "inverted_index") {
// insert batch key
order_key = rd.nextInt(10)
part_key = rd.nextInt(10)
- decimal = rd.nextFloat()
city = RandomStringUtils.randomAlphabetic(10)
name = UUID.randomUUID().toString()
sql """ INSERT INTO ${tableNamePk} VALUES
diff --git a/regression-test/suites/unique_with_mow_p2/test_pk_uk_case.groovy
b/regression-test/suites/unique_with_mow_p2/test_pk_uk_case.groovy
index 8ca7491b56..3739ed25af 100644
--- a/regression-test/suites/unique_with_mow_p2/test_pk_uk_case.groovy
+++ b/regression-test/suites/unique_with_mow_p2/test_pk_uk_case.groovy
@@ -95,14 +95,13 @@ suite("test_pk_uk_case") {
def part_key = rd.nextInt(1000)
def sub_key = 13
def line_num = 29
- def decimal = rd.nextFloat()
+ def decimal = rd.nextInt(1000) + 0.11
def city = RandomStringUtils.randomAlphabetic(10)
def name = UUID.randomUUID().toString()
def date =
DateTimeFormatter.ofPattern("yyyy-MM-dd").format(LocalDateTime.now())
for (int idx = 0; idx < 500; idx++) {
order_key = rd.nextInt(10)
part_key = rd.nextInt(10)
- decimal = rd.nextFloat()
city = RandomStringUtils.randomAlphabetic(10)
name = UUID.randomUUID().toString()
sql """ INSERT INTO ${tableNamePk} VALUES
@@ -116,7 +115,6 @@ suite("test_pk_uk_case") {
order_key = rd.nextInt(10)
part_key = rd.nextInt(10)
- decimal = rd.nextFloat()
city = RandomStringUtils.randomAlphabetic(10)
name = UUID.randomUUID().toString()
sql """ INSERT INTO ${tableNamePk} VALUES
@@ -130,7 +128,6 @@ suite("test_pk_uk_case") {
order_key = rd.nextInt(10)
part_key = rd.nextInt(10)
- decimal = rd.nextFloat()
city = RandomStringUtils.randomAlphabetic(10)
name = UUID.randomUUID().toString()
sql """ INSERT INTO ${tableNamePk} VALUES
@@ -144,7 +141,6 @@ suite("test_pk_uk_case") {
order_key = rd.nextInt(10)
part_key = rd.nextInt(10)
- decimal = rd.nextFloat()
city = RandomStringUtils.randomAlphabetic(10)
name = UUID.randomUUID().toString()
sql """ INSERT INTO ${tableNamePk} VALUES
@@ -158,7 +154,6 @@ suite("test_pk_uk_case") {
order_key = rd.nextInt(10)
part_key = rd.nextInt(10)
- decimal = rd.nextFloat()
city = RandomStringUtils.randomAlphabetic(10)
name = UUID.randomUUID().toString()
sql """ INSERT INTO ${tableNamePk} VALUES
@@ -173,7 +168,6 @@ suite("test_pk_uk_case") {
// insert batch key
order_key = rd.nextInt(10)
part_key = rd.nextInt(10)
- decimal = rd.nextFloat()
city = RandomStringUtils.randomAlphabetic(10)
name = UUID.randomUUID().toString()
sql """ INSERT INTO ${tableNamePk} VALUES
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]