home / github

Menu
  • Search all tables
  • GraphQL API

issue_comments

Table actions
  • GraphQL API for issue_comments

3 rows where issue = 526913133 sorted by updated_at descending

✖
✖

✎ View and edit SQL

This data as json, CSV (advanced)

Suggested facets: created_at (date), updated_at (date)

user 1

  • simonw 3

issue 1

  • Don't suggest column for faceting if all values are 1 · 3 ✖

author_association 1

  • OWNER 3
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions issue performed_via_github_app
557343750 https://github.com/simonw/datasette/issues/638#issuecomment-557343750 https://api.github.com/repos/simonw/datasette/issues/638 MDEyOklzc3VlQ29tbWVudDU1NzM0Mzc1MA== simonw 9599 2019-11-22T01:14:59Z 2019-11-22T01:14:59Z OWNER

Demo: https://latest.datasette.io/fixtures/facetable doesn't suggest distinct_some_null as a facet.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Don't suggest column for faceting if all values are 1 526913133  
557333467 https://github.com/simonw/datasette/issues/638#issuecomment-557333467 https://api.github.com/repos/simonw/datasette/issues/638 MDEyOklzc3VlQ29tbWVudDU1NzMzMzQ2Nw== simonw 9599 2019-11-22T00:28:07Z 2019-11-22T00:28:07Z OWNER

It's not as simple as that - planet_int should be a suggested facet on https://latest.datasette.io/fixtures/facetable?_facet=planet_int because it returns two filters, even though one of those two is a value of 1. Switching to the new proposed SQL statement misses this.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Don't suggest column for faceting if all values are 1 526913133  
557331366 https://github.com/simonw/datasette/issues/638#issuecomment-557331366 https://api.github.com/repos/simonw/datasette/issues/638 MDEyOklzc3VlQ29tbWVudDU1NzMzMTM2Ng== simonw 9599 2019-11-22T00:19:40Z 2019-11-22T00:19:40Z OWNER

We currently use select distinct wikipedia_url ... to suggest facets. This query would only return rows which are represented twice or more: sql select wikipedia_url, count(*) as n from museums where wikipedia_url is not null group by wikipedia_url having n > 1 https://www.niche-museums.com/museums?sql=select%0D%0A++wikipedia_url%2C+count%28*%29+as+n%0D%0Afrom%0D%0A++museums%0D%0Awhere%0D%0A++wikipedia_url+is+not+null%0D%0Agroup+by+wikipedia_url%0D%0Ahaving+n+%3E+1

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Don't suggest column for faceting if all values are 1 526913133  

Advanced export

JSON shape: default, array, newline-delimited, object

CSV options:

CREATE TABLE [issue_comments] (
   [html_url] TEXT,
   [issue_url] TEXT,
   [id] INTEGER PRIMARY KEY,
   [node_id] TEXT,
   [user] INTEGER REFERENCES [users]([id]),
   [created_at] TEXT,
   [updated_at] TEXT,
   [author_association] TEXT,
   [body] TEXT,
   [reactions] TEXT,
   [issue] INTEGER REFERENCES [issues]([id])
, [performed_via_github_app] TEXT);
CREATE INDEX [idx_issue_comments_issue]
                ON [issue_comments] ([issue]);
CREATE INDEX [idx_issue_comments_user]
                ON [issue_comments] ([user]);
Powered by Datasette · Queries took 16.859ms · About: github-to-sqlite
  • Sort ascending
  • Sort descending
  • Facet by this
  • Hide this column
  • Show all columns
  • Show not-blank rows