column_metadata missing in system_manager.create_column_family #103

Closed
carlopires opened this Issue Dec 27, 2011 · 3 comments

2 participants

@carlopires

System manager's create_column_family function should have a column_metadata keyword parameter.

@thobbs
pycassa member

This is by design. The additional complexity in allowing the specification of column_metadata when creating the column family isn't worth it, in my opinion, because it's simple to make those changes immediately after creating the CF using alter_column() and create_index() without any negative consequences.

@carlopires

I think schema updates are very expensive operation that try to avoid a RPC call to each new column justifies. Take a look at my patch to add column_metadata parameter as a dict mapping column names to column types. Its appended in my last pull request. If you like it merge it :)

@thobbs
pycassa member

Closing since this duplicates #111.

@thobbs thobbs closed this Jan 20, 2012
@carlopires carlopires pushed a commit to carlopires/pycassa that referenced this issue Jan 25, 2012
@thobbs thobbs Allow specifying col validators in create_col_fam
Fixes #103
fc58694
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment