-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Test and Update MInVersionsFixedIn for issue of ALTER PARTITIONED TABLE ADD PRIMARY KEY #2047
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
ybVersion := os.Getenv("YB_VERSION") | ||
if ybVersion == "" { | ||
panic("YB_VERSION env variable is not set. Set YB_VERSIONS=2024.1.3.0-b105 for example") | ||
} | ||
|
||
ybVersionWithoutBuild := strings.Split(ybVersion, "-")[0] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Q: so our --target-db-version
can only accept the version without build number only?
Just asking this if we are mentioning this in flag's help msg ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So, right now it does accept build number as well, but the problem is that 2024.2.0.0-b145
is considered to be > 2024.2.0.0
(which is defined in the MinVersionsFixedIn).
I'm planning to raise another PR preventing users from passing the build number in the input to prevent these kinds of issues.
) PARTITION BY RANGE (order_date); | ||
ALTER TABLE orders2 ADD PRIMARY KEY (order_id,order_date)`) | ||
|
||
assertErrorCorrectlyThrownForIssueForYBVersion(t, err, "changing primary key of a partitioned table is not yet implemented", alterTableAddPKOnPartitionIssue, testYbVersion) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: no need to pass testYbVersion
as its global var
Describe the changes in this pull request
Describe if there are any user-facing changes
How was this pull request tested?
Does your PR have changes that can cause upgrade issues?