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

[BUG] Spark execution engine can't take empty pandas dataframes #217

Closed
goodwanghan opened this issue Jun 2, 2021 · 0 comments · Fixed by #219
Closed

[BUG] Spark execution engine can't take empty pandas dataframes #217

goodwanghan opened this issue Jun 2, 2021 · 0 comments · Fixed by #219
Labels
Milestone

Comments

@goodwanghan
Copy link
Collaborator

Minimal Code To Reproduce

df = pd.DataFrame([],columns=["a","b"])

with FugueSQLWorkflow("spark") as dag:
    dag.df(df).show()

Describe the bug

ValueError: can not infer schema from empty dataset

Expected behavior
Although this is a problem of Spark, we should fix it through Fugue level, also we need to make sure all engines can take empty pandas dataframes

Environment (please complete the following information):

  • Backend: pandas/dask/ray?
  • Backend version:
  • Python version:
  • OS: linux/windows
@goodwanghan goodwanghan linked a pull request Jun 3, 2021 that will close this issue
@goodwanghan goodwanghan added this to the 0.5.7 milestone Jun 3, 2021
@goodwanghan goodwanghan modified the milestones: 0.5.7, 0.6.0 Jun 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant