以下の例では、複数の結果がありエラーを返す、問題のあるJSONドット表記法参照を示します。代わりに返される値のリストが必要な場合は、SET SESSION DOT NOTATION ON ERROR文またはDBSコントロール フィールドDotNotationOnErrorConditionを使用してこの動作を指定する必要があります。
例
SELECT id, jsonCol.numbers FROM test.jsonTable WHERE id < 3 ORDER BY id;
結果:
*** Query completed. 2 rows found. 2 columns returned. *** Warning: 7548 More than one result per JSON instance found. *** Total elapsed time was 1 second. id jsonCol.numbers ------------------------ 1 *** ERROR MULTI RESULT *** 2 ? /* There are no numbers in this JSON */