]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
test: use json_extract instead of awkward json_tree
authorPatrick Donnelly <pdonnell@ibm.com>
Sun, 8 Feb 2026 00:45:26 +0000 (19:45 -0500)
committerPatrick Donnelly <pdonnell@ibm.com>
Sun, 8 Feb 2026 19:31:01 +0000 (14:31 -0500)
commitf304daa74ace4e6b856b585d71b8ff9c6e8a024a
tree1e5e80a0bbe4b28adc71ea11e4c7d3f0e5625180
parent49902275c6fefaaab108808f58f1bbb714346986
test: use json_extract instead of awkward json_tree

Ideally this should be port better across sqlite3 versions. The sqlite3
on rocky10 failed because it started requiring components of the keys
to be quoted:

    sqlite> select * from p as a, p as b where a.i=1 and b.i = 2 and a.fullkey = '$."libcephsqlite_vfs"."opf_sync".avgcount' and b.fullkey = '$."libcephsqlite_vfs"."opf_sync".avgcount';
    i  key       value  type     atom  id   parent  fullkey                                    path                              i  key       value  type     atom  id   parent  fullkey
    -  --------  -----  -------  ----  ---  ------  -----------------------------------------  --------------------------------  -  --------  -----  -------  ----  ---  ------  ------------------
    1  avgcount  4      integer  4     581  570     $."libcephsqlite_vfs"."opf_sync".avgcount  $."libcephsqlite_vfs"."opf_sync"  2  avgcount  5      integer  5     581  570     $."libcephsqlite_v

Fixes: https://tracker.ceph.com/issues/74755
Signed-off-by: Patrick Donnelly <pdonnell@ibm.com>
src/test/libcephsqlite/main.cc