Count the number of rows in the v2 sourced table
()
| 347 | |
| 348 | |
| 349 | async def count_v2_sourced_rows() -> int: |
| 350 | """Count the number of rows in the v2 sourced table""" |
| 351 | clickhouse_client = await get_async_clickhouse() |
| 352 | query = """ |
| 353 | SELECT COUNT(1) FROM otel_2.otel_traces |
| 354 | WHERE mapContains(SpanAttributes, 'session.id') |
| 355 | """ |
| 356 | result = await clickhouse_client.query(query) |
| 357 | return result.result_rows[0][0] |
| 358 | |
| 359 | |
| 360 | class _ClickhouseDriverContextShim: |
nothing calls this directly
no test coverage detected
searching dependent graphs…