Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Explorer] Some problem for question 0f531d2f-89f6-405c-ae4d-624ff49b2d0a: how many contributors are there to trino compared to starrocks #1707

Open
alberttwong opened this issue Dec 19, 2023 · 0 comments

Comments

@alberttwong
Copy link

Hi, I have some problems with the question 0f531d2f-89f6-405c-ae4d-624ff49b2d0a how many contributors are there to trino compared to starrocks (errorType = none):

Generated SQL

WITH
  trino_contributors AS (
    SELECT
      COUNT(DISTINCT creator_user_login) AS trino_contributors
    FROM
      github_events
    WHERE
      type = 'PullRequestEvent'
      AND action = 'opened'
      AND repo_name = 'trinodb/trino'
  ),
  starrocks_contributors AS (
    SELECT
      COUNT(DISTINCT creator_user_login) AS starrocks_contributors
    FROM
      github_events
    WHERE
      type = 'PullRequestEvent'
      AND action = 'opened'
      AND repo_name = 'starrocks/starrocks'
  )
SELECT
  trino_contributors,
  starrocks_contributors
FROM
  trino_contributors,
  starrocks_contributors

Chart:

{
  "chartName": "BarChart",
  "title": "Contributors to Trino vs Starrocks",
  "x": "Repository",
  "y": [
    "Trino Contributors",
    "Starrocks Contributors"
  ]
}

Result:

// Fields
  [
  {
    "columnType": 8,
    "name": "trino_contributors"
  },
  {
    "columnType": 8,
    "name": "starrocks_contributors"
  }
]

// First result (Totally 1 rows)
  {
  "starrocks_contributors": 0,
  "trino_contributors": 556
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant