Skip to content

Conversation

@bitemyapp
Copy link
Contributor

@bitemyapp bitemyapp commented Oct 3, 2022

This was needed for the Athena SQL parsing I've been doing.

Fixes #632 632

@coveralls
Copy link

coveralls commented Oct 3, 2022

Pull Request Test Coverage Report for Build 3275858885

  • 8 of 8 (100.0%) changed or added relevant lines in 2 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.006%) to 85.852%

Totals Coverage Status
Change from base Build 3255613260: 0.006%
Covered Lines: 10765
Relevant Lines: 12539

💛 - Coveralls

@bitemyapp bitemyapp changed the title Hacky patch for supporting backticks in GenericDialect Patch for supporting backticks in GenericDialect Oct 5, 2022
@bitemyapp bitemyapp force-pushed the bitemyapp/fixing-describe-backticks branch from 96c9b0d to 2da0843 Compare October 5, 2022 16:03
@bitemyapp
Copy link
Contributor Author

I've pushed a cleaned up version here that should be fine.

Copy link
Contributor

@alamb alamb left a comment

Choose a reason for hiding this comment

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

Thanks for the contribution @bitemyapp

}

#[test]
fn parse_describe() {
Copy link
Contributor

Choose a reason for hiding this comment

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

Given this was a change to the generic Dialect (the default impl) can you also please add a test in parser_generic.rs as well?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yep, I think that makes sense. Thank you! 3rd kid in as many years born Monday (first daughter!), will get to it in a few days I think.

Copy link
Contributor

Choose a reason for hiding this comment

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

3rd kid in as many years born Monday (first daughter!

Congratulations and good luck!

Copy link
Contributor Author

@bitemyapp bitemyapp Oct 18, 2022

Choose a reason for hiding this comment

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

@alamb

can you also please add a test in parser_generic.rs as well?

I've added a generic test in the Hive test. parser_common was mostly about "all dialects", this change is just hive and generic. There are other Hive tests testing generic such that I factored out the dialect value creation into a function.

I think the remaining thing here is lifting the backtick out of the trait default implementation out to Hive and Generic's trait impls. What do you think?

@alamb alamb marked this pull request as draft October 15, 2022 11:40
@alamb
Copy link
Contributor

alamb commented Oct 15, 2022

Marking as draft so I know it isn't waiting on review anymore

@bitemyapp bitemyapp force-pushed the bitemyapp/fixing-describe-backticks branch from 2da0843 to 271c332 Compare October 18, 2022 17:42
@bitemyapp bitemyapp force-pushed the bitemyapp/fixing-describe-backticks branch from 271c332 to 0ec2794 Compare October 18, 2022 18:11
@alamb
Copy link
Contributor

alamb commented Aug 17, 2023

Closing this PR as it is more than 6 months old without activity. Please reopen or make another PR if you plan to keep working on this.

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.

Backticks in ObjectName argument to DESCRIBE fails to parse, dialect behavior specialization

3 participants