Skip to main content
visakh_nair
Bronze ⭐️⭐️⭐️
Jul 1, 2017 6:31 AM UTC

How to convert a Table to Transactional in an ACID Database

  • Oct 5, 2026 9:20 AM UTC
  • 0 replies
  • 1898 views
  • Translate All

SYMPTOM:

FAILED: SemanticException [Error 10122]: Bucketized tables do not support INSERT INTO: Table: XXXX

ROOT CAUSE:

Customer has a ACID enabled Cluster. Customer created a Table for which the TBLPROPERTIES ('transactional'='true') was not set. Customer's table has 50 Billion records in it.

WORKAROUND: For a table to be transactional, we need to set TBLPROPERTIES ('transactional'='true') We can convert a table to Transactional Table using the Alter Table Command, assuming the table satisfies acid requirements --Bucketed,

--Using ORC

--Not sorted.

RESOLUTION:

Logically alter table to set transactional=true is supported.