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

cli: EXPLAIN ANALYZE doesn't work in some cases after switch to jackc/pgx #82502

Closed
yuzefovich opened this issue Jun 7, 2022 · 0 comments · Fixed by #82520
Closed

cli: EXPLAIN ANALYZE doesn't work in some cases after switch to jackc/pgx #82502

yuzefovich opened this issue Jun 7, 2022 · 0 comments · Fixed by #82520
Assignees
Labels
C-bug Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior. sync-me-7 sync-me-8

Comments

@yuzefovich
Copy link
Member

yuzefovich commented Jun 7, 2022

I ran into the following error:

root@localhost:26257/tpch> EXPLAIN ANALYZE SELECT s_acctbal, s_name, n_name, p_partkey, p_mfgr, s_address, s_phone, s_comment FROM part, supplier, partsupp, nation, region WHERE p_partkey = ps_partkey AND s_suppkey = ps_suppkey AND p_size = 15 AND p_type LIKE '%BRASS' AND s_nationkey = n_nationkey AND n_regionkey = r_regionkey AND r_name = 'EUROPE' AND ps_supplycost = ( SELECT min(ps_supplycost) FROM partsupp, supplier, nation, region WHERE p_partkey = ps_partkey AND s_suppkey = ps_suppkey AND s_nationkey = n_nationkey AND n_regionkey = r_regionkey AND r_name = 'EUROPE') ORDER BY s_acctbal DESC, n_name, s_name, p_partkey LIMIT 100;
EXPLAIN ANALYZE 192
ERROR: number of field descriptions must equal number of destinations, got 1 and 8
SQLSTATE: XX000
HINT: You have encountered an unexpected error.

Please check the public issue tracker to check whether this problem is
already tracked. If you cannot find it there, please report the error
with details by creating a new issue.

If you would rather not post publicly, please contact us directly
using the support form.

We appreciate your feedback.

I've narrowed the problem down to fcc7de4.

In order to repro, restore TPCH dataset with Scale Factor of 1 (internal instructions are here), and run EXPLAIN ANALYZE on TPCH Q2 (others also seem to work, Q2 is one of the shortest).

Jira issue: CRDB-16598

@yuzefovich yuzefovich added the C-bug Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior. label Jun 7, 2022
@yuzefovich yuzefovich changed the title cli: EXPLAIN ANALYZE doesn't work in some cases after switch to jacks/pgx cli: EXPLAIN ANALYZE doesn't work in some cases after switch to jacks\c/pgx Jun 7, 2022
@yuzefovich yuzefovich changed the title cli: EXPLAIN ANALYZE doesn't work in some cases after switch to jacks\c/pgx cli: EXPLAIN ANALYZE doesn't work in some cases after switch to jackc/pgx Jun 7, 2022
@craig craig bot closed this as completed in #82520 Jun 7, 2022
@craig craig bot closed this as completed in d9fd5bf Jun 7, 2022
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. sync-me-7 sync-me-8
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants