Skip to content

from_dataset breaks mental model / parallelism of xarray #148

@ahuang11

Description

@ahuang11

I was expecting to do this:

ctx.from_dataset("rasm", ds, chunks={"time": 10}).sql("""
SELECT
    MAX(rasm."Tair")
FROM
    rasm
""")

However, from_dataset returns None, so I had to do it like this:

ctx.from_dataset("rasm", ds, chunks={"time": 10})
ctx.sql("""
SELECT
    MAX(rasm."Tair")
FROM
    rasm
""")

Was wondering, whether this is part of the design?

Early on, XArray steered away from inplace: pydata/xarray#1756

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions