Open qvad opened 3 years ago
As of commit 1d34d30a181d77b6d01ff62c25c60c74d5c64d32, I don't see error for the temp table creation:
yugabyte=# CREATE TEMPORARY TABLE t0(c0 FLOAT DEFAULT (0.1910669), c1 money UNIQUE DEFAULT (CAST(0.7390993 AS MONEY)) PRIMARY KEY, UNIQUE(c0)) ON COMMIT DELETE ROWS ;
CREATE TABLE
yugabyte=# CREATE TEMP TABLE IF NOT EXISTS t2(c0 FLOAT PRIMARY KEY) ON COMMIT DELETE ROWS ;
CREATE TABLE
yugabyte=# ^D\q
yugabyte=# create TABLE t0(c0 FLOAT DEFAULT (0.1910669), c1 money UNIQUE DEFAULT (CAST(0.7390993 AS MONEY)) PRIMARY KEY, UNIQUE(c0)) ;
CREATE TABLE
yugabyte=# create TABLE IF NOT EXISTS t2(c0 FLOAT PRIMARY KEY) ;
CREATE TABLE
@tedyu It's not reproducible in simple tests. For now it requires SQLancer tests to run. It's definitely related to parallel workload. I will try to create reproducer in Java
Jira Link: DB-749 There is couple of thread failures in SQLancer with same error message
This is different logs, from different runs, but they have common SQL calls like this are temporary tables creation with PK and ON COMMIT DELETE. IT's not reproducible if user tries to evaluate it in single thread via JDBC client.
Here is examples: