Skip to content

INTERVAL MINUTE TO SECOND uses wrong IntervalCode #1771

Open
@alancai98

Description

@alancai98

Description

  • Specifying an INTERVAL Datum with a MINUTE TO SECOND interval qualifier uses the HOUR TO SECOND interval qualifier.

To Reproduce

partiql ▶ INTERVAL '3:4.567' MINUTE TO SECOND (3)
   |

=== RESULT ===
INTERVAL '0:3:4.567' HOUR (2) TO SECOND (3)

OK!

Expected Behavior

Expect above result to be a MINUTE TO SECOND interval.

Additional Context

  • Java version: 17
  • PartiQL version: 1.2.3-SNAPSHOT
  • Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions