Is it possible to pass an `asset` as an argument t...
# ask-community
b
Is it possible to pass an
asset
as an argument to an
op
? Something like
Copy code
table_a = AsssetIn(["dbt","table_a"])

@op
def my_op(table_a: DataFrame):
    table_a.head(10)
❤️ 1
a
I've been using graph_asset, which allows for asset input, and you can use it to call ops, like a job does. Not sure if that would work for your user case though
s
🤯 1
b
How can you do this with a dbt asset?
s
How can you do this with a dbt asset?
Not 100% on this but I think it should still work as long as the op input/arg name matches the asset key of the dbt asset