Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
gtarpenning committed Dec 13, 2024
1 parent 40114d0 commit 850fcbe
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions weave/trace_server/objects_query_builder.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from collections.abc import Iterator
from typing import Any, Optional
from typing import Any, Literal, Optional, cast

from weave.trace_server import trace_server_interface as tsi
from weave.trace_server.clickhouse_schema import SelectableCHObjSchema
Expand Down Expand Up @@ -267,12 +267,12 @@ def make_metadata_query(self) -> str:
def make_objects_val_query_and_parameters(
project_id: str, object_ids: list[str], digests: list[str]
) -> tuple[str, dict[str, Any]]:
query = f"""
query = """
SELECT object_id, digest, any(val_dump)
FROM object_versions
WHERE project_id = {{{'project_id': String}}} AND
object_id IN {{{'object_ids': Array(String)}}} AND
digest IN {{{'digests': Array(String)}}}
WHERE project_id = {project_id: String} AND
object_id IN {object_ids: Array(String)} AND
digest IN {digests: Array(String)}
GROUP BY object_id, digest
"""
parameters = {
Expand Down

0 comments on commit 850fcbe

Please sign in to comment.