Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Postgres, Redshift: Support SIMILAR TO pattern matching expressions (#…
…2732) * Added first LIKE segment * See if this fixes recursive references * Added more segments * Committing PatternMatchingExpressionSegment so far * Added first LIKE segment * See if this fixes recursive references * Added more segments * Committing PatternMatchingExpressionSegment so far * Rolled back dev changes for the ANSI dialect * Copied Expression_A_Grammar to postgres * Added first LIKE segment * See if this fixes recursive references * Added more segments * Committing PatternMatchingExpressionSegment so far * Added first LIKE segment * See if this fixes recursive references * Added more segments * Committing PatternMatchingExpressionSegment so far * Rolled back dev changes for the ANSI dialect * Copied Expression_A_Grammar to postgres * Added Like operators * Updated postgres dialect * Updated implementation * Implemented SIMILAR TO * Added SIMILAR TO tests * Added POSIX Expression and Operator * Simplified implementation + added redshift tests * Linted * Added TODO * Added links to issues addressing TODOs * Simplified to LikeGrammar overwrite Co-authored-by: Barry Pollard <barry_pollard@hotmail.com> * Deleted bloat not needed due to LikeGrammar overwrite Co-authored-by: Barry Pollard <barry_pollard@hotmail.com> * Reverted LikeOperator changes in Postgres * Deleted unnecessary TODO * Updated yml hashes * Linted * Update src/sqlfluff/dialects/dialect_ansi.py Co-authored-by: Barry Pollard <barry_pollard@hotmail.com>
- Loading branch information