Github user hvanhovell commented on a diff in the pull request:

    https://github.com/apache/spark/pull/18387#discussion_r123509528
  
    --- Diff: 
sql/core/src/test/resources/sql-tests/results/tablesample-negative.sql.out ---
    @@ -0,0 +1,62 @@
    +-- Automatically generated by SQLQueryTestSuite
    +-- Number of queries: 6
    +
    +
    +-- !query 0
    +CREATE DATABASE mydb1
    +-- !query 0 schema
    +struct<>
    +-- !query 0 output
    +
    +
    +
    +-- !query 1
    +USE mydb1
    +-- !query 1 schema
    +struct<>
    +-- !query 1 output
    +
    +
    +
    +-- !query 2
    +CREATE TABLE t1 USING parquet AS SELECT 1 AS i1
    +-- !query 2 schema
    +struct<>
    +-- !query 2 output
    +
    +
    +
    +-- !query 3
    +SELECT mydb1.t1 FROM t1 TABLESAMPLE (-1 PERCENT)
    +-- !query 3 schema
    +struct<>
    +-- !query 3 output
    +org.apache.spark.sql.catalyst.parser.ParseException
    +
    +mismatched input 'FROM' expecting {<EOF>, 'WHERE', 'GROUP', 'ORDER', 
'HAVING', 'LIMIT', 'LATERAL', 'WINDOW', 'UNION', 'EXCEPT', 'MINUS', 
'INTERSECT', 'SORT', 'CLUSTER', 'DISTRIBUTE'}(line 1, pos 16)
    --- End diff --
    
    Yeah changing this in SqlBase.g4 seems to make sense.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to