/*
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.facebook.presto.cassandra;

import com.facebook.presto.tests.AbstractTestDistributedQueries;
import io.airlift.tpch.TpchTable;
import org.testng.annotations.Test;

import static com.facebook.presto.cassandra.CassandraQueryRunner.createCassandraQueryRunner;
import static com.facebook.presto.cassandra.CassandraQueryRunner.createSampledSession;

@Test(singleThreaded = true)
public class TestCassandraDistributed
        extends AbstractTestDistributedQueries
{
    public TestCassandraDistributed()
            throws Exception
    {
        super(createCassandraQueryRunner(TpchTable.getTables()), createSampledSession());
    }

    @Override
    public void testGroupingSetMixedExpressionAndColumn()
            throws Exception
    {
        // Cassandra does not support DATE
    }

    @Override
    public void testGroupingSetMixedExpressionAndOrdinal()
            throws Exception
    {
        // Cassandra does not support DATE
    }

    @Override
    public void testRenameTable()
            throws Exception
    {
        // Cassandra does not support renaming tables
    }

    @Override
    public void testAddColumn()
            throws Exception
    {
        // Cassandra does not support adding columns
    }

    @Override
    public void testRenameColumn()
            throws Exception
    {
        // Cassandra does not support renaming columns
    }

    @Override
    public void testView()
            throws Exception
    {
        // Cassandra connector currently does not support views
    }

    @Override
    public void testCompatibleTypeChangeForView()
            throws Exception
    {
        // Cassandra connector currently does not support views
    }

    @Override
    public void testCompatibleTypeChangeForView2()
            throws Exception
    {
        // Cassandra connector currently does not support views
    }

    @Override
    public void testViewMetadata()
            throws Exception
    {
        // Cassandra connector currently does not support views
    }

    @Override
    public void testInsert()
            throws Exception
    {
        // Cassandra connector currently does not support insert
    }

    @Override
    public void testCreateTable()
            throws Exception
    {
        // Cassandra connector currently does not support create table
    }

    @Override
    public void testDelete()
            throws Exception
    {
        // Cassandra connector currently does not support delete
    }
}

@@ -2890,32 +2890,201 @@
 te table%0A    %7D%0A%0A
+    @Override%0A    public void testCreateTableAsSelect()%0A            throws Exception%0A    %7B%0A        // Cassandra connector currently does not support create table%0A    %7D%0A%0A
     @Override%0A  

Disable testCreateTableAsSelect for Cassandra