Push slice_id as meta into SQL_QUERY_MUTATOR #30055
Replies: 2 comments 1 reply
-
Hello there, @NeilPerry1! I'm here to help you with any questions or issues you have. Let's tackle this together! To implement def SQL_QUERY_MUTATOR( # pylint: disable=invalid-name,unused-argument
sql: str, slice_id: int = None, **kwargs: Any
) -> str:
if slice_id is not None:
sql = f"-- slice_id: {slice_id}\n{sql}"
return sql This modification ensures that the |
Beta Was this translation helpful? Give feedback.
-
Meant to get it as slice_id from request when query are going to be generated. I see "LOG" implementation to get current slice_id on user's request. Cant we do the same puting it into SQL_QUERY_MUTATOR? |
Beta Was this translation helpful? Give feedback.
-
Hello there.
Any ideas how we can impement slice_id as meta into SQL_QUERY_MUTATOR of config.py and for sure not break something significant? Like the main idea to get current query and slice_id to push it on db's client like "f --slice_id:{slice_id} \n{sql}"
Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions