Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] Make create data error more informative #348

Closed
goodwanghan opened this issue Aug 16, 2022 · 0 comments · Fixed by #350
Closed

[FEATURE] Make create data error more informative #348

goodwanghan opened this issue Aug 16, 2022 · 0 comments · Fixed by #350
Labels
better error enhancement New feature or request
Milestone

Comments

@goodwanghan
Copy link
Collaborator

For this code

from fugue import transform
import pandas as pd

def f(df:pd.DataFrame) -> pd.DataFrame:
    return df

transform([[0]], f, schema="*")

It will generate an error, saying:

FugueWorkflowCompileError: schema is required

This confused people, it seems to be a problem of the function f and schema settings. It is actually because [[0]] is not an acceptable input data format.

So we should change it to:

FugueWorkflowCompileError: schema is required for input data type <class 'list'>
@goodwanghan goodwanghan added better error enhancement New feature or request labels Aug 16, 2022
@goodwanghan goodwanghan added this to the 0.7.2 milestone Aug 16, 2022
@goodwanghan goodwanghan linked a pull request Aug 18, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
better error enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant