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

run-time error: operator does not exist: timestamp without time zone < text #704

Open
jerbaroo opened this issue Mar 29, 2024 · 2 comments
Labels

Comments

@jerbaroo
Copy link

Third run-time error using beam in the last week 👀 Based on the following SQL error messages it seems that the RHS of the <. is being generated into SQL of type Text 😕

  Db.runDelete $ Beam.delete S.userAccountServiceDb.authTokenTable
      let extendedLogin = Beam.subquery_
            $ fmap SUA.extendedLogin
            $ Beam.filter_ (\row' -> SUA.userID row' ==. userID)
            $ Beam.all_ (S.userAccountsTable S.userAccountServiceDb)
      in  timeCreated <. Beam.ifThenElse_ extendedLogin
            (Beam.val_ (currentTime - via @Int64 authTokenExpiry))
            (Beam.val_ (currentTime - via @Int64 authTokenExpiryExtended))
@kmicklas kmicklas added the bug label Jun 8, 2024
@LaurentRDC
Copy link
Member

Would it be possible to create a reproducible example?

@tathougies
Copy link
Collaborator

My guess would be that timeCreated is mistakenly a QExpr of type Text. ifThenElse_ and val_ are both 'dumb' an depend on the type checker to say what type it ought to be. There must be a mismatch of the beam and database schema.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants