Skip to content

Add escape character in like predicate for SHOW CATALOGS#1691

Merged
martint merged 1 commit intotrinodb:masterfrom
Praveen2112:show_catalogs_escape
Oct 30, 2019
Merged

Add escape character in like predicate for SHOW CATALOGS#1691
martint merged 1 commit intotrinodb:masterfrom
Praveen2112:show_catalogs_escape

Conversation

@Praveen2112
Copy link
Copy Markdown
Member

No description provided.

@cla-bot cla-bot bot added the cla-signed label Oct 8, 2019
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This should go in TestParserErrorHandling. Generally, we try to avoid engine-specific tests in AbstractTestQueries, since these run for every connector and can extend test run time considerably.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

These two should go in TestAnalyzer

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Move this one to an engine-specific test (similar to the ones in io.prestosql.sql.query.TestXXX). It'd be nice to also have a positive test. There's a catalog named testing_catalog in LocalQueryRunner that you can use for that purpose.

@Praveen2112
Copy link
Copy Markdown
Member Author

@martint Thanks for your insights. Have applied the comments

@Praveen2112 Praveen2112 force-pushed the show_catalogs_escape branch 2 times, most recently from e68f9d0 to 325f8dd Compare October 17, 2019 06:50
@Praveen2112 Praveen2112 force-pushed the show_catalogs_escape branch 4 times, most recently from 3c91259 to 043f626 Compare October 30, 2019 07:59
@martint martint merged commit 303a30d into trinodb:master Oct 30, 2019
@martint martint added this to the 324 milestone Oct 30, 2019
@martint martint mentioned this pull request Oct 30, 2019
5 tasks
@Praveen2112 Praveen2112 deleted the show_catalogs_escape branch November 9, 2019 14:07
amitkdutta pushed a commit to amitkdutta/presto that referenced this pull request May 15, 2022
Cherry-pick of trinodb/trino#1691

Co-authored-by: Praveen Krishna <praveenkrishna@tutanota.com>
tdcmeehan pushed a commit to prestodb/presto that referenced this pull request May 17, 2022
Cherry-pick of trinodb/trino#1691

Co-authored-by: Praveen Krishna <praveenkrishna@tutanota.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

2 participants