Skip to content

Schema syntactic sugar for defining the repeated constraints #252

Open
@ChandraReddy97

Description

@ChandraReddy97

Problem to Solve

While writing the schema, instead of writing like this :

CUSTOMER_RAW sub Auditoria,
    owns RDS_ID,
    owns TENANT_ID,
    owns SOURCE_ID,
    owns EXT_ID,
    owns TAX_ID;

we could collapse this into:

CUSTOMER_RAW sub Auditoria,
    owns RDS_ID, TENANT_ID,  SOURCE_ID, EXT_ID, TAX_ID;

Simiarly for attribute type declaration. Current declaration:

RDS_ID sub attribute, value long;
AGE sub attribute, value long;
CREATED_BY sub attribute, value string;
UPDATED_AT sub attribute, value string;
INGESTED_AT sub attribute, value string;

Instead we can do some thing like this:

RDS_ID, AGE sub attribute, value long;
CREATED_BY, UPDATED_AT, INGESTED_AT sub attribute, value string;

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions