{"action":"created","comment":{"url":"https://api.github.com/repos/cockroachdb/cockroach/pulls/comments/36420094","id":36420094,"diff_hunk":"@@ -0,0 +1,30 @@\n+statement ok\n+CREATE TABLE a (id INT PRIMARY KEY)\n+\n+statement ok\n+CREATE TABLE b (id INT PRIMARY KEY)\n+\n+query TT colnames\n+SHOW TABLES FROM test\n+----\n+Table\n+a\n+b\n+\n+statement ok\n+DROP TABLE a\n+\n+query T colnames\n+SHOW TABLES FROM test\n+----\n+Table\n+b\n+","path":"sql/testdata/drop_table","position":22,"original_position":22,"commit_id":"c39e7b38ee60187b8bcabbe5f9e3b8c31071dfa9","original_commit_id":"c39e7b38ee60187b8bcabbe5f9e3b8c31071dfa9","user":{"login":"vivekmenezes","id":11774212,"avatar_url":"https://avatars.githubusercontent.com/u/11774212?v=3","gravatar_id":"","url":"https://api.github.com/users/vivekmenezes","html_url":"https://github.com/vivekmenezes","followers_url":"https://api.github.com/users/vivekmenezes/followers","following_url":"https://api.github.com/users/vivekmenezes/following{/other_user}","gists_url":"https://api.github.com/users/vivekmenezes/gists{/gist_id}","starred_url":"https://api.github.com/users/vivekmenezes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vivekmenezes/subscriptions","organizations_url":"https://api.github.com/users/vivekmenezes/orgs","repos_url":"https://api.github.com/users/vivekmenezes/repos","events_url":"https://api.github.com/users/vivekmenezes/events{/privacy}","received_events_url":"https://api.github.com/users/vivekmenezes/received_events","type":"User","site_admin":false},"body":"Can you add some rows into table a. Run select to ensure the rows are present. Then drop it as you've done, and recreate it. Run select on the table to ensure that it's empty. This will check that the truncate was indeed called. Thanks","created_at":"2015-08-06T14:25:45Z","updated_at":"2015-08-06T14:25:45Z","html_url":"https://github.com/cockroachdb/cockroach/pull/1935#discussion_r36420094","pull_request_url":"https://api.github.com/repos/cockroachdb/cockroach/pulls/1935","_links":{"self":{"href":"https://api.github.com/repos/cockroachdb/cockroach/pulls/comments/36420094"},"html":{"href":"https://github.com/cockroachdb/cockroach/pull/1935#discussion_r36420094"},"pull_request":{"href":"https://api.github.com/repos/cockroachdb/cockroach/pulls/1935"}}},"pull_request":{"url":"https://api.github.com/repos/cockroachdb/cockroach/pulls/1935","id":41565846,"html_url":"https://github.com/cockroachdb/cockroach/pull/1935","diff_url":"https://github.com/cockroachdb/cockroach/pull/1935.diff","patch_url":"https://github.com/cockroachdb/cockroach/pull/1935.patch","issue_url":"https://api.github.com/repos/cockroachdb/cockroach/issues/1935","number":1935,"state":"open","locked":false,"title":"Add drop table","user":{"login":"XisiHuang","id":13212267,"avatar_url":"https://avatars.githubusercontent.com/u/13212267?v=3","gravatar_id":"","url":"https://api.github.com/users/XisiHuang","html_url":"https://github.com/XisiHuang","followers_url":"https://api.github.com/users/XisiHuang/followers","following_url":"https://api.github.com/users/XisiHuang/following{/other_user}","gists_url":"https://api.github.com/users/XisiHuang/gists{/gist_id}","starred_url":"https://api.github.com/users/XisiHuang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/XisiHuang/subscriptions","organizations_url":"https://api.github.com/users/XisiHuang/orgs","repos_url":"https://api.github.com/users/XisiHuang/repos","events_url":"https://api.github.com/users/XisiHuang/events{/privacy}","received_events_url":"https://api.github.com/users/XisiHuang/received_events","type":"User","site_admin":false},"body":"See #1895.","created_at":"2015-08-04T12:50:42Z","updated_at":"2015-08-06T14:25:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4834ee7a1171c9a798b464791257822081cec3eb","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/cockroachdb/cockroach/pulls/1935/commits","review_comments_url":"https://api.github.com/repos/cockroachdb/cockroach/pulls/1935/comments","review_comment_url":"https://api.github.com/repos/cockroachdb/cockroach/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cockroachdb/cockroach/issues/1935/comments","statuses_url":"https://api.github.com/repos/cockroachdb/cockroach/statuses/c39e7b38ee60187b8bcabbe5f9e3b8c31071dfa9","head":{"label":"XisiHuang:drop_table","ref":"drop_table","sha":"c39e7b38ee60187b8bcabbe5f9e3b8c31071dfa9","user":{"login":"XisiHuang","id":13212267,"avatar_url":"https://avatars.githubusercontent.com/u/13212267?v=3","gravatar_id":"","url":"https://api.github.com/users/XisiHuang","html_url":"https://github.com/XisiHuang","followers_url":"https://api.github.com/users/XisiHuang/followers","following_url":"https://api.github.com/users/XisiHuang/following{/other_user}","gists_url":"https://api.github.com/users/XisiHuang/gists{/gist_id}","starred_url":"https://api.github.com/users/XisiHuang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/XisiHuang/subscriptions","organizations_url":"https://api.github.com/users/XisiHuang/orgs","repos_url":"https://api.github.com/users/XisiHuang/repos","events_url":"https://api.github.com/users/XisiHuang/events{/privacy}","received_events_url":"https://api.github.com/users/XisiHuang/received_events","type":"User","site_admin":false},"repo":{"id":39671857,"name":"cockroach","full_name":"XisiHuang/cockroach","owner":{"login":"XisiHuang","id":13212267,"avatar_url":"https://avatars.githubusercontent.com/u/13212267?v=3","gravatar_id":"","url":"https://api.github.com/users/XisiHuang","html_url":"https://github.com/XisiHuang","followers_url":"https://api.github.com/users/XisiHuang/followers","following_url":"https://api.github.com/users/XisiHuang/following{/other_user}","gists_url":"https://api.github.com/users/XisiHuang/gists{/gist_id}","starred_url":"https://api.github.com/users/XisiHuang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/XisiHuang/subscriptions","organizations_url":"https://api.github.com/users/XisiHuang/orgs","repos_url":"https://api.github.com/users/XisiHuang/repos","events_url":"https://api.github.com/users/XisiHuang/events{/privacy}","received_events_url":"https://api.github.com/users/XisiHuang/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/XisiHuang/cockroach","description":"A Scalable, Geo-Replicated, Transactional Datastore","fork":true,"url":"https://api.github.com/repos/XisiHuang/cockroach","forks_url":"https://api.github.com/repos/XisiHuang/cockroach/forks","keys_url":"https://api.github.com/repos/XisiHuang/cockroach/keys{/key_id}","collaborators_url":"https://api.github.com/repos/XisiHuang/cockroach/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/XisiHuang/cockroach/teams","hooks_url":"https://api.github.com/repos/XisiHuang/cockroach/hooks","issue_events_url":"https://api.github.com/repos/XisiHuang/cockroach/issues/events{/number}","events_url":"https://api.github.com/repos/XisiHuang/cockroach/events","assignees_url":"https://api.github.com/repos/XisiHuang/cockroach/assignees{/user}","branches_url":"https://api.github.com/repos/XisiHuang/cockroach/branches{/branch}","tags_url":"https://api.github.com/repos/XisiHuang/cockroach/tags","blobs_url":"https://api.github.com/repos/XisiHuang/cockroach/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/XisiHuang/cockroach/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/XisiHuang/cockroach/git/refs{/sha}","trees_url":"https://api.github.com/repos/XisiHuang/cockroach/git/trees{/sha}","statuses_url":"https://api.github.com/repos/XisiHuang/cockroach/statuses/{sha}","languages_url":"https://api.github.com/repos/XisiHuang/cockroach/languages","stargazers_url":"https://api.github.com/repos/XisiHuang/cockroach/stargazers","contributors_url":"https://api.github.com/repos/XisiHuang/cockroach/contributors","subscribers_url":"https://api.github.com/repos/XisiHuang/cockroach/subscribers","subscription_url":"https://api.github.com/repos/XisiHuang/cockroach/subscription","commits_url":"https://api.github.com/repos/XisiHuang/cockroach/commits{/sha}","git_commits_url":"https://api.github.com/repos/XisiHuang/cockroach/git/commits{/sha}","comments_url":"https://api.github.com/repos/XisiHuang/cockroach/comments{/number}","issue_comment_url":"https://api.github.com/repos/XisiHuang/cockroach/issues/comments{/number}","contents_url":"https://api.github.com/repos/XisiHuang/cockroach/contents/{+path}","compare_url":"https://api.github.com/repos/XisiHuang/cockroach/compare/{base}...{head}","merges_url":"https://api.github.com/repos/XisiHuang/cockroach/merges","archive_url":"https://api.github.com/repos/XisiHuang/cockroach/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/XisiHuang/cockroach/downloads","issues_url":"https://api.github.com/repos/XisiHuang/cockroach/issues{/number}","pulls_url":"https://api.github.com/repos/XisiHuang/cockroach/pulls{/number}","milestones_url":"https://api.github.com/repos/XisiHuang/cockroach/milestones{/number}","notifications_url":"https://api.github.com/repos/XisiHuang/cockroach/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/XisiHuang/cockroach/labels{/name}","releases_url":"https://api.github.com/repos/XisiHuang/cockroach/releases{/id}","created_at":"2015-07-25T03:59:58Z","updated_at":"2015-07-25T04:00:02Z","pushed_at":"2015-08-06T12:48:11Z","git_url":"git://github.com/XisiHuang/cockroach.git","ssh_url":"git@github.com:XisiHuang/cockroach.git","clone_url":"https://github.com/XisiHuang/cockroach.git","svn_url":"https://github.com/XisiHuang/cockroach","homepage":null,"size":25841,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"cockroachdb:master","ref":"master","sha":"f8b23a9fd490c5c5a72351bf9842f89007cf4c92","user":{"login":"cockroachdb","id":6748139,"avatar_url":"https://avatars.githubusercontent.com/u/6748139?v=3","gravatar_id":"","url":"https://api.github.com/users/cockroachdb","html_url":"https://github.com/cockroachdb","followers_url":"https://api.github.com/users/cockroachdb/followers","following_url":"https://api.github.com/users/cockroachdb/following{/other_user}","gists_url":"https://api.github.com/users/cockroachdb/gists{/gist_id}","starred_url":"https://api.github.com/users/cockroachdb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cockroachdb/subscriptions","organizations_url":"https://api.github.com/users/cockroachdb/orgs","repos_url":"https://api.github.com/users/cockroachdb/repos","events_url":"https://api.github.com/users/cockroachdb/events{/privacy}","received_events_url":"https://api.github.com/users/cockroachdb/received_events","type":"Organization","site_admin":false},"repo":{"id":16563587,"name":"cockroach","full_name":"cockroachdb/cockroach","owner":{"login":"cockroachdb","id":6748139,"avatar_url":"https://avatars.githubusercontent.com/u/6748139?v=3","gravatar_id":"","url":"https://api.github.com/users/cockroachdb","html_url":"https://github.com/cockroachdb","followers_url":"https://api.github.com/users/cockroachdb/followers","following_url":"https://api.github.com/users/cockroachdb/following{/other_user}","gists_url":"https://api.github.com/users/cockroachdb/gists{/gist_id}","starred_url":"https://api.github.com/users/cockroachdb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cockroachdb/subscriptions","organizations_url":"https://api.github.com/users/cockroachdb/orgs","repos_url":"https://api.github.com/users/cockroachdb/repos","events_url":"https://api.github.com/users/cockroachdb/events{/privacy}","received_events_url":"https://api.github.com/users/cockroachdb/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cockroachdb/cockroach","description":"A Scalable, Geo-Replicated, Transactional Datastore","fork":false,"url":"https://api.github.com/repos/cockroachdb/cockroach","forks_url":"https://api.github.com/repos/cockroachdb/cockroach/forks","keys_url":"https://api.github.com/repos/cockroachdb/cockroach/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cockroachdb/cockroach/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cockroachdb/cockroach/teams","hooks_url":"https://api.github.com/repos/cockroachdb/cockroach/hooks","issue_events_url":"https://api.github.com/repos/cockroachdb/cockroach/issues/events{/number}","events_url":"https://api.github.com/repos/cockroachdb/cockroach/events","assignees_url":"https://api.github.com/repos/cockroachdb/cockroach/assignees{/user}","branches_url":"https://api.github.com/repos/cockroachdb/cockroach/branches{/branch}","tags_url":"https://api.github.com/repos/cockroachdb/cockroach/tags","blobs_url":"https://api.github.com/repos/cockroachdb/cockroach/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cockroachdb/cockroach/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cockroachdb/cockroach/git/refs{/sha}","trees_url":"https://api.github.com/repos/cockroachdb/cockroach/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cockroachdb/cockroach/statuses/{sha}","languages_url":"https://api.github.com/repos/cockroachdb/cockroach/languages","stargazers_url":"https://api.github.com/repos/cockroachdb/cockroach/stargazers","contributors_url":"https://api.github.com/repos/cockroachdb/cockroach/contributors","subscribers_url":"https://api.github.com/repos/cockroachdb/cockroach/subscribers","subscription_url":"https://api.github.com/repos/cockroachdb/cockroach/subscription","commits_url":"https://api.github.com/repos/cockroachdb/cockroach/commits{/sha}","git_commits_url":"https://api.github.com/repos/cockroachdb/cockroach/git/commits{/sha}","comments_url":"https://api.github.com/repos/cockroachdb/cockroach/comments{/number}","issue_comment_url":"https://api.github.com/repos/cockroachdb/cockroach/issues/comments{/number}","contents_url":"https://api.github.com/repos/cockroachdb/cockroach/contents/{+path}","compare_url":"https://api.github.com/repos/cockroachdb/cockroach/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cockroachdb/cockroach/merges","archive_url":"https://api.github.com/repos/cockroachdb/cockroach/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cockroachdb/cockroach/downloads","issues_url":"https://api.github.com/repos/cockroachdb/cockroach/issues{/number}","pulls_url":"https://api.github.com/repos/cockroachdb/cockroach/pulls{/number}","milestones_url":"https://api.github.com/repos/cockroachdb/cockroach/milestones{/number}","notifications_url":"https://api.github.com/repos/cockroachdb/cockroach/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cockroachdb/cockroach/labels{/name}","releases_url":"https://api.github.com/repos/cockroachdb/cockroach/releases{/id}","created_at":"2014-02-06T00:18:47Z","updated_at":"2015-08-06T12:04:43Z","pushed_at":"2015-08-06T13:58:43Z","git_url":"git://github.com/cockroachdb/cockroach.git","ssh_url":"git@github.com:cockroachdb/cockroach.git","clone_url":"https://github.com/cockroachdb/cockroach.git","svn_url":"https://github.com/cockroachdb/cockroach","homepage":null,"size":45361,"stargazers_count":4967,"watchers_count":4967,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":390,"mirror_url":null,"open_issues_count":129,"forks":390,"open_issues":129,"watchers":4967,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cockroachdb/cockroach/pulls/1935"},"html":{"href":"https://github.com/cockroachdb/cockroach/pull/1935"},"issue":{"href":"https://api.github.com/repos/cockroachdb/cockroach/issues/1935"},"comments":{"href":"https://api.github.com/repos/cockroachdb/cockroach/issues/1935/comments"},"review_comments":{"href":"https://api.github.com/repos/cockroachdb/cockroach/pulls/1935/comments"},"review_comment":{"href":"https://api.github.com/repos/cockroachdb/cockroach/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cockroachdb/cockroach/pulls/1935/commits"},"statuses":{"href":"https://api.github.com/repos/cockroachdb/cockroach/statuses/c39e7b38ee60187b8bcabbe5f9e3b8c31071dfa9"}}}}