As so far, Carbondata don't support primary keys, foreign keys, NOT NULL, etc. Table creation can use SORT_COLUMNS to create the main index, but the secondary index doesn't be supported.
----- Best Regards David Cai -- Sent from: http://apache-carbondata-dev-mailing-list-archive.1130556.n5.nabble.com/