Skip to content
ClickHouse Docs
ClickHouse DocsClickHouse Docs

function_json_* paramètres de session

Ces paramètres sont disponibles dans system.settings et sont générés automatiquement à partir du code source.

function_json_value_return_type_allow_complex

Type
Bool
Par défaut
0

Contrôle s'il est autorisé de renvoyer un type complexe (tel que : struct, array, map) pour la fonction json_value.

SELECT JSON_VALUE('{"hello":{"world":"!"}}', '$.hello') settings function_json_value_return_type_allow_complex=true

┌─JSON_VALUE('{"hello":{"world":"!"}}', '$.hello')─┐
│ {"world":"!"}                                    │
└──────────────────────────────────────────────────┘

1 row in set. Elapsed: 0.001 sec.

Valeurs possibles :

  • true — Autorisé.
  • false — Interdit.

function_json_value_return_type_allow_nullable

Type
Bool
Par défaut
0

Détermine s'il est autorisé de renvoyer NULL lorsque la valeur n'existe pas pour la fonction JSON_VALUE.

SELECT JSON_VALUE('{"hello":"world"}', '$.b') settings function_json_value_return_type_allow_nullable=true;

┌─JSON_VALUE('{"hello":"world"}', '$.b')─┐
│ ᴺᵁᴸᴸ                                   │
└────────────────────────────────────────┘

1 row in set. Elapsed: 0.001 sec.

Valeurs possibles :

  • true — Autorise.
  • false — Interdit.
Navigation