How are you supposed to launch a workflow/task wit...
# ask-the-community
e
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
How are you launching your task/workflow? Also, you're seeing that error when running
flytectl get task
?
e
Trying to launch the task with
flytectl executions create
and yes. sorry typo above
s
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
@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
Yeah. I'm hoping that should unblock you for now. But we should definitely simplify the UX.
k
Structured dataset is infact not a file. I think flytectl has missing converter for this type?
e
what version of flytectl are you running, @Eli Bixby?
e
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"
}
149 Views