Skip to content

Improve Tables.istable by adding Tables.astable #348

@bkamins

Description

@bkamins

@quinnj The issue that Tables.istable can return false and the object is still a table resurfaces often. See e.g. JuliaEarth/geospatial-data-science-with-julia#3 from today.

What I propose:

  1. allow packages to assume that only something for which Tables.istable returns true is a table; (stricter rule)
  2. still other packages can take anything to be a table; (loose rule)

For packages that want to follow the stricter rule it would be nice to add a method to e.g. Tables.table:

Tables.astable(t) = GenericTable(t)

where GenericTable would be a thin wrapper for which Tables.istable would return true, and all other methods would just unwrap t from GenericTable and call it.

In this way packages following stricter rule could easily distinguish between general objects that are not tables and something that user explicitly asked to be a table.

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