Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UDTs (User-Defined Types) are not encoded correctly #19

Open
emadwill opened this issue Apr 1, 2016 · 1 comment
Open

UDTs (User-Defined Types) are not encoded correctly #19

emadwill opened this issue Apr 1, 2016 · 1 comment

Comments

@emadwill
Copy link
Contributor

emadwill commented Apr 1, 2016

For example, a UDT Point{x int; y int} is encoded as:
"Point(x=1.234, y=3.231)"

However, for it to be CQL compliant, it should be encoded as:
"{x: 1.234, y=3.231}"

@rsaias
Copy link

rsaias commented Nov 13, 2018

In case this helps someone else, here's an additional example of doctoring that might be needed before recreating content with dumped CQL:
[my_type(initiator_id=u'328195', reason_id=None, comment=u'No comment yet', date=datetime.datetime(2018, 9, 21, 19, 19, 14, 465000), action=u'SUBMIT')]
To reimport:
[{initiator_id: '328195', reason_id:NULL, comment:'No comment yet', date: '2018-9-21T19:19:14.465', action:'SUBMIT'}]

Still, cassandradump is pretty useful! 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants