diff --git a/.github/workflows/codenotify.yml b/.github/workflows/codenotify.yml new file mode 100644 index 0000000000000..e3da640794293 --- /dev/null +++ b/.github/workflows/codenotify.yml @@ -0,0 +1,21 @@ +# notifies users from CODENOTIFY files if a PR changed any files +# that they subscribe to +name: codenotify + +on: + pull_request: + types: [opened, synchronize, ready_for_review] + +jobs: + codenotify: + runs-on: ubuntu-latest + name: codenotify + permissions: + pull-requests: write + steps: + - uses: actions/checkout@v2 + with: + ref: ${{ github.event.pull_request.head.sha }} + - uses: sourcegraph/codenotify@v0.6.3 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/presto-parser/src/main/antlr4/com/facebook/presto/sql/parser/CODENOTIFY b/presto-parser/src/main/antlr4/com/facebook/presto/sql/parser/CODENOTIFY new file mode 100644 index 0000000000000..21af32aa9d852 --- /dev/null +++ b/presto-parser/src/main/antlr4/com/facebook/presto/sql/parser/CODENOTIFY @@ -0,0 +1,5 @@ +# notify the following people for changes to the sql language +# see https://github.com/marketplace/actions/codenotify#codenotify-files for more info +# about CODENOTIFY files + +SqlBase.g4 @rschlussel @kaikalur diff --git a/presto-parser/src/main/antlr4/com/facebook/presto/sql/parser/SqlBase.g4 b/presto-parser/src/main/antlr4/com/facebook/presto/sql/parser/SqlBase.g4 index 56df4a994c1f6..c3be8ae132b99 100644 --- a/presto-parser/src/main/antlr4/com/facebook/presto/sql/parser/SqlBase.g4 +++ b/presto-parser/src/main/antlr4/com/facebook/presto/sql/parser/SqlBase.g4 @@ -342,6 +342,7 @@ booleanExpression | left=booleanExpression operator=OR right=booleanExpression #logicalBinary ; + // workaround for https://github.com/antlr/antlr4/issues/780 predicate[ParserRuleContext value] : comparisonOperator right=valueExpression #comparison