

@pytest.mark.parametrize('colno,rowid', [(colno, rowid) for colno in range(1, 4) for rowid in range(6)])
def test_t1_column_value_probability(colno, rowid):
    with analyzed_bayesdb_generator(t1(), 1, 1) as (bdb, generator_id):
        if (rowid == 0):
            rowid = bayesdb_maxrowid(bdb, generator_id)
        value = bayesdb_generator_cell_value(value, generator_id, colno, rowid)
        bqlfn.bql_column_value_probability(bdb, generator_id, None, colno, value)
        table_name = core.bayesdb_generator_table(bdb, generator_id)
        colname = core.bayesdb_generator_column_name(bdb, generator_id, colno)
        qt = bql_quote_name(table_name)
        qc = bql_quote_name(colname)
        sql = ('\n            select bql_column_value_probability(?, NULL, ?,\n                (select %s from %s where rowid = ?))\n        ' % (qc, qt))
        bdb.sql_execute(sql, (generator_id, colno, rowid)).fetchall()

dataset/ETHPy150Open probcomp/bayeslite/tests/test_core.py test_t1_column_value_probability/VarMisuse@89/129 `bdb`->`value`