Change table column's data type

Moderator: NorbertKrupa

User avatar
JimKnicely
Site Admin
Site Admin
Posts: 1825
Joined: Sat Jan 21, 2012 4:58 am
Contact:

Re: Change table column's data type

Post by JimKnicely » Fri May 04, 2012 8:45 pm

Here is a great post by a even greater guy that discusses this topic a little more ...

http://proplabs.org/2012/05/04/vertica- ... le-column/
Jim Knicely

Image

Note: I work for Vertica. My views, opinions, and thoughts expressed here do not represent those of my employer.

id10t
GURU
GURU
Posts: 732
Joined: Mon Apr 16, 2012 2:44 pm

Re: Change table column's data type

Post by id10t » Sat May 05, 2012 10:00 am

Hi, Jim.

I'm afraid is not the end :-).
You didn't investigate a case with prejoin-projections ;-) Its a long story and bad idea (imho) modify column data type on production system (there are may be segments, buddy/prejoin-projections).

User avatar
JimKnicely
Site Admin
Site Admin
Posts: 1825
Joined: Sat Jan 21, 2012 4:58 am
Contact:

Re: Change table column's data type

Post by JimKnicely » Tue Jun 05, 2012 1:39 pm

Great news, Vertica 6.0 gives us the ability to change a table column's data type...

Here's an excerpt from the New Feature's Guide:
Using new parameters in the ALTER TABLE statement, you can now perform the following operations:
  • Change, reorganize, and remove tble partitions
    Add table columns with a default derived expression
    Drop table columns
    Change a column's data type
    Rename a table or sequence owner
Jim Knicely

Image

Note: I work for Vertica. My views, opinions, and thoughts expressed here do not represent those of my employer.

rajasekhart
Intermediate
Intermediate
Posts: 87
Joined: Wed Apr 25, 2012 8:10 am

Re: Change table column's data type

Post by rajasekhart » Tue Jun 05, 2012 1:48 pm

Wow .. Really a very good news..

Thank you jim.
Rajasekhar.T|HP ATP Vertica Big Data Solutions V1

Post Reply

Return to “New to Vertica Database Administration”