Skip to content

Support PostgreSQL CREATE TABLE LIKE#481

@mmcloughlin

Description

@mmcloughlin

The following create table statement

CREATETABLEchanges ( ranked INTNOT NULL ); CREATETABLEchanges_ranked ( LIKE changes INCLUDING ALL, rank_by_effect_size INTNOT NULL, rank_by_abs_percent_change INTNOT NULL ); -- name: AllRanked :manySELECT*FROM changes_ranked;

produces model

typeChangesRankedstruct{RankByEffectSizeint32RankByAbsPercentChangeint32 }

Columns from the changes table are ignored.

(Aside: I encountered this while trying to work around #159. The changes_ranked table is an attempt to materialize what would have been a subquery.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions