'Liquibase with Cassandra tableExists always comes back as false

I am using Liquibase for Cassandra and using the SimbaCassandraJDBC42 driver. I am using the tableExists in a precondition as shown

<?xml version="1.0" encoding="UTF-8"?>
<databaseChangeLog
        xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.1.xsd">



    <changeSet id="testtest_21" author="me" failOnError="true">
        <preConditions onFail="MARK_RAN">
            <tableExists tableName="TESTTEST"/>
        </preConditions>
        <sqlFile path="dml/seed-data.sql" relativeToChangelogFile="true" />
    </changeSet>


</databaseChangeLog>

However even though that the table exists I get the error below

INFO: Marking ChangeSet: db/changelog/changes/Release_test/db.changelog-update.xml::testtest_21::me ran despite precondition failure due to onFail='MARK_RAN': 
          db/changelog/changelog-master.xml : Table mykeyspace.TESTTEST does not exist

Any idea what could be the issue? or are there any workarounds? If I remove the precondition the data does get inserted into the table.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source