Well, it does throw an InvalidQueryException if the column already exists.

On Mon, Feb 5, 2018 at 4:44 PM, Rahul Singh <[email protected]>
wrote:

> Since CQL != SQL, there’s isnt a syntatical way. Just run the alter table
> command and it shouldn't be an issue if its there.
>
> --
> Rahul Singh
> [email protected]
>
> Anant Corporation
>
> On Feb 5, 2018, 4:15 PM -0500, Oliver Ruebenacker <[email protected]>,
> wrote:
>
>
>      Hello,
>
>   What's the easiest way to add a column to a table but only if it does
> not exist? Thanks!
>
>      Best, Oliver
>
> --
> Oliver Ruebenacker
> Senior Software Engineer, Diabetes Portal
> <http://www.type2diabetesgenetics.org/>, Broad Institute
> <http://www.broadinstitute.org/>
>
>


-- 
Oliver Ruebenacker
Senior Software Engineer, Diabetes Portal
<http://www.type2diabetesgenetics.org/>, Broad Institute
<http://www.broadinstitute.org/>

Reply via email to