https://flyte.org logo
#ask-the-community
Title
# ask-the-community
e

Eli Bixby

02/27/2023, 9:14 AM
How are you supposed to launch a workflow/task with a
StructuredDataset
or dataframe input? I get the following error when running `flytectl get task ...`:
Copy code
Error: failed to convert to a known Literal. Input Type [structured_dataset_type:<columns:<name:"prediction" literal_type:<simple:FLOAT > > columns:<name:"target" literal_type:<simple:FLOAT > > > ] not supported
Is the only option here to wrap it in a workflow?
s

Samhita Alla

02/27/2023, 9:51 AM
How are you launching your task/workflow? Also, you're seeing that error when running
flytectl get task
?
e

Eli Bixby

02/27/2023, 10:38 AM
Trying to launch the task with
flytectl executions create
and yes. sorry typo above
s

Samhita Alla

02/27/2023, 12:01 PM
I think you can provide a URI that contains the dataframe. @Kevin Su, does this work? And is there a better way to send structured dataset input?
e

Eli Bixby

02/27/2023, 12:35 PM
@Samhita Alla I can do this with a
FlyteFile
but not
StructuredDataset
which is strange.
(given that a
StructuredDataset
is backed by a
FlyteFile
this force me to make a dummy node which wraps a file as a StructuredDataset and wrap the task in a workflow.)
s

Samhita Alla

02/27/2023, 1:05 PM
Yeah. I'm hoping that should unblock you for now. But we should definitely simplify the UX.
k

Ketan (kumare3)

02/27/2023, 3:47 PM
Structured dataset is infact not a file. I think flytectl has missing converter for this type?
e

Eduardo Apolinario (eapolinario)

02/28/2023, 12:57 AM
what version of flytectl are you running, @Eli Bixby?
e

Eli Bixby

02/28/2023, 1:21 PM
Copy code
{
  "App": "flytectl",
  "Build": "5aefa07",
  "Version": "0.6.30",
  "BuildTime": "2023-02-28 14:20:51.381452824 +0100 CET m=+0.026807396"
}
{
  "App": "controlPlane",
  "Build": "1ccd59c",
  "Version": "v1.1.70",
  "BuildTime": "2023-02-21 14:20:38.834313886 +0000 UTC m=+0.113812103"
}