Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[python] Query stats are missing [backlog] #1932

Closed
johnkerl opened this issue Nov 22, 2023 · 1 comment
Closed

[python] Query stats are missing [backlog] #1932

johnkerl opened this issue Nov 22, 2023 · 1 comment
Assignees
Labels
bug Something isn't working cpp-api python-api

Comments

@johnkerl
Copy link
Member

johnkerl commented Nov 22, 2023

TileDB-SOMA-Py / TIleDB-Py repro script:

#!/usr/bin/env python

import tiledbsoma
import tiledb
import sys

uri = '/var/p'
if len(sys.argv) == 2:
    uri = sys.argv[1]

# ----------------------------------------------------------------
with tiledbsoma.Experiment.open(uri) as exp:
    tiledb.stats_enable()
    tiledb.stats_reset()
    print(exp.obs.read().concat())
    print("SOBS WAY 1")
    tiledb.stats_dump()
    print("SOBS WAY 2")
    ctx = exp.context.tiledb_ctx
    ctx.get_stats()

# ----------------------------------------------------------------
with tiledbsoma.Experiment.open(uri) as exp:
    with tiledb.open(exp.obs.uri) as A:
        tiledb.stats_enable()
        tiledb.stats_reset()
        print(A.df[:])
        print("TOBS WAY")
        tiledb.stats_dump()

I've run this with tiledbsoma 1.5.0, 1.4.4, and 1.2.0 -- same results.

Output (using 1.2.0 for example): https://gist.github.com/johnkerl/915b184fc5cf22e59ebd77012cbb355b

Key point: dowork appears with tiledb.open and query, but not via tiledbsoma.

cc @nguyenv @bkmartinjr @KiterLuc

Here is a TileDB-SOMA-R gist showing that when we do a query using TileDB-SOMA-R, we do get dowork which signals the presence of query stats: https://gist.github.com/johnkerl/862a4749231274e38ffca2f76014f616

@johnkerl johnkerl added bug Something isn't working python-api cpp-api labels Nov 22, 2023
@johnkerl johnkerl changed the title [python] Query stats are missing [python] Query stats are missing [backlog] Apr 8, 2024
@johnkerl
Copy link
Member Author

I tried the repro above and dowork stats are now present, and compatible, both ways

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working cpp-api python-api
Projects
None yet
Development

No branches or pull requests

2 participants