문제

PycassaShell uses SYSTEM_MANAGER.create_column_family() to create column families in Cassandra.

Is there a way to dump the DDL before making the commit in Cassandra? Do I have to modify pycassaShell internals?

도움이 되었습니까?

해결책

Pycassa is using a Thrift RPC call to create the column family, so there's not really a DDL statement being used (because it's not using a query language). If you're talking about dumping the CfDef object, yes, you would need to modify the internals to make that happen, but it's worth noting that the CfDef will have some ignored fields and most of the fields will have their default value populated server-side after the RPC call is made.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top