Skip to content

Commit

Permalink
CNDB-12683 use keyspace name form incident in test
Browse files Browse the repository at this point in the history
  • Loading branch information
k-rus committed Feb 25, 2025
1 parent b9a9e52 commit ff4f0df
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

import org.apache.cassandra.cql3.CQLTester;
import org.apache.cassandra.cql3.UntypedResultSet;
import org.apache.cassandra.cql3.functions.types.ParseUtils;
import org.apache.cassandra.exceptions.ConfigurationException;
import org.apache.cassandra.exceptions.InvalidRequestException;

Expand Down Expand Up @@ -105,7 +106,7 @@ public void testCreateTableWithMissingClusteringColumn()
@Test
public void testCreatingTableWithLongName() throws Throwable
{
String keyspace = "g38373639353166362d356631322d343864652d393063362d653862616534343165333764_tpch";
String keyspace = "\"38373639353166362d356631322d343864652d393063362d653862616534343165333764_tpch\"";
String table = "test_create_k8yq1r75bpzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz";

execute(String.format("CREATE KEYSPACE %s with replication = " +
Expand All @@ -116,7 +117,7 @@ public void testCreatingTableWithLongName() throws Throwable
"val int)", keyspace, table));

execute(String.format("INSERT INTO %s.%s (key,val) VALUES (1,1)", keyspace, table));
flush(keyspace, table);
flush(ParseUtils.unDoubleQuote(keyspace), table);
UntypedResultSet result = execute(String.format("SELECT * from %s.%s", keyspace, table));
assertThat(result.size()).isEqualTo(1);
}
Expand Down

0 comments on commit ff4f0df

Please sign in to comment.