Skip to content

PG->Fabric (T-SQL): age() emitted verbatim #313

Description

@NivasSA

Title: PG->Fabric (T-SQL): age() emitted verbatim -> Msg 195 (and returns interval, no Fabric type)

age() has no Fabric built-in, yet strict() emits it verbatim. polyglot-sql 0.5.15, strict:

age(d1, timestamp '2000-01-01') -> AGE(d1, CAST('2000-01-01' AS DATETIME2(6)))

Fabric raises "Msg 195: 'AGE' is not a recognized built-in function name". age() also
returns interval (no Fabric type; cf. #301), so it must be rejected regardless.
Expected: Err(Unsupported), as polyglot already does for lpad/rpad. Sibling of #286 / #292.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions