ColumnTypeInfo¶
-
class
lsst.daf.butler.
ColumnTypeInfo
(timespan_cls: type, universe: lsst.daf.butler.core.dimensions._universe.DimensionUniverse, dataset_id_spec: lsst.daf.butler.core.ddl.FieldSpec, run_key_spec: lsst.daf.butler.core.ddl.FieldSpec)¶ Bases:
object
A struct that aggregates information about column types that can differ across data repositories due to
Registry
and dimension configuration.Methods Summary
make_relation_table_spec
(columns, unique_keys)Create a specification for a table with the given relation columns. Methods Documentation
-
make_relation_table_spec
(columns: collections.abc.Iterable[lsst.daf.relation._columns._tag.ColumnTag], unique_keys: collections.abc.Iterable[collections.abc.Iterable[lsst.daf.relation._columns._tag.ColumnTag]] = ()) → lsst.daf.butler.core.ddl.TableSpec¶ Create a specification for a table with the given relation columns.
This is used primarily to create temporary tables for query results.
Parameters: - columns :
Iterable
[ColumnTag
] Iterable of column identifiers.
- unique_keys :
Iterable
[Iterable
[ColumnTag
] ] Unique constraints to add the table, as a nested iterable of (first) constraint and (second) the columns within that constraint.
Returns: - spec :
ddl.TableSpec
Specification for a table.
- columns :
-