]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.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 00:46:49 +0000 (19:46 -0500)
commit9ca18bd4eabff4912fa57e34abfb36e4ff60541e
tree2d5d6c9183e6c9e82ceec516fd0efca850fd7c83
parenta0e6e11bdec678700f2698dd72992530d52ff882
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