{"action":"closed","issue":{"url":"https://api.github.com/repos/blaze/blaze/issues/1193","labels_url":"https://api.github.com/repos/blaze/blaze/issues/1193/labels{/name}","comments_url":"https://api.github.com/repos/blaze/blaze/issues/1193/comments","events_url":"https://api.github.com/repos/blaze/blaze/issues/1193/events","html_url":"https://github.com/blaze/blaze/issues/1193","id":98594401,"number":1193,"title":"Failing joins on field that is nullable in one table but not in the other","user":{"login":"she11c0de","id":921741,"avatar_url":"https://avatars.githubusercontent.com/u/921741?v=3","gravatar_id":"","url":"https://api.github.com/users/she11c0de","html_url":"https://github.com/she11c0de","followers_url":"https://api.github.com/users/she11c0de/followers","following_url":"https://api.github.com/users/she11c0de/following{/other_user}","gists_url":"https://api.github.com/users/she11c0de/gists{/gist_id}","starred_url":"https://api.github.com/users/she11c0de/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/she11c0de/subscriptions","organizations_url":"https://api.github.com/users/she11c0de/orgs","repos_url":"https://api.github.com/users/she11c0de/repos","events_url":"https://api.github.com/users/she11c0de/events{/privacy}","received_events_url":"https://api.github.com/users/she11c0de/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/blaze/blaze/labels/api%20design","name":"api design","color":"eb6420"},{"url":"https://api.github.com/repos/blaze/blaze/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":{"login":"cpcloud","id":417981,"avatar_url":"https://avatars.githubusercontent.com/u/417981?v=3","gravatar_id":"","url":"https://api.github.com/users/cpcloud","html_url":"https://github.com/cpcloud","followers_url":"https://api.github.com/users/cpcloud/followers","following_url":"https://api.github.com/users/cpcloud/following{/other_user}","gists_url":"https://api.github.com/users/cpcloud/gists{/gist_id}","starred_url":"https://api.github.com/users/cpcloud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cpcloud/subscriptions","organizations_url":"https://api.github.com/users/cpcloud/orgs","repos_url":"https://api.github.com/users/cpcloud/repos","events_url":"https://api.github.com/users/cpcloud/events{/privacy}","received_events_url":"https://api.github.com/users/cpcloud/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/blaze/blaze/milestones/12","html_url":"https://github.com/blaze/blaze/milestones/0.8.3","labels_url":"https://api.github.com/repos/blaze/blaze/milestones/12/labels","id":1200662,"number":12,"title":"0.8.3","description":"","creator":{"login":"cpcloud","id":417981,"avatar_url":"https://avatars.githubusercontent.com/u/417981?v=3","gravatar_id":"","url":"https://api.github.com/users/cpcloud","html_url":"https://github.com/cpcloud","followers_url":"https://api.github.com/users/cpcloud/followers","following_url":"https://api.github.com/users/cpcloud/following{/other_user}","gists_url":"https://api.github.com/users/cpcloud/gists{/gist_id}","starred_url":"https://api.github.com/users/cpcloud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cpcloud/subscriptions","organizations_url":"https://api.github.com/users/cpcloud/orgs","repos_url":"https://api.github.com/users/cpcloud/repos","events_url":"https://api.github.com/users/cpcloud/events{/privacy}","received_events_url":"https://api.github.com/users/cpcloud/received_events","type":"User","site_admin":false},"open_issues":20,"closed_issues":43,"state":"open","created_at":"2015-07-09T13:29:49Z","updated_at":"2015-09-04T18:19:24Z","due_on":"2015-10-04T05:00:00Z","closed_at":null},"comments":0,"created_at":"2015-08-02T08:56:35Z","updated_at":"2015-09-04T18:19:24Z","closed_at":"2015-09-04T18:19:24Z","body":"Given following tables (postgresql db):\r\n```\r\nexample> \\d table1\r\n+----------+---------+-------------+\r\n| Column   | Type    | Modifiers   |\r\n|----------+---------+-------------|\r\n| id       | integer | not null    |\r\n| field    | integer |             |\r\n+----------+---------+-------------+\r\nIndexes:\r\n    \"table1_pkey\" PRIMARY KEY, btree (id)\r\n\r\nexample> \\d table2\r\n+----------+---------+-------------+\r\n| Column   | Type    | Modifiers   |\r\n|----------+---------+-------------|\r\n| id       | integer | not null    |\r\n| field    | integer | not null    |\r\n+----------+---------+-------------+\r\nIndexes:\r\n    \"table2_pkey\" PRIMARY KEY, btree (id)\r\n```\r\n\r\nFollowing code fails:\r\n\r\n```\r\njoin(table1, table2, 'field')\r\n```\r\n\r\nWith this error message:\r\n\r\n```\r\nTypeError                                 Traceback (most recent call last)\r\n<ipython-input-14-2a191a07eec9> in <module>()\r\n----> 1 join(database.table1, database.table2, 'field')\r\n\r\n/home/user/anaconda/envs/env/lib/python2.7/site-packages/blaze/expr/collections.pyc in join(lhs, rhs, on_left, on_right, how, suffixes)\r\n    435                          (lhs, rhs))\r\n    436     if types_of_fields(on_left, lhs) != types_of_fields(on_right, rhs):\r\n--> 437         raise TypeError(\"Schema's of joining columns do not match\")\r\n    438     _on_left = tuple(on_left) if isinstance(on_left, list) else on_left\r\n    439     _on_right = (tuple(on_right) if isinstance(on_right, list)\r\n\r\nTypeError: Schema's of joining columns do not match\r\n```\r\n\r\nTypes returned by types_of_fields function:\r\n```\r\ntypes_of_fields('field', database.table1) #  ?int32\r\ntypes_of_fields('field', database.table2) #  ctype(\"int32\")  \r\n```"}}