Skip to content
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

parser: implement ALTER TABLE ... RESET (...) #75429

Merged
merged 3 commits into from
Jan 27, 2022

Conversation

otan
Copy link
Contributor

@otan otan commented Jan 24, 2022

Only last two commits for review (rest is #75262).
See individual commits for details.

@otan otan requested review from rafiss and a team January 24, 2022 00:23
@cockroach-teamcity
Copy link
Member

This change is Reviewable

Copy link
Collaborator

@rafiss rafiss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm! just a nit for comments

Reviewed 2 of 3 files at r1, 3 of 5 files at r3, 9 of 9 files at r4, all commit messages.
Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained (waiting on @otan)


pkg/sql/paramparse/paramobserver.go, line 85 at r4 (raw file):

	onSet(evalCtx *tree.EvalContext, key string, datum tree.Datum) error
	onReset(evalCtx *tree.EvalContext, key string) error
	runPostChecks() error

nit: could use comments on all of the interface methods

@otan
Copy link
Contributor Author

otan commented Jan 26, 2022

done!

bors r=rafiss

@craig
Copy link
Contributor

craig bot commented Jan 26, 2022

Canceled.

@otan
Copy link
Contributor Author

otan commented Jan 26, 2022

oops, pushed the wrong branch

bors r=rafiss

@craig
Copy link
Contributor

craig bot commented Jan 26, 2022

Build failed (retrying...):

This is a minor refactor of the paramparse package to prepare for
implementing the ALTER TABLE ... RESET (...) syntax.

Actions
* Rename the receivers from `a` to `po`.
* Make methods on `ParamObserver` interface private.
* Rename `Apply` to `Set.
* Make the table parameters a map.

Release note: None
@otan
Copy link
Contributor Author

otan commented Jan 27, 2022

conflict ...

bors r-

@craig
Copy link
Contributor

craig bot commented Jan 27, 2022

Canceled.

Also includes pieces here which will pave the way for implementing the
TTL syntax.

Release note (sql change): Implemented the `ALTER TABLE ... RESET (...)`
syntax. This is currently a no-op operation.
@otan
Copy link
Contributor Author

otan commented Jan 27, 2022

bors r=rafiss

@craig
Copy link
Contributor

craig bot commented Jan 27, 2022

Build succeeded:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants