Use a Cassandra map column - the keys of the map can be arbitrary. But if
there are some standard set of columns that are always or commonly present,
make them explicit Cassandra columns. And if the avro values have different
types, you may want to have several Cassandra map columns, one for each
value type you need to distinguish on queries. In some cases you might want
to use user defined types (UDT.)

-- Jack Krupansky

On Fri, Nov 6, 2015 at 1:38 AM, Lu Niu <qqib...@gmail.com> wrote:

>
> Hi, cassandra users
>
> my data is in avro format and the schema is huge. Is there any way that I
> can automatically convert the avro schema to the schema that cassandra
> could use? also, the api that I could store and fetch the data? Thank you!
>
> Best,
> Lu
>
>

Reply via email to