Skip to content

Commit

Permalink
Fix LuceneAnalyzerTest.verifyEmptyStringIndexingBehaviorOnNonAnalyzed…
Browse files Browse the repository at this point in the history
…Column for new expectations
  • Loading branch information
adelapena committed Sep 18, 2024
1 parent 18eba98 commit a6af240
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -363,18 +363,18 @@ private void verifyStopWordsLoadedCorrectly() throws Throwable
}

@Test
public void verifyEmptyStringIndexingBehaviorOnNonAnalyzedColumn() throws Throwable
public void verifyEmptyStringIndexingBehaviorOnNonAnalyzedColumn()
{
createTable("CREATE TABLE %s (pk int PRIMARY KEY, v text)");
createIndex("CREATE CUSTOM INDEX ON %s(v) USING 'StorageAttachedIndex'");
waitForIndexQueryable();
execute("INSERT INTO %s (pk, v) VALUES (?, ?)", 0, "");
flush();
assertRows(execute("SELECT * FROM %s WHERE v = ''"));
assertRows(execute("SELECT * FROM %s WHERE v = ''"), row(0, ""));
}

@Test
public void testEmptyQueryString() throws Throwable
public void verifyEmptyStringIndexingBehaviorOnAnalyzedColumn()
{
createTable("CREATE TABLE %s (pk int PRIMARY KEY, v text)");
createIndex("CREATE CUSTOM INDEX ON %s(v) USING 'StorageAttachedIndex' WITH OPTIONS = {'index_analyzer':'standard'}");
Expand All @@ -383,6 +383,7 @@ public void testEmptyQueryString() throws Throwable
execute("INSERT INTO %s (pk, v) VALUES (?, ?)", 1, "some text to analyze");
flush();
assertRows(execute("SELECT * FROM %s WHERE v : ''"));
assertRows(execute("SELECT * FROM %s WHERE v : ' '"));
}

// The english analyzer has a default set of stop words. This test relies on "the" being one of those stop words.
Expand Down

1 comment on commit a6af240

@cassci-bot
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Build rejected: 9 NEW test failure(s) in 3 builds., Build 3: ran 17696 tests with 14 failures and 128 skipped.
Butler analysis done on ds-cassandra-pr-gate/CNDB-10801-main vs last 16 runs of ds-cassandra-build-nightly/main.
org.apache.cassandra.net.ConnectionTest.testMessageDeliveryOnReconnect: test failed in the recent build. No failures on upstream;
branch story: [F++] vs upstream: [++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++]; [NEW]
org.apache.cassandra.index.sai.cql.TinySegmentQueryWriteLifecycleTest.testWriteLifecycle[ca_CompositePartitionKeyDataModel{primaryKey=p1, p2}]: test is constantly failing. No failures on upstream;
branch story: [F] vs upstream: [++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++]; [NEW]
org.apache.cassandra.index.sai.disk.vector.VectorCompressionTest.testNV_QA_4: test failed in the recent build. No failures on upstream;
branch story: [F++] vs upstream: [++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++]; [NEW]
org.apache.cassandra.index.sai.cql.QueryWriteLifecycleTest.testWriteLifecycle[ca_CompositePartitionKeyDataModel{primaryKey=p1, p2}]: test is constantly failing. No failures on upstream;
branch story: [FF] vs upstream: [++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++]; [NEW]
org.apache.cassandra.index.sai.disk.vector.VectorCompressionTest.testOpenAiV3Small: test failed in the recent build. No failures on upstream;
branch story: [F++] vs upstream: [++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++]; [NEW]
org.apache.cassandra.index.sai.disk.vector.VectorCompressionTest.testOpenAiV3Large: test failed in the recent build. No failures on upstream;
branch story: [F++] vs upstream: [++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++]; [NEW]
org.apache.cassandra.index.sai.disk.vector.VectorCompressionTest.testBert: test failed in the recent build. No failures on upstream;
branch story: [F++] vs upstream: [++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++]; [NEW]
org.apache.cassandra.index.sai.cql.VectorSiftSmallTest.testMultiSegmentBuild: test is constantly failing. No failures on upstream;
branch story: [FFF] vs upstream: [++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++]; [NEW]
junit.framework.TestSuite.org.apache.cassandra.distributed.test.FailingRepairTest: test failed in the recent build. No failures on upstream;
branch story: [F++] vs upstream: [++++++++++++++++]; [NEW]
butler comparison

Please sign in to comment.