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

Teradata: Added "AND STATS" options when creating table #4440

Merged
merged 3 commits into from Feb 28, 2023

Conversation

dflem97
Copy link
Contributor

@dflem97 dflem97 commented Feb 27, 2023

Brief summary of the change made

Fixes #4436

  • Updated keywords list with STATS
  • Applied change to ensure that AND (NO) STATS|STATISTICS options are available
  • Added new test cases to create_table_with_data.sql file
  • regenerated corresponding YAML file and checked output

Are there any other side effects of this change that we should be aware of?

No

Pull Request checklist

  • Please confirm you have completed any of the necessary steps below.

  • Included test cases to demonstrate any code changes, which may be one or more of the following:

    • .yml rule test cases in test/fixtures/rules/std_rule_cases.
    • .sql/.yml parser test cases in test/fixtures/dialects (note YML files can be auto generated with tox -e generate-fixture-yml).
    • Full autofix test cases in test/fixtures/linter/autofix.
    • Other.
  • Added appropriate documentation for the change.

  • Created GitHub issues for any relevant followup/future enhancements if appropriate.

dflem97 and others added 2 commits February 27, 2023 21:22
Fixes to resolve:
sqlfluff#4436

- Updated keywords list with STATS
- Applied change to ensure that AND STATS options are available
- Added test cases to create_table_with_data.sql file
- regenerated corresponding YAML file and checked output
Copy link
Contributor

@greg-finley greg-finley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice 👍

@greg-finley greg-finley enabled auto-merge (squash) February 28, 2023 00:28
@greg-finley
Copy link
Contributor

@dflem97 Thanks for the contribution! Could you please check the linting failures from the CI pipeline? Thanks. 🙂

@coveralls
Copy link

coveralls commented Feb 28, 2023

Pull Request Test Coverage Report for Build 4290591541

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 100.0%

Totals Coverage Status
Change from base Build 4287113475: 0.0%
Covered Lines: 17253
Relevant Lines: 17253

💛 - Coveralls

@codecov
Copy link

codecov bot commented Feb 28, 2023

Codecov Report

Base: 100.00% // Head: 100.00% // No change to project coverage 👍

Coverage data is based on head (016cefa) compared to base (009725c).
Patch has no changes to coverable lines.

Additional details and impacted files
@@            Coverage Diff            @@
##              main     #4440   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          208       208           
  Lines        15417     15417           
=========================================
  Hits         15417     15417           
Impacted Files Coverage Δ
src/sqlfluff/dialects/dialect_teradata.py 100.00% <ø> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

Changed formatting to pass linting test
auto-merge was automatically disabled February 28, 2023 07:32

Head branch was pushed to by a user without write access

@greg-finley greg-finley enabled auto-merge (squash) February 28, 2023 07:34
@greg-finley greg-finley merged commit 9c9bb32 into sqlfluff:main Feb 28, 2023
@dflem97 dflem97 deleted the issue-4436-td-and-stats branch February 28, 2023 08:42
@dflem97
Copy link
Contributor Author

dflem97 commented Feb 28, 2023

thanks @greg-finley

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.

Teradata dialect unparsable "AND (NO) STATS|STATISTICS" statement
3 participants