Hey dagster team! If i wanted to override an op in...
# ask-community
c
Hey dagster team! If i wanted to override an op in gcp like, import_df_to_bq, is there a way i can, override this to always provide a destination to reduce the configuration? e.g., i want an op that turns into import_df_to_<my_table_name>_in_bq
then in configuration, remove the need to specify the destination in the BIGQUERY_LOAD_CONFIG?
j
The op factory pattern might be what you're looking for https://docs.dagster.io/concepts/ops-jobs-graphs/ops#op-factory
c
thanks jamie! can you provide me an example of how i would use this? would i add the destination into "ins"?
Ah nevermind, ins is for dependencies. i see the **kwargs argument, so i would then reduce the destinations kwarg 🙂 . OK thanks! I'll give it a test
@Phil Armour what do you think of this pattern instead of using @configured? just food for thought we can test out later.
p
it’s pretty much the same as what I proposed with my “partial” mapping generator