-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
opt: Unexpected error when using recursive CTE #45869
Labels
C-bug
Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.
S-3-ux-surprise
Issue leaves users wondering whether CRDB is behaving properly. Likely to hurt reputation/adoption.
Comments
The error comes from the execbuilder. Looks like there's a problem in the optbuilder, we are building the inner WITH on top of the recursive WITH:
|
Looks related to #42373. |
craig bot
pushed a commit
that referenced
this issue
Mar 11, 2020
45655: sql: add more detailed test for operations during a primary key change r=lucy-zhang a=rohany The existing operations test did not catch various bugs uncovered in #45347, so this test expands upon the existing schema change operations tests with a larger test case. Release note: None 45877: opt: fix bug when WITH was used inside WITH RECURSIVE r=RaduBerinde a=RaduBerinde We were incorrectly building the inner CTE above the recursive CTE. Fixes #45869. Release note (bug fix): fixed query errors in cases where a CTE is used inside a recursive CTE. Release justification: Category 2: Bug fixes and low-risk updates to new functionality. 45973: engine: fix different serialization of MVCCMetadata used for r=sumeerbhola a=sumeerbhola non-MVCC data that is merged using C++ code in RocksDB and Go code in Pebble The serialization now matches the C++ code. Fixes #45811 Release note: None 45992: sql: decrease job adopt interval for schema change tests r=lucy-zhang a=lucy-zhang This PR decreases the job adopt interval to 100 ms for some schema change tests for retries, so that the job registry adopts the jobs to retry more quickly. These test were taking over a minute after the schema change job refactor, and now take about 1 second. Closes #45970. Release justification: This change only fixes tests. Release note: None Co-authored-by: Rohan Yadav <rohany@alumni.cmu.edu> Co-authored-by: Radu Berinde <radu@cockroachlabs.com> Co-authored-by: sumeerbhola <sumeer@cockroachlabs.com> Co-authored-by: Lucy Zhang <lucy-zhang@users.noreply.github.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
C-bug
Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.
S-3-ux-surprise
Issue leaves users wondering whether CRDB is behaving properly. Likely to hurt reputation/adoption.
REPRO:
EXPECTED: No error, PG is able to run this query.
The text was updated successfully, but these errors were encountered: