Skip to content

Commit 9b85ddb

Browse files
Remove FINAL from list inference query (tensorzero#5186)
1 parent de16f64 commit 9b85ddb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tensorzero-core/src/db/clickhouse/inference_queries.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ fn generate_list_inference_metadata_sql(
169169
episode_id,
170170
function_type,
171171
if(isNull(snapshot_hash), NULL, lower(hex(snapshot_hash))) as snapshot_hash
172-
FROM InferenceById FINAL
172+
FROM InferenceById
173173
{where_clause}
174174
ORDER BY id_uint {order_direction}
175175
LIMIT {{limit:UInt64}}
@@ -1516,7 +1516,7 @@ mod tests {
15161516
mock.expect_run_query_synchronous()
15171517
.withf(|query, _params| {
15181518
assert_query_contains(query, "uint_to_uuid(id_uint) as id");
1519-
assert_query_contains(query, "FROM InferenceById FINAL");
1519+
assert_query_contains(query, "FROM InferenceById");
15201520
assert_query_contains(query, "ORDER BY id_uint DESC");
15211521
assert_query_does_not_contain(query, "WHERE");
15221522
true

0 commit comments

Comments
 (0)