You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
150432: randgen: use hidden rowid column in columnFamilyMutator r=yuzefovich a=yuzefovich
**tree: fix CREATE TABLE format for ON COMMIT option**
We missed adding support for properly formatting the ON COMMIT option of
the CREATE TABLE statement, but it hasn't had any impact since the only
behavior we support matches the unspecified option. This was exposed by
the column family mutator where changing the stmt didn't preserve the
explicit PRESERVE ROWS option.
**randgen: use hidden rowid column in columnFamilyMutator**
This commit extends the column family mutator to work in the special
(but somewhat common) case when the table has a single column that is
not the primary key. When the user doesn't specify a primary key,
CREATE TABLE adds a hidden 'rowid' column to use as the primary key.
We now use this column in addition to the explicitly defined column to
exercise randomized column families. In particular, this would have
caught the CIText bug with multiple column families from a couple weeks
ago.
Additionally, this commit extends the logic test framework to support
`statement disable-cf-mutator ok` variant which disables the CF mutator
if applicable (it's applied only to CREATE TABLE stmts). Previously, the
only way to disable the mutator was to explicitly include column family
definitions, and `disable-cf-mutator` seems nicer.
This new option is used in many places to make the output of SHOW CREATE
TABLE deterministic. An attempt is made to minimize the test churn while
also disabling the CF mutator in reduced scopes.
Fixes: #150392.
Epic: None
Release note: None
Co-authored-by: Yahor Yuzefovich <[email protected]>
0 commit comments