Does anyone know how to use OpDefinition.with_repl...
# ask-community
j
Does anyone know how to use OpDefinition.with_replaced_properties to remove ins entirely?
j
what are you trying to do by removing
ins
? you might be able to pass an empty dictionary
{}
but i’m not 100% certain that will work
j
Using create_databricks_run_now_op with AssetsDefinition.from_op() to create assets in our dag. They are ingestion using databricks and are at the very top of our dag every asset created has a default object called 'start_after' that they are supposedly referencing in the dag. I want to remove the ins so the 'start after' asset goes away
dont want them to link to 'start_after'
j
ok- looking into it
j
thank you
j
i’m going to open a github issue for this as it’s not something you can do right now without accessing private attributes I think this should work, but it’s not good practice
Copy code
my_databricks_op = create_databricks_run_now_op(...)
my_databricks_op._input_defs = []
j
Excellent - thank you very much