From fc8c6b9a063ffb9a11a644c209aa26a2b5ab8e93 Mon Sep 17 00:00:00 2001 From: Forrest Collman Date: Tue, 19 Sep 2023 12:53:38 -0400 Subject: [PATCH] fixing random sample --- materializationengine/blueprints/client/query_manager.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/materializationengine/blueprints/client/query_manager.py b/materializationengine/blueprints/client/query_manager.py index 0b978c90..8c4aa51d 100644 --- a/materializationengine/blueprints/client/query_manager.py +++ b/materializationengine/blueprints/client/query_manager.py @@ -370,7 +370,9 @@ def configure_query(self, user_data): "column_name":"regex" } }""" - self.add_table(user_data["table"]) + self.add_table( + user_data["table"], random_sample=True if self._random_sample else False + ) if user_data.get("join_tables", None): for join in user_data["join_tables"]: self.join_tables(join[0], join[1], join[2], join[3])