You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
insertNewExecution propagates NOT NULL violation when called with uid=None despite Option[Integer] signature #5212
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].
Activity
test(amber): DB-backed unit tests for ExecutionsMetadataPersistServic…
Ma77Ball commentedon May 28, 2026
/take
fix: require non-null uid in insertNewExecution (apache#5300)
test(amber): DB-backed unit tests for ExecutionsMetadataPersistServic…
fix: require non-null uid in insertNewExecution (apache#5300)