-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Basic Normalization: Overrule default parameter values (query_tag a.o.) #9953
Comments
In that case, for implementation, I would suggest the Then in normalization you can check if the query-tag field is populated and use it or fallback to airbyte/airbyte-integrations/bases/base-normalization/normalization/transform_config/transform.py Line 207 in a518247
|
An possibility is to extract the query_tag value from the jdbc-params. If it's not in the jdbc-params, one can fall back to the default normalization. Something like this (in transform.py):
....
import urllib.parse
....
def transform_snowflake(config: Dict[str, Any]):
....
query_tag=TransformConfig.get_jdbc_param_value("query_tag".upper(),config["jdbc_url_params"].upper(),"normalization")
....
"query_tag": query_tag,
....
def get_jdbc_param_value(parameter,jdbc_url_params,default_value):
parameter_length=len(parameter) + 1 # +1 because of the = sign
parameters=jdbc_url_params.split(',')
parameter_value=default_value
for i in parameters:
if i.startswith(parameter):
parameter_value=urllib.parse.unquote(i[parameter_length:])
return parameter_value |
Sure it seems fine, you're welcome to push a PR there! |
Hi @marcosmarxm , Can you please assign this task? Thanks! |
Basic normalization is deprecatd and was removed for Snowflake. |
Tell us about the problem you're trying to solve
When using 'basic normalization' for a Snowflake destination, the value of query_tag is set to 'normalization'. I would like to have an option to overrule this value.
Related issues, in which query_tag and other dbc parameters can be set: #9623 which also solves this issue: #9467, but it only does this for the 'raw' method.
Describe the solution you’d like
I would like to have the solution for #9623 to be extended. So when a query_tag is entered in the UI it would overrule the default query_tag which is used for normalization. And also other additional parameters that are set should overrule the default.
Describe the alternative you’ve considered or used
Use the 'raw' method and do the normalization outside of Airbyte.
┆Issue is synchronized with this Asana task by Unito
The text was updated successfully, but these errors were encountered: