{"action":"created","issue":{"url":"https://api.github.com/repos/citusdata/cstore_fdw/issues/30","labels_url":"https://api.github.com/repos/citusdata/cstore_fdw/issues/30/labels{/name}","comments_url":"https://api.github.com/repos/citusdata/cstore_fdw/issues/30/comments","events_url":"https://api.github.com/repos/citusdata/cstore_fdw/issues/30/events","html_url":"https://github.com/citusdata/cstore_fdw/issues/30","id":36952490,"number":30,"title":"fail to execute truncate and copy with column list","user":{"login":"skykiker","id":5112196,"avatar_url":"https://avatars.githubusercontent.com/u/5112196?v=3","gravatar_id":"","url":"https://api.github.com/users/skykiker","html_url":"https://github.com/skykiker","followers_url":"https://api.github.com/users/skykiker/followers","following_url":"https://api.github.com/users/skykiker/following{/other_user}","gists_url":"https://api.github.com/users/skykiker/gists{/gist_id}","starred_url":"https://api.github.com/users/skykiker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skykiker/subscriptions","organizations_url":"https://api.github.com/users/skykiker/orgs","repos_url":"https://api.github.com/users/skykiker/repos","events_url":"https://api.github.com/users/skykiker/events{/privacy}","received_events_url":"https://api.github.com/users/skykiker/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/citusdata/cstore_fdw/labels/v1.4","name":"v1.4","color":"006b75"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2014-07-02T05:04:54Z","updated_at":"2015-04-16T11:35:47Z","closed_at":null,"body":"When I used Kettle's bulk load to copy data into a cstore table,it  failed.  \r\nThe SQL sended by The Kettle's bulk load is like the following.\r\n\r\npostgres=# truncate cstb1;\r\nERROR:  \"cstb1\" is not a table\r\n\r\npostgres=#  copy cstb1(id,name) from stdin with csv;\r\nERROR:  copy column list is not supported\r\n\r\nHow about  supporting the two SQLs in the future?\r\n"},"comment":{"url":"https://api.github.com/repos/citusdata/cstore_fdw/issues/comments/93713617","html_url":"https://github.com/citusdata/cstore_fdw/issues/30#issuecomment-93713617","issue_url":"https://api.github.com/repos/citusdata/cstore_fdw/issues/30","id":93713617,"user":{"login":"viticq","id":5294263,"avatar_url":"https://avatars.githubusercontent.com/u/5294263?v=3","gravatar_id":"","url":"https://api.github.com/users/viticq","html_url":"https://github.com/viticq","followers_url":"https://api.github.com/users/viticq/followers","following_url":"https://api.github.com/users/viticq/following{/other_user}","gists_url":"https://api.github.com/users/viticq/gists{/gist_id}","starred_url":"https://api.github.com/users/viticq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/viticq/subscriptions","organizations_url":"https://api.github.com/users/viticq/orgs","repos_url":"https://api.github.com/users/viticq/repos","events_url":"https://api.github.com/users/viticq/events{/privacy}","received_events_url":"https://api.github.com/users/viticq/received_events","type":"User","site_admin":false},"created_at":"2015-04-16T11:35:47Z","updated_at":"2015-04-16T11:35:47Z","body":"I simply commented out this block:\r\n```\r\n        if (columnNameList != NULL)\r\n        {\r\n              ereport(ERROR, (errcode(ERRCODE_FEATURE_NOT_SUPPORTED),\r\n                                                errmsg(\"copy column list is not supported\")));\r\n      }\r\n```\r\n in cstore_fdw.c and recompiled. \r\nThis allows for processing to go further even if column list is given in the statement (I wonder why developers think this is an \"error\" and not a \"warning\"). \r\n\r\nV"}}