https://dagster.io/ logo
#dagster-feedback
Title
# dagster-feedback
g

George Pearse

07/14/2021, 3:01 PM
Is this not duplicated information between the definition of the validation and then its usage? As in is there any situation where the string name definition and the variable name definition will not align in a 1:1 manner?
s

sandy

07/14/2021, 4:29 PM
Hi George. I'd probably do something like the following. You don't need to repeat the dagster type name as the name of the OutputDefinition
Copy code
@solid(output_defs=[OutputDefinition(create_dagster_pandas_dataframe_type("RecordsDataFrame", ...))])
def dataframe_validation_test(...):
    ...
g

George Pearse

07/15/2021, 8:16 AM
Cheers sandy, helpful advice
2 Views