Amazon Athena: no viable alternative at input

后端 未结 12 1579
-上瘾入骨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:56

    This error generally occurs when the syntax of DDL has some silly errors.There are several answers that explain different errors based on there state.The simple solution to this problem is to patiently look into DDL and verify following points line by line:-

    1. Check for missing commas
    2. Unbalanced `(backtick operator)
    3. Incompatible datatype not supported by HIVE(HIVE DATA TYPES REFERENCE)
    4. Unbalanced comma
    5. Hypen in table name

提交回复
热议问题