Please take this survey to help us learn more about how you use third party tools. Your input is greatly appreciated!

Add a column to a table and modify the projection to use the new column in ORDER BY

We are adding a column to the table and plan to use the column in the ORDER BY clause of the projection. We have a single projection on the table. Can I alter the projection adding the new column to the ORDER BY clause, and refresh the projection? I know we could create new projection, refresh the projection and then drop the current projection, but we don't have that much space to do so. Is there a way to do a "in-place" replacement/refresh of the projection?


  • Hello,

    Unfortunately Alter projection only supports rename.
    In your scenario you have to create a new projection and refresh it and the drop the existing projection and rename the new one.


Leave a Comment

BoldItalicStrikethroughOrdered listUnordered list
Align leftAlign centerAlign rightToggle HTML viewToggle full pageToggle lights
Drop image/file

Can't find what you're looking for? Search the Vertica Documentation, Knowledge Base, or Blog for more information.