在中,如果从 usingScalarDB输入一行,则 tx 字段的值应该是多少?cqlshDistributedTransaction
我的表的架构是
CREATE TABLE codingjedi.supported_tags (
course text,
subject text,
topic text,
before_tx_committed_at bigint,
before_tx_id text,
before_tx_prepared_at bigint,
before_tx_state int,
before_tx_version int,
tx_committed_at bigint,
tx_id text,
tx_prepared_at bigint,
tx_state int,
tx_version int,
PRIMARY KEY (course, subject, topic)
)
cqlsh我直接从表中填充了一些条目INSERT INTO supported_tags (course, subject, topic) VALUES ('coding','Perl','empty' ) IF NOT EXISTS;
但这离开tx_committed_at tx_id, tx_prepared_at, tx_state, tx_version null。我认为这在我执行get. 我得到一个例外invalid id specified.. Cause: null。
我可以在表中添加行cqlsh吗?