Skip to content

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

Open
@jerbaroo

Description

@jerbaroo

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))

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions