crate/crate

Add ability to add `INTERVAL` to DATE

Fermée

#15 634 ouverte le 28 févr. 2024

 (7 commentaires) (1 réaction) (0 personne assignée)Java (545 forks)batch import
contributions welcomeenhancementgood first issuetool: Tableau

Métriques du dépôt

Stars
 (3 863 étoiles)
Métriques de merge PR
 (Merge moyen 1j 11h) (159 PRs mergées en 30 j)

Description

Problem Statement

We can do

SELECT CURRENT_DATE + 1

but not

SELECT CURRENT_DATE + INTERVAL '1 day';
UnsupportedFunctionException[Unknown function: (curdate() + cast('1 day' AS interval)), no overload found for matching argument types: (date, interval)

This is a feature that exists in postgres that Tableau uses. https://www.postgresql.org/docs/current/functions-datetime.html

Possible Solutions

No response

Considered Alternatives

No response

Guide contributeur