Apache-tajo-json-extract-path-text

提供:Dev Guides
2020年6月22日 (月) 20:04時点におけるMaintenance script (トーク | 投稿記録)による版 (Imported from text file)
(差分) ← 古い版 | 最新版 (差分) | 新しい版 → (差分)
移動先:案内検索

json_extract_path_text()

次のクエリで* json_extract_path_text(json text、json_path text)*関数を確認しましょう。

問い合わせ

default> select json_extract_path_text('{"tutorial" :
   {"key" : "tajo"}}','$.tutorial.key') as path;

結果

上記のクエリは、次の結果を生成します。

path
-------------------------------
tajo

クエリは、JSONパスに基づいてJSON文字列からJSON文字列「チュートリアル」を抽出します。