From 77be8f4f7ac0eb99e5bcfdb3590f28be5600a92a Mon Sep 17 00:00:00 2001 From: Brian Lee Date: Mon, 11 Mar 2024 14:55:19 -0400 Subject: [PATCH] fix quote nesting --- lilac/data/dataset_duckdb.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lilac/data/dataset_duckdb.py b/lilac/data/dataset_duckdb.py index 5040acd2..56cefd09 100644 --- a/lilac/data/dataset_duckdb.py +++ b/lilac/data/dataset_duckdb.py @@ -1839,7 +1839,7 @@ def stats(self, leaf_path: Path, include_deleted: bool = False) -> StatsResult: sample_where_clause = '' else: sample_where_clause = ( - f'WHERE val != 0 {'AND NOT isnan(val)' if is_float(leaf.dtype) else ''}' + f"WHERE val != 0 {'AND NOT isnan(val)' if is_float(leaf.dtype) else ''}" ) sample_query = f""" SELECT COALESCE(ARRAY_AGG(val), [])