Error: Cannot alter size of column

Moderator: NorbertKrupa

Post Reply
sarah
Intermediate
Intermediate
Posts: 77
Joined: Mon Aug 27, 2012 1:34 pm

Error: Cannot alter size of column

Post by sarah » Wed Nov 06, 2013 2:51 pm

Hello!

How do I fix this this error? I thought we could increase the size of a varchar column in a table?

Code: Select all

dbadmin=> ALTER table readers.book_digest ALTER COLUMN digest_desc SET DATA TYPE VARCHAR (100);
ROLLBACK 2353:  Cannot alter type of column "digest_desc" since it is referenced in the segmentation expression of projection "book_digest_b1"
Have a GREAT day!

scutter
Master
Master
Posts: 302
Joined: Tue Aug 07, 2012 2:15 am

Re: Error: Cannot alter size of column

Post by scutter » Thu Nov 07, 2013 9:56 pm

You would need to create new projections that don't have this column in the segmentation expression, refresh them, drop the current projections that do have this column in the segmentation expression, alter the column, and then recreate your orignal progrections if that column really needs to be in the segmentation.

--Sharon
Sharon Cutter
Vertica Consultant, Zazz Technologies LLC

sarah
Intermediate
Intermediate
Posts: 77
Joined: Mon Aug 27, 2012 1:34 pm

Re: Error: Cannot alter size of column

Post by sarah » Thu Nov 14, 2013 4:59 pm

Thanks, scutter! I finally got time to look into this issue again and you were correct! I fixed it.
Have a GREAT day!

Post Reply

Return to “New to Vertica Database Administration”