{"action":"created","issue":{"url":"https://api.github.com/repos/outworkers/phantom/issues/522","repository_url":"https://api.github.com/repos/outworkers/phantom","labels_url":"https://api.github.com/repos/outworkers/phantom/issues/522/labels{/name}","comments_url":"https://api.github.com/repos/outworkers/phantom/issues/522/comments","events_url":"https://api.github.com/repos/outworkers/phantom/issues/522/events","html_url":"https://github.com/outworkers/phantom/issues/522","id":165460086,"number":522,"title":"cannot update row when a column is null","user":{"login":"git4sun","id":5922499,"avatar_url":"https://avatars.githubusercontent.com/u/5922499?v=3","gravatar_id":"","url":"https://api.github.com/users/git4sun","html_url":"https://github.com/git4sun","followers_url":"https://api.github.com/users/git4sun/followers","following_url":"https://api.github.com/users/git4sun/following{/other_user}","gists_url":"https://api.github.com/users/git4sun/gists{/gist_id}","starred_url":"https://api.github.com/users/git4sun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/git4sun/subscriptions","organizations_url":"https://api.github.com/users/git4sun/orgs","repos_url":"https://api.github.com/users/git4sun/repos","events_url":"https://api.github.com/users/git4sun/events{/privacy}","received_events_url":"https://api.github.com/users/git4sun/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2016-07-14T02:00:52Z","updated_at":"2016-08-04T00:07:52Z","closed_at":null,"body":"I got this exception at runtime:com.websudos.phantom.builder.primitives.Primitive$$anon$1 Column xxx is null. Check the source code, it looks like phantom prevents any update on the null columns. But should it be a normal use case since cql allows it? \r\nMy use case is this. I have a table with 12 columns. When creating a record, I only have 3 columns filled with information. Later on I need to add more information to the same record. But whenever I want to update the record with `update.where(_.id eqs id).modify(_.group setTo \"g1\").... ` I got this exception at runtime."},"comment":{"url":"https://api.github.com/repos/outworkers/phantom/issues/comments/237413123","html_url":"https://github.com/outworkers/phantom/issues/522#issuecomment-237413123","issue_url":"https://api.github.com/repos/outworkers/phantom/issues/522","id":237413123,"user":{"login":"git4sun","id":5922499,"avatar_url":"https://avatars.githubusercontent.com/u/5922499?v=3","gravatar_id":"","url":"https://api.github.com/users/git4sun","html_url":"https://github.com/git4sun","followers_url":"https://api.github.com/users/git4sun/followers","following_url":"https://api.github.com/users/git4sun/following{/other_user}","gists_url":"https://api.github.com/users/git4sun/gists{/gist_id}","starred_url":"https://api.github.com/users/git4sun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/git4sun/subscriptions","organizations_url":"https://api.github.com/users/git4sun/orgs","repos_url":"https://api.github.com/users/git4sun/repos","events_url":"https://api.github.com/users/git4sun/events{/privacy}","received_events_url":"https://api.github.com/users/git4sun/received_events","type":"User","site_admin":false},"created_at":"2016-08-04T00:07:52Z","updated_at":"2016-08-04T00:07:52Z","body":"That sounds good. I understand that it is bad for the driver to make any assumption about the use case. However, would you mind give me a use case where optional columns are used? I mean if I put None to the column, I decided that the value for this column to be null. If I put Some(v), I decided its value to be `v`. What's the difference than using a regular column and use a default value like \"null\" to represent when I want to set None, and \"v\" when I want to set Some(v)?"}}
{"actor":{"display_login":"git4sun"}}