LoginSignup
0
0

More than 3 years have passed since last update.

Athenaでクエリを発行しようとすると「no viable alternative at input」となる

Posted at

事象

Amazon Athenaのクエリエディタでクエリ(SHOW PARTITION <table_name>)を実行すると以下のようなエラーとなる。

  • line 1:6: no viable alternative at input 'show partition' (service: amazonathena; status code: 400; error code: invalidrequestexception; request id: b8ec4813-f216-4767-88e4-da44da2b223e)

image.png

解決

文法の正しくないクエリを実行しようとしていたからだった。

  • 誤:SHOW PARTITION <table_name>
  • 正:SHOW PARTITIONS <table_name>

正しいクエリであればエラーなく実行できた。
image.png

以上

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0