You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@texera.apache.org by "Yicong-Huang (via GitHub)" <gi...@apache.org> on 2026/05/25 23:36:32 UTC
[I] insertNewExecution propagates NOT NULL violation when called with uid=None despite Option[Integer] signature [texera]
Yicong-Huang opened a new issue, #5212:
URL: https://github.com/apache/texera/issues/5212
### Bug Description
`org.apache.texera.web.service.ExecutionsMetadataPersistService.insertNewExecution` (`amber/src/main/scala/org/apache/texera/web/service/ExecutionsMetadataPersistService.scala:53`) accepts `uid: Option[Integer]` and writes `newExecution.setUid(uid.orNull)`, but `workflow_executions.uid` is declared `NOT NULL` in `sql/texera_ddl.sql`. Passing `None` therefore propagates a jOOQ `DataAccessException("null value in column \"uid\" ... violates not-null constraint")`.
Either the column should be nullable or the method should refuse `None` (or take a required `Integer`). The signature/schema mismatch is silent today because every production caller passes `Some(uid)`.
### Reproduction
`amber/src/test/scala/org/apache/texera/web/service/ExecutionsMetadataPersistServiceSpec.scala` (introduced in the linked PR) pins this with `intercept[org.jooq.exception.DataAccessException]`.
Version: 1.1.0-incubating.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@texera.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] insertNewExecution propagates NOT NULL violation when called with uid=None despite Option[Integer] signature [texera]
Posted by "Ma77Ball (via GitHub)" <gi...@apache.org>.
Ma77Ball commented on issue #5212:
URL: https://github.com/apache/texera/issues/5212#issuecomment-4563207898
/take
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@texera.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] insertNewExecution propagates NOT NULL violation when called with uid=None despite Option[Integer] signature [texera]
Posted by "Yicong-Huang (via GitHub)" <gi...@apache.org>.
Yicong-Huang closed issue #5212: insertNewExecution propagates NOT NULL violation when called with uid=None despite Option[Integer] signature
URL: https://github.com/apache/texera/issues/5212
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@texera.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org