Skip to content

Commit

Permalink
Enable Cassandra insert test
Browse files Browse the repository at this point in the history
  • Loading branch information
findepi committed Sep 9, 2020
1 parent 4e97cb0 commit 7bb39ce
Showing 1 changed file with 9 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
import static io.prestosql.spi.type.VarcharType.VARCHAR;
import static io.prestosql.testing.MaterializedResult.resultBuilder;
import static io.prestosql.testing.assertions.Assert.assertEquals;
import static org.assertj.core.api.Assertions.assertThatThrownBy;

public class TestCassandraDistributedQueries
extends AbstractTestDistributedQueries
Expand Down Expand Up @@ -84,28 +85,22 @@ public void testDropColumn()
// Cassandra does not support dropping columns
}

@Override
public void testInsert()
{
// TODO test inserts
}

@Override
public void testInsertWithCoercion()
{
// TODO test inserts
}

@Override
public void testInsertUnicode()
{
// TODO test inserts
// TODO
assertThatThrownBy(super::testInsertWithCoercion)
.hasMessage("unsupported type: decimal(5,3)");
throw new SkipException("TODO change test to use supported types");
}

@Override
public void testInsertArray()
{
// TODO test inserts
// TODO
assertThatThrownBy(super::testInsertArray)
.hasMessage("unsupported type: array(double)");
throw new SkipException("Unsupported");
}

@Override
Expand Down Expand Up @@ -134,12 +129,6 @@ public void testShowColumns()
assertEquals(actual, expectedParametrizedVarchar);
}

@Override
public void testWrittenStats()
{
// TODO Cassandra connector supports CTAS and inserts, but the test would fail
}

@Override
public void testCommentTable()
{
Expand Down

0 comments on commit 7bb39ce

Please sign in to comment.