diff --git a/prover/prover_dal/.sqlx/query-9cc6cb602bb0752b51238cfbd568355ae88264eacd2a0c09b116159e76823401.json b/prover/prover_dal/.sqlx/query-001cff1d4caf69caa33dfeb1713f9a125f4fdc7e678e191be140bb3177b5a65f.json similarity index 76% rename from prover/prover_dal/.sqlx/query-9cc6cb602bb0752b51238cfbd568355ae88264eacd2a0c09b116159e76823401.json rename to prover/prover_dal/.sqlx/query-001cff1d4caf69caa33dfeb1713f9a125f4fdc7e678e191be140bb3177b5a65f.json index 229d79f74c17..fd2b8872cf1a 100644 --- a/prover/prover_dal/.sqlx/query-9cc6cb602bb0752b51238cfbd568355ae88264eacd2a0c09b116159e76823401.json +++ b/prover/prover_dal/.sqlx/query-001cff1d4caf69caa33dfeb1713f9a125f4fdc7e678e191be140bb3177b5a65f.json @@ -1,6 +1,6 @@ { "db_name": "PostgreSQL", - "query": "\n SELECT\n protocol_version,\n COUNT(*) FILTER (\n WHERE\n status = 'queued'\n ) AS queued,\n COUNT(*) FILTER (\n WHERE\n status = 'in_progress'\n ) AS in_progress\n FROM\n proof_compression_jobs_fri\n GROUP BY\n status,\n protocol_version\n ", + "query": "\n SELECT\n protocol_version,\n COUNT(*) FILTER (\n WHERE\n status = 'queued'\n ) AS queued,\n COUNT(*) FILTER (\n WHERE\n status = 'in_progress'\n ) AS in_progress\n FROM\n proof_compression_jobs_fri\n WHERE\n protocol_version IS NOT NULL\n GROUP BY\n status,\n protocol_version\n ", "describe": { "columns": [ { @@ -28,5 +28,5 @@ null ] }, - "hash": "9cc6cb602bb0752b51238cfbd568355ae88264eacd2a0c09b116159e76823401" + "hash": "001cff1d4caf69caa33dfeb1713f9a125f4fdc7e678e191be140bb3177b5a65f" } diff --git a/prover/prover_dal/src/fri_proof_compressor_dal.rs b/prover/prover_dal/src/fri_proof_compressor_dal.rs index 793a15a19dc9..138a6b59b266 100644 --- a/prover/prover_dal/src/fri_proof_compressor_dal.rs +++ b/prover/prover_dal/src/fri_proof_compressor_dal.rs @@ -266,6 +266,8 @@ impl FriProofCompressorDal<'_, '_> { ) AS in_progress FROM proof_compression_jobs_fri + WHERE + protocol_version IS NOT NULL GROUP BY status, protocol_version