Amazon Athena: no viable alternative at input

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

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

no viable alternative at input

12条回答
  •  星月不相逢
    2020-12-14 05:58

    Unfortunately, at the moment the syntax validation error messages are not very descriptive in Athena, this error may mean "almost" any possible syntax errors on the create table statement.

    Although this is annoying at the moment you will need to check if the syntax follows the Create table documentation

    Some examples are:

    • Backticks not in place (as already pointed out)
    • Missing/extra commas (remember that the last column doesn't need the comma after column definition
    • Missing spaces
    • More ..

提交回复
热议问题