https://dagster.io/ logo
#announcements
Title
# announcements
p

Patrick Merlot

06/30/2020, 10:20 PM
Hi How would you pass a list of string in the yaml file which configures the solids of a pipeline? I tried like this...
Copy code
solids:
  get_list_tables:
    inputs:
      table_list:
        value:
          - "table1"
          - "table2"
but Dagster doesn't like it.
c

Cris

07/01/2020, 3:25 AM
does removing the quotes around the words behave better?
p

Patrick Merlot

07/01/2020, 1:27 PM
Shit.. haven't thought of it 🙃 I need to rewrite the test to try it out but thanks for the tips @Cris
Nice try but I get the same error back
dagster.core.errors.DagsterInvalidConfigError: Error in config for pipeline config_pipeline
Error 1: Value at path root:solids:get_list_tables:inputs:table_list must be list. Expected: [{ json: { path: String } pickle: { path: String } value: Any }]
l

Leor

07/01/2020, 2:09 PM
Provide the strings in list format
value: ['table1', 'table2']
c

Cris

07/01/2020, 2:47 PM
Ah ok, i think you dont need the value keyword, just
Copy code
solids:
  get_list_tables:
    inputs:
      table_list:
        - table1
        - table2
as the input
table_list
is what should be a list
l

Leor

07/01/2020, 2:53 PM
mmm, i think that's still wrong and it should be jsonified?
c

Cris

07/01/2020, 2:58 PM
ah right, the inputs work differently.