Esta configuración está disponible en system.settings y se genera automáticamente a partir del código fuente.
function_json_value_return_type_allow_complex
Tipo
Bool
Predeterminado
0
Controla si se permite que la función json_value devuelva tipos complejos (como struct, array o map).
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.Posibles valores:
- true — Se permite.
- false — No se permite.
function_json_value_return_type_allow_nullable
Tipo
Bool
Predeterminado
0
Controla si se permite devolver NULL cuando no existe ningún valor para la función 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.Posibles valores:
- true — Se permite.
- false — No se permite.