Skip to content

Fix LAVA CREATE TABLE crashes from duplicate/reserved column names (cashApp, tikTok)#1612

Merged
abrignoni merged 1 commit into
mainfrom
fix-lava-duplicate-reserved-columns
Jun 25, 2026
Merged

Fix LAVA CREATE TABLE crashes from duplicate/reserved column names (cashApp, tikTok)#1612
abrignoni merged 1 commit into
mainfrom
fix-lava-duplicate-reserved-columns

Conversation

@abrignoni

Copy link
Copy Markdown
Owner

Problem

Both artifacts crashed in lava_create_sqlite_table as soon as they had a record:

sqlite3.OperationalError: duplicate column name: transaction_state   # cashApp
sqlite3.OperationalError: near "table": syntax error                # tikTok

Fixes

  • cashApp: two columns were both labeled Transaction State. The second actually holds the payment NOTE (row[4]) — renamed to Note. Fixes the duplicate-column crash and corrects the mislabeled column.
  • tikTok (tiktok_contacts): a column named Table sanitizes to the SQL reserved word table (the framework doesn't quote identifiers). Renamed to Source Table (it holds the source table name).

Both are pre-existing bugs surfaced during testing (not from the recent conversions).

Validation

  • pylint 10.00/10 on both.
  • A codebase-wide CREATE TABLE audit (duplicate + reserved-word sanitized column names across every artifact's data_headers) confirms no other artifacts are affected.

Both crashed lava_create_sqlite_table once they had a record:
- cashApp: two columns were both labeled 'Transaction State' (duplicate column name).
  The second one actually holds the payment NOTE (row[4]), so it's renamed to 'Note' -
  fixes the crash and corrects the mislabeled column.
- tikTok (tiktok_contacts): a column named 'Table' sanitizes to the SQL reserved word
  'table' (the framework doesn't quote identifiers). Renamed to 'Source Table' (it holds
  the source table name).

Pre-existing bugs surfaced during testing. A codebase-wide CREATE TABLE audit (duplicate
+ reserved-word column names) confirms no other artifacts are affected.
@abrignoni abrignoni merged commit 35d9693 into main Jun 25, 2026
1 check passed
@abrignoni abrignoni deleted the fix-lava-duplicate-reserved-columns branch June 25, 2026 14:17
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.

1 participant