Skip to content

Allow creating an empty table without schema #75

@lars-reimann

Description

@lars-reimann

Describe the bug

Creating an empty table fails with a MissingSchemaError if no schema is provided. We should just allow this.

To Reproduce

Create an empty Table:

Table([])

Expected behavior

No error. Other operations on a Table should also be able to deal with an empty Table.

Screenshots (optional)

No response

Additional Context (optional)

The error is raised deliberately in Table:

if schema is None:
    if self.count_columns() == 0:
        raise MissingSchemaError()

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

✔️ Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions