Skip to content

Commit 5c32aef

Browse files
committed
parallel-workload: Don't use uuid_generate_v5
also generate larger expressions Seen failing in https://buildkite.com/materialize/nightly/builds/13939#019a35f7-b7e4-4f6d-b97a-4f9548e82422
1 parent ba04e14 commit 5c32aef

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

misc/python/materialize/parallel_workload/expression.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212

1313
from materialize.data_ingest.data_type import (
1414
DATA_TYPES,
15-
UUID,
1615
Boolean,
1716
Bytea,
1817
DataType,
@@ -260,10 +259,11 @@ def __init__(self, text: str, params: list, unsupported: ExprKind = ExprKind.ALL
260259
FuncOp("list_cat({}, {})", [IntList, IntList]),
261260
]
262261

263-
FUNC_OPS[UUID] += [
264-
FuncOp("uuid_generate_v5({}, {})", [UUID, Text]),
265-
# FuncOp("cast({} as uuid)", [Text]),
266-
]
262+
# uuid_generate_v5 can return NULL
263+
# FUNC_OPS[UUID] += [
264+
# FuncOp("uuid_generate_v5({}, {})", [UUID, Text]),
265+
# # FuncOp("cast({} as uuid)", [Text]),
266+
# ]
267267

268268

269269
def expression(
@@ -277,7 +277,7 @@ def expression(
277277
level: int = 0,
278278
) -> str:
279279
if level < 60:
280-
if FUNC_OPS[data_type] and rng.random() < 0.5:
280+
if FUNC_OPS[data_type] and rng.random() < 0.7:
281281
fnop = rng.choice(FUNC_OPS[data_type])
282282
if (
283283
kind == ExprKind.ALL

0 commit comments

Comments
 (0)