Generate a CQL Create Table statement using a DataFrame and all the parameters required to construct the CREATE Table statement

Description

Generate a CQL Create Table statement using a DataFrame and all the parameters required to construct the CREATE Table statement.

As of today (01/26/2018)

function generates a CQL create table statement

1) Assuming the first column of a dataframe as a partition key.
2) Doesn't specify any clustering order.
3) Does not use "IF NOT EXISTS" clause when creating a table.

so if I want to generate the following create table statement there seems to be no way to do that.

Also it would be nice to have function that can help both Scala and Java users to generate this statement as easily as possible. Currently java users have to write code like below to get something close to CREATE TABLE STATEMENT above.

Here is an SO link that may have more information on this issue

Pull Requests

None
Fixed

Assignee

Alexey Ott

Reporter

stephen flemming

Reviewer

Russell Spitzer