Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

INTERBVAL Cast to TIMESTAMP WITH TIMEZONE missing #181

Closed
1 of 2 tasks
prmah opened this issue Nov 26, 2024 · 1 comment
Closed
1 of 2 tasks

INTERBVAL Cast to TIMESTAMP WITH TIMEZONE missing #181

prmah opened this issue Nov 26, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@prmah
Copy link

prmah commented Nov 26, 2024

What happens?

between quries like "arrival-time between now() - interval '30 days' and now() - interval '7 days'" are failing with below error

Binder Error: No function matches the given name and argument types '-(TIMESTAMP WITH TIME ZONE, INTERVAL)'. You might need to add explicit type casts.
Candidate functions:
-(TINYINT) -> TINYINT
-(TINYINT, TINYINT) -> TINYINT
-(SMALLINT) -> SMALLINT
-(SMALLINT, SMALLINT) -> SMALLINT
-(INTEGER) -> INTEGER
-(INTEGER, INTEGER) -> INTEGER
-(BIGINT) -> BIGINT
-(BIGINT, BIGINT) -> BIGINT
-(HUGEINT) -> HUGEINT
-(HUGEINT, HUGEINT) -> HUGEINT
-(FLOAT) -> FLOAT
-(FLOAT, FLOAT) -> FLOAT
-(DOUBLE) -> DOUBLE
-(DOUBLE, DOUBLE) -> DOUBLE
-(DECIMAL) -> DECIMAL
-(DECIMAL, DECIMAL) -> DECIMAL
-(UTINYINT) -> UTINYINT
-(UTINYINT, UTINYINT) -> UTINYINT
-(USMALLINT) -> USMALLINT
-(USMALLINT, USMALLINT) -> USMALLINT
-(UINTEGER) -> UINTEGER
-(UINTEGER, UINTEGER) -> UINTEGER
-(UBIGINT) -> UBIGINT
-(UBIGINT, UBIGINT) -> UBIGINT
-(UHUGEINT) -> UHUGEINT
-(UHUGEINT, UHUGEINT) -> UHUGEINT
-(DATE, DATE) -> BIGINT
-(DATE, INTEGER) -> DATE
-(TIMESTAMP, TIMESTAMP) -> INTERVAL
-(INTERVAL, INTERVAL) -> INTERVAL
-(DATE, INTERVAL) -> TIMESTAMP
-(TIME, INTERVAL) -> TIME
-(TIMESTAMP, INTERVAL) -> TIMESTAMP
-(TIME WITH TIME ZONE, INTERVAL) -> TIME WITH TIME ZONE
-(INTERVAL) -> INTERVAL

To Reproduce

try a between quries like "arrival-time between now() - interval '30 days' and now() - interval '7 days'"

OS:

x64

ParadeDB Version:

0.13.0-pg13

Are you using ParadeDB Docker, Helm, or the extension(s) standalone?

ParadeDB Docker Image

Full Name:

Preshit Maheshwari

Affiliation:

Did you include all relevant data sets for reproducing the issue?

Yes

Did you include the code required to reproduce the issue?

  • Yes, I have

Did you include all relevant configurations (e.g., CPU architecture, PostgreSQL version, Linux distribution) to reproduce the issue?

  • Yes, I have
@prmah prmah added the bug Something isn't working label Nov 26, 2024
@philippemnoel
Copy link
Collaborator

This is a duplicate of #48, closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants