This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# In-memory Cassandra-ish thingy... useful for unit tests. Maybe useful for other | |
# stuff too? No support for SuperColumns, but that should be easy enough to add. | |
import bisect | |
import copy | |
from cassandra.ttypes import NotFoundException, Column, ColumnPath, ColumnOrSuperColumn | |
class SSTable(object): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
select count(*) | |
into @exists | |
from information_schema.tables | |
where table_schema = 'dbs_admin' | |
and table_name = 'dbs_auto_increment'; | |
set @qry = select if(@exists<0, | |
'rename table publisher.dbs_auto_increment to dbs_admin.dbs_auto_increment', | |
'select \'table exists\' status') as querystr; |