https://delta.io logo
s

Starkadur Hrobjartsson

04/20/2023, 1:56 PM
Hi all, I have a delta table with a timestamp column
enqueuedTime
that I want to rename to
enqueued_time
. The column
enqueuedTime
is used to define three generated columns:
year, month, day
The table itself is then partitioned on the
year, month, day
generated columns. When I do:
ALTER TABLE <table> RENAME COLUMN enqueuedTime TO enqueued_time;
I get the following error: "Cannot rename column enqueuedTime because this column is referenced by the following generated columns:" • year • month • day How can I perform this renaming?
56 Views