Databricks Delta Lake doesn't support changing column data types directly via ALTER COLUMN, especially for type conversions like DOUBLE to DECIMAL.
Based on the documentation, Databricks doesn't support arbitrary type changes via ALTER COLUMN (like DOUBLE to DECIMAL). Here are your options
Option 1: Recreate Table with New Schema (Recommended)
Option 2: Add New Column & Migrate (Safer - Preserves History)
Option 3: For Liquibase - Use Table Recreation, Since you're using Liquibase, modify your changeset to use:
- CREATE OR REPLACE TABLE instead of ALTER TABLE
- Or use Liquibase's loadUpdateData with a new table definition
Aashish Kasma | CTO & Cofounder, Lucent Innovation