Amazon Athena: no viable alternative at input

后端 未结 12 1598
-上瘾入骨i
-上瘾入骨i 2020-12-14 05:15

While creating a table in Athena; it gives me following exception:

no viable alternative at input

12条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-14 06:13

    This happened to me due to having comments in the query.

    I realized this was a possibility when I tried the "Format Query" button and it turned the entire thing into almost 1 line, mostly commented out. My guess is that the query parser runs this formatter before sending the query to Athena.

    Removed the comments, ran the query, and an angel got its wings!

提交回复
热议问题