Merged
Conversation
p-linnane
approved these changes
Dec 21, 2023
Contributor
|
🤖 An automated task has requested bottles to be published to this PR. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Created by
brew bumpCreated with
brew bump-formula-pr.Details
release notes
Prior to this PR, we used the column's comparison operator when attempting to detect if concurrent changes to a column could be resolved during a merge operation.
However, this can cause a problem when a type has two different representations that compare equal.
In order to accomplish both of these, this PR does two things:
Prints a warning if any nonsense variables are found in global or local config files whenever any CLI command is run. Also restricts users from adding any nonsense variables with
dolt config --addordolt config --set.Resolves: Fail when there is nonsense in config_golbal.json dolthub/dolt#7165
go-mysql-server
Updates need to resolve default expressions. The input definitions for update joins include the total join output columns. If two of those columns have the same name, the target table's unqualified default expression will throw an "ambiguous column" error. We partition the update join schemas/column definitions to sidestep the error.
The case where this is problematic is ALTER COLUMN expressions, where only the columns being modified are scoped for some reason. In those cases, I create a new scope with the source table schema to provide the full set of underlying column definitions. There is probably a whole class of virtual columns/column default bugs related to the way we resolve alter statements.
ctx.Spanagainguard
ctx.Spanwith nil check dolthub/go-mysql-server#2203 again, because it was overwrittenfixes Previous panic concerning CASE WHEN dolthub/dolt#7182 again
RangeHeapJoins looked at the lateral join scope when assigning indexes.However, we never tested nested joins for this case, leading to Query results are not as expected dolthub/dolt#7177
What made the error more apparent was the string in the left scope that would result in empty results when doing lookups into the right tables. The fix was to look at the whole lateral scope when indexing
RangeHeapJoinsfixes Query results are not as expected dolthub/dolt#7177
on update current_timestampThis PR adds support for handling and executing
ON UPDATEcolumn expressions, which are triggered when an update is applied to any column in the row.TODO:
now()for default, but not the syntax foron updatefixes
ON UPDATE CURRENT_TIMESTAMPin column definition does not update TIMESTAMP dolthub/dolt#6030vitess
Previously, an inline column check constraint could only appear as the very last option for a column definition. This change allows it to appear in other positions in the column definition. For example, this query now works:
CREATE TABLEwith bothCHECKandNOT NULLdolthub/dolt#7195SqlType is a function in Vitess for normalizing every type name. It was missing an entry for the "CHARACTER" keyword.
I added tests that should verify every single valid type keyword in the grammar, so this shouldn't happen again.
Closed Issues
CREATE TABLEwith bothCHECKandNOT NULLSET PERSIST GLOBALfor Dolt system variables