]> 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>
Wed, 18 Mar 2026 00:34:36 +0000 (20:34 -0400)
commitbe173dbe0f1e9e7d77e0b8bc893a40f4d1203d72
tree5d666ca66d4d50fb7aa7b015920148fa2e3644ed
parent8ecfb142b008423c7225dc66dd0ed94ef9e224c5
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>
(cherry picked from commit f304daa74ace4e6b856b585d71b8ff9c6e8a024a)
src/test/libcephsqlite/main.cc