Skip to content

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

Merged
craig[bot] merged 3 commits intocockroachdb:masterfrom
otan-cockroach:reset_syntax
Jan 27, 2022
Merged

parser: implement ALTER TABLE ... RESET (...) #75429
craig[bot] merged 3 commits intocockroachdb:masterfrom
otan-cockroach:reset_syntax

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 a team and rafiss January 24, 2022 00:23
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@otan otan mentioned this pull request Jan 24, 2022
30 tasks
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.

otan added 2 commits January 27, 2022 13:40
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

Comments