Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upsql/parser: annotate unimplemented features with suitable errors #31335
Conversation
knz
requested review from
dt,
bobvawter and
BramGruneir
Oct 13, 2018
knz
added this to Triage
in SQL Front-end, Lang & Semantics
via automation
Oct 13, 2018
knz
requested review from
cockroachdb/sql-language-prs
as
code owners
Oct 13, 2018
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Show comment
Hide comment
knz
requested a review
from cockroachdb/core-prs
as a
code owner
Oct 13, 2018
dt
approved these changes
Oct 14, 2018
Reviewed 7 of 9 files at r1.
Reviewable status:complete! 0 of 0 LGTMs obtained
pkg/sql/parser/parse.go, line 52 at r1 (raw file):
var err *pgerror.Error if feat := p.scanner.lastError.unimplementedFeature; feat != "" { err = pgerror.UnimplementedWithDepth(depth+1, "syntax."+feat, p.scanner.lastError.msg)
this will change all the existing callers to have the prefix too now, which I guess is ok.
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Show comment
Hide comment
|
thanks bors r+ |
bot
pushed a commit
that referenced
this pull request
Oct 15, 2018
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Show comment
Hide comment
craig
bot
commented
Oct 15, 2018
Build succeeded |
craig
bot
merged commit f1b1659
into
cockroachdb:master
Oct 15, 2018
knz
deleted the
knz:20181013-annotated-unimp
branch
Oct 15, 2018
knz
moved this from Triage
to Current milestone
in SQL Front-end, Lang & Semantics
Oct 15, 2018
knz
referenced this pull request
Oct 15, 2018
Merged
release-2.1: assorted SQL telemetry fixes #31357
knz
moved this from Current milestone
to Finished (milestone r2.1)
in SQL Front-end, Lang & Semantics
Oct 15, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
knz commentedOct 13, 2018
•
edited
Requested by @awoods187.
Fixes #28301.
Fixes #28304.
Fixes #28302.
Fixes #28300.
Fixes #28297.
Fixes #28295.
Fixes #28294.
Fixes #28292.
This patch recognizes more syntax from PostgreSQL for the purpose of
reporting more fine grained "unimplemented feature" errors.
new:
AGGREGATE / CAST / COLLATION / CONVERSION / DOMAIN / EXTENSION /
FOREIGN TABLE / FOREIGN DATA (WRAPPER) / FUNCTION / LANGUAGE /
OPERATOR / PUBLICATION / RULE / SERVER / SUBSCRIPTION /
TEXT (SEARCH) / TRIGGER / MATERIALIZED VIEW.
modified:
Additionally unimplemented feature errors that stem during parsing
will now be prefixed with
syntax.to ease integration in the featurecount hierarchy.
Release note: None