https://dagster.io/ logo
#ask-community
Title
# ask-community
j

James Paul

08/21/2023, 6:33 PM
Does anyone know how to use OpDefinition.with_replaced_properties to remove ins entirely?
j

jamie

08/21/2023, 6:37 PM
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

James Paul

08/21/2023, 6:41 PM
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

jamie

08/21/2023, 6:42 PM
ok- looking into it
j

James Paul

08/21/2023, 6:42 PM
thank you
j

jamie

08/21/2023, 6:52 PM
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

James Paul

08/21/2023, 6:55 PM
Excellent - thank you very much