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

Align documentation for COPY command with current parser implementation #661

Closed
wants to merge 4 commits into from

Conversation

whitehawk
Copy link

@whitehawk whitehawk commented Dec 12, 2023

Updated COPY command documentation to fix mismatches with parser implementation
for following statements:
'FILL_MISSING_FIELDS'
'ON_SEGMENT'
'[LOG ERRORS] SEGMENT REJECT LIMIT [ [ROWS] | PERCENT ]'
'IGNORE EXTERNAL PARTITIONS'
'NEWLINE'

Plus updated COPY test for minimal syntax check of these statements.

… COPY command.

Problem description:
In cases where the COPY command is used with new syntax where options are listed in parentheses, "FILL MISSING FIELD" option is causing a syntax error.
Old syntax without parentheses works fine.

Root cause:
Parser's rule for every option in the list of options (nonterminal symbol copy_generic_opt_elem) currently expects that every option has a form of "string without spaces" plus optional "space" and "argument".
'FILL MISSING FIELD' doesn't match this pattern.

Fix:
Added handling of the "FILL MISSING FIELDS" option to the grammar file for the nonterminal symbol copy_generic_opt_elem.
@BenderArenadata
Copy link

Allure report https://allure-ee.adsw.io/launch/60231

@BenderArenadata
Copy link

Failed job Resource group isolation tests on x86_64: https://gitlab.adsw.io/arenadata/github_mirroring/gpdb/-/jobs/877297

@BenderArenadata
Copy link

Failed job Resource group isolation tests on ppc64le: https://gitlab.adsw.io/arenadata/github_mirroring/gpdb/-/jobs/877298

Reverted changes in grammar file from commit
5721ff2.
Also updated COPY command test to check
'FILL_MISSING_FIELDS'
'ON_SEGMENT'
'[LOG ERRORS] SEGMENT REJECT LIMIT <count> [ [ROWS] | PERCENT ]'
'IGNORE EXTERNAL PARTITIONS'
'NEWLINE'
statements.
@whitehawk whitehawk changed the title Fixed an issue with an unrecognized FILL MISSING FIELD option for the COPY command Align documentation for COPY command with current parser implementation Jan 18, 2024
@whitehawk whitehawk marked this pull request as draft January 18, 2024 05:44
@BenderArenadata
Copy link

Allure report https://allure-ee.adsw.io/launch/61997

@BenderArenadata
Copy link

Failed job Resource group isolation tests on x86_64: https://gitlab.adsw.io/arenadata/github_mirroring/gpdb/-/jobs/975477

@BenderArenadata
Copy link

Failed job Resource group isolation tests on ppc64le: https://gitlab.adsw.io/arenadata/github_mirroring/gpdb/-/jobs/975478

@BenderArenadata
Copy link

Failed job Regression tests with ORCA on x86_64: https://gitlab.adsw.io/arenadata/github_mirroring/gpdb/-/jobs/975468

@whitehawk whitehawk closed this Oct 16, 2024
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.

2 participants