1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Hiveで未予約語を使うとき

Posted at

ref: http://docs.treasuredata.com/articles/faq#hiversquos-reserved-keywords-why-do-i-get-a-warning-about-reserved-keywords

上記リンクでは、TreasureDataにおける予約語と未予約語の一覧がある。
未予約語はある特定の文脈で特別な意味を持ち、その他の文脈では識別子として利用することができる。

VIEWというワードはTreasureData(≒ Hive?)では、未予約語になっており、

SELECT * FROM table WHERE view="start"

とかだと

FAILED: ParseException line 1:25 cannot recognize input near 'view' '=' '"start"' in expression specification

こういうエラーが発生する。

なので、

"SELECT * FROM weak where \`view\`='start'"

でリクエストを送ることが出来た。

めでたしめでたし:ok_woman:

1
0
1

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
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?