Skip to content

Handle BIGINT exp ObjectId in SND attribute table - #973

Merged
labkey-martyp merged 1 commit into
release26.3-SNAPSHOTfrom
26.3_fb_snd_bigint_objectid
Aug 6, 2026
Merged

Handle BIGINT exp ObjectId in SND attribute table#973
labkey-martyp merged 1 commit into
release26.3-SNAPSHOTfrom
26.3_fb_snd_bigint_objectid

Conversation

@labkey-martyp

@labkey-martyp labkey-martyp commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

Rationale

The _SND Attribute Data ETL fails on every run that includes a delete at SNPRC with java.lang.ClassCastException: class java.lang.Long cannot be cast to class java.lang.Integer. exp 25.005 widened exp.Object.ObjectId and exp.ObjectProperty.ObjectId to BIGINT, but AttributeDataTable.UpdateService.deleteRows still cast the delete key to Integer. TransformTask builds each delete key from the target table's PK columns, which for this table are exp.ObjectProperty's ObjectId and PropertyId, so the first row aborts the step.

Related Pull Requests

None.

Changes

  • AttributeDataTable.UpdateService.deleteRows casts ObjectId and PropertyId to Number rather than Integer.
  • EventDataTable declares its injected exp.Object.ObjectId column as JdbcType.BIGINT instead of JdbcType.INTEGER, matching the widened column.

exp 25.005 widened exp.Object.ObjectId and exp.ObjectProperty.ObjectId to BIGINT, but AttributeDataTable.UpdateService.deleteRows still cast the delete key to Integer, so every _SND Attribute Data run failed with ClassCastException: class java.lang.Long cannot be cast to class java.lang.Integer. TransformTask builds each delete key from the target table's PK columns, which here are exp.ObjectProperty's ObjectId and PropertyId, so the first row aborted the step and left the deleted-rows backlog unapplied.

EventDataTable's injected exp.Object.ObjectId column was declared JdbcType.INTEGER, the wrong width for the same reason.
@labkey-martyp
labkey-martyp merged commit f1093c2 into release26.3-SNAPSHOT Aug 6, 2026
9 of 11 checks passed
@labkey-martyp
labkey-martyp deleted the 26.3_fb_snd_bigint_objectid branch August 6, 2026 23:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants