{"action":"created","issue":{"url":"https://api.github.com/repos/gocql/gocql/issues/390","labels_url":"https://api.github.com/repos/gocql/gocql/issues/390/labels{/name}","comments_url":"https://api.github.com/repos/gocql/gocql/issues/390/comments","events_url":"https://api.github.com/repos/gocql/gocql/issues/390/events","html_url":"https://github.com/gocql/gocql/issues/390","id":75308439,"number":390,"title":"Failed to unmarshall UserType","user":{"login":"nguyener","id":5903966,"avatar_url":"https://avatars.githubusercontent.com/u/5903966?v=3","gravatar_id":"","url":"https://api.github.com/users/nguyener","html_url":"https://github.com/nguyener","followers_url":"https://api.github.com/users/nguyener/followers","following_url":"https://api.github.com/users/nguyener/following{/other_user}","gists_url":"https://api.github.com/users/nguyener/gists{/gist_id}","starred_url":"https://api.github.com/users/nguyener/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nguyener/subscriptions","organizations_url":"https://api.github.com/users/nguyener/orgs","repos_url":"https://api.github.com/users/nguyener/repos","events_url":"https://api.github.com/users/nguyener/events{/privacy}","received_events_url":"https://api.github.com/users/nguyener/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":28,"created_at":"2015-05-11T18:07:41Z","updated_at":"2015-07-10T20:50:42Z","closed_at":"2015-05-12T20:01:22Z","body":"I created a table which has one of the columns is User Defined Type (actually a map of User Defined Type).  Let says my table name is 'templates' and the UDT is 'File' which has two attributes: file_name and file_content (both as text).  The UDT column is defined as map[string]File\r\nI have no problem retrieving data from this table using cqlsh.  However, when wrote some code with gocql, I got the following error:\r\n\"can not unmashal custom (org.apache.cassandra.db.marshal.UserType(.....) in to *templates.File\r\n "},"comment":{"url":"https://api.github.com/repos/gocql/gocql/issues/comments/120520971","html_url":"https://github.com/gocql/gocql/issues/390#issuecomment-120520971","issue_url":"https://api.github.com/repos/gocql/gocql/issues/390","id":120520971,"user":{"login":"Zariel","id":2213,"avatar_url":"https://avatars.githubusercontent.com/u/2213?v=3","gravatar_id":"","url":"https://api.github.com/users/Zariel","html_url":"https://github.com/Zariel","followers_url":"https://api.github.com/users/Zariel/followers","following_url":"https://api.github.com/users/Zariel/following{/other_user}","gists_url":"https://api.github.com/users/Zariel/gists{/gist_id}","starred_url":"https://api.github.com/users/Zariel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Zariel/subscriptions","organizations_url":"https://api.github.com/users/Zariel/orgs","repos_url":"https://api.github.com/users/Zariel/repos","events_url":"https://api.github.com/users/Zariel/events{/privacy}","received_events_url":"https://api.github.com/users/Zariel/received_events","type":"User","site_admin":false},"created_at":"2015-07-10T20:50:42Z","updated_at":"2015-07-10T20:50:42Z","body":"@jstoup it looks like your schema doesnt match the UDT, check that the UDT fields match the `cql` struct tag. It looks like it should be,\r\n\r\n```go\r\ntype FullName struct {\r\n    FirstName  string `cql:\"first\"`\r\n    LastName   string `cql:\"last\"`\r\n    MiddleName string `cql:\"middle\"`\r\n    Suffix     string `cql:\"suffix\"`\r\n    Prefix     string `cql:\"prefix\"`\r\n}\r\n```"}}