Skip to content

rust/sedona: Projecting a data frame derived from a record batch reder results in a projection error #186

@paleolimbot

Description

@paleolimbot

Reprex:

import pyarrow as pa
import sedona.db

sd = sedona.db.connect()

def batches():
    for i in range(10):
        yield pa.record_batch({"a":["a", "b", "c"], "b": [1, 2, 3]})

reader = pa.RecordBatchReader.from_batches(next(batches()).schema, batches())
sd.create_data_frame(reader).to_view("foofy", overwrite=True)
sd.sql("SELECT b as banana FROM foofy").show()
#> SedonaError: Input field name a does not match with the projection expression b.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions