ruto on Nostr: ...
DuckDBのJSON型は内部では文字列として保持されていて、関数や演算子を適用するごとにパースしているっぽい。
https://github.com/duckdb/duckdb/blob/9247deefc88d0334d2ee322037d4f59c25859efb/extension/json/json_functions/json_array_length.cpp#L9-L11
https://github.com/duckdb/duckdb/blob/9247deefc88d0334d2ee322037d4f59c25859efb/extension/json/include/json_executors.hpp#L18-L30
https://github.com/duckdb/duckdb/blob/9247deefc88d0334d2ee322037d4f59c25859efb/src/include/duckdb/common/vector_operations/unary_executor.hpp#L193-L196
https://github.com/duckdb/duckdb/blob/9247deefc88d0334d2ee322037d4f59c25859efb/extension/json/json_functions/json_array_length.cpp#L9-L11
https://github.com/duckdb/duckdb/blob/9247deefc88d0334d2ee322037d4f59c25859efb/extension/json/include/json_executors.hpp#L18-L30
https://github.com/duckdb/duckdb/blob/9247deefc88d0334d2ee322037d4f59c25859efb/src/include/duckdb/common/vector_operations/unary_executor.hpp#L193-L196