fedsp edited a comment on pull request #4720:
URL: https://github.com/apache/hudi/pull/4720#issuecomment-1060168443
Now, from a spark context (glue context), I tried the following pyspark
command:
`df = spark_context.sql("SELECT * FROM SANDBOX.hudi_0_11_tst TIMESTAMP AS OF
'2022-03-06 15:30:58'")`
and it gave me the following error:
```
File "/opt/amazon/spark/python/lib/pyspark.zip/pyspark/sql/context.py", line
433, in sql
return self.sparkSession.sql(sqlQuery)
File "/opt/amazon/spark/python/lib/pyspark.zip/pyspark/sql/session.py",
line 723, in sql
return DataFrame(self._jsparkSession.sql(sqlQuery), self._wrapped)
File
"/opt/amazon/spark/python/lib/py4j-0.10.9-src.zip/py4j/java_gateway.py", line
1305, in _call_
answer, self.gateway_client, self.target_id, self.name)
File "/opt/amazon/spark/python/lib/pyspark.zip/pyspark/sql/utils.py", line
117, in deco
raise converted from None
pyspark.sql.utils.ParseException:
mismatched input 'AS' expecting {<EOF>, ';'}(line 1, pos 46)
== SQL ==
SELECT * FROM SANDBOX.hudi_0_11_tst TIMESTAMP AS OF '2022-03-06 15:30:58'
----------------------------------------------^^^
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]