Skip to content

Commit

Permalink
Improve the query
Browse files Browse the repository at this point in the history
  • Loading branch information
LuQQiu committed Nov 6, 2024
1 parent 17c83cc commit caf3773
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cloud/benchmark/query.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def query(self, table: RemoteTable, **kwargs) -> Any:

if self.filter:
filter_text = random.choice(self.words)
query = query.where(f"title LIKE '%{filter_text}%'")
query = query.where(f"text LIKE '%{filter_text}%'", prefilter=True)

return (
query.metric(self.metric)
Expand Down

0 comments on commit caf3773

Please sign in to comment.