I have an embarrassingly newbie question, but I ju...
# announcements
k
I have an embarrassingly newbie question, but I just cannot figure out where in the docs to find the answer. 😕 What's the method for renaming a solid in a pipeline? I thought it was
alias
as in
df_test().alias("another_name")
, but that doesn't seem to be correct.
df_test
is a solid here.
Copy code
@pipeline(
    mode_defs = [
        ModeDefinition("default", resource_defs={'glue': glue_resource})
    ]
)
def scratch_pipeline():
    result1 = df_test()
    result2 = df_test(result1)
a
you have to call
alias
on the solid itself, not the invoked output
df_test_renamed = df_test.alias('renamed')
df_test_renamed()
or one lined as
df_test.alias('new_name')()
k
Ah, I remembered it wrong. Thanks!
a
no worries - easy mistake to make. I’ll file an issue to try to throw a better error message
k
BTW, do you know where I can find this in docs.dagster.io?