{"id":20528126,"url":"https://github.com/bankyadam/not-so-bigquery","last_synced_at":"2025-10-03T14:29:16.577Z","repository":{"id":47184478,"uuid":"289360218","full_name":"bankyadam/not-so-bigquery","owner":"bankyadam","description":"An emulator for the Google BigQuery, that can be run locally, backed by PostgreSQL.","archived":false,"fork":false,"pushed_at":"2023-02-18T23:38:04.000Z","size":1541,"stargazers_count":25,"open_issues_count":4,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-27T18:52:25.457Z","etag":null,"topics":["bigquery","development","devtool","emulator","sql"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bankyadam.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-08-21T20:36:22.000Z","updated_at":"2025-01-12T20:52:44.000Z","dependencies_parsed_at":"2024-11-16T04:31:04.489Z","dependency_job_id":"e36aa9b0-68de-401b-b98d-13485bd4d599","html_url":"https://github.com/bankyadam/not-so-bigquery","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bankyadam%2Fnot-so-bigquery","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bankyadam%2Fnot-so-bigquery/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bankyadam%2Fnot-so-bigquery/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bankyadam%2Fnot-so-bigquery/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bankyadam","download_url":"https://codeload.github.com/bankyadam/not-so-bigquery/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248824693,"owners_count":21167343,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bigquery","development","devtool","emulator","sql"],"created_at":"2024-11-15T23:23:27.139Z","updated_at":"2025-10-03T14:29:16.482Z","avatar_url":"https://github.com/bankyadam.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Not-So-BigQuery\n\nAn emulator for Google BigQuery, that can be run locally, backed by PostgreSQL.\n\n## Compatibility\n\n### API Endpoints\n\nMore info [here](docs/API_SUPPORT.md).\n\n### Functions\n\nMore info [here](docs/FUNCTION_SUPPORT.md).\n\n### SQL Compatibility\n\nSince BigQuery uses its own SQL implementation, there can be and there are functionalities that will not work. To\nachieve most of the features that BigQuery provides, Not-So-BigQuery uses its own query parser to translate to a\nPostgreSQL-compatible query.\n\n#### Supported BigQuery syntax\n\nLink to the full query statement syntax: https://cloud.google.com/bigquery/docs/reference/standard-sql/query-syntax\n\n```\nquery_statement:\n    query_expr\n\nquery_expr:\n    [ WITH with_query_name AS ( query_expr ) [, ...] ]\n    select | ( query_expr )\n    [ ORDER BY expression [{ ASC | DESC }] [, ...] ]\n    [ LIMIT count [ OFFSET skip_rows ] ]\n\nselect:\n    SELECT [{ ALL | DISTINCT }]\n        { [ expression. ]*\n        | expression [ [ AS ] alias ] } [, ...]\n    [ FROM from_item  [, ...] ]\n    [ WHERE expression ]\n    [ GROUP BY expression [, ...] ]\n    [ HAVING expression ]\n\nfrom_item: {\n    table_name [ [ AS ] alias ]\n    join |\n    ( query_expr ) [ [ AS ] alias ] |\n    with_query_name [ [ AS ] alias ]\n}\n\njoin:\n   from_item [ join_type ] JOIN from_item\n   [ ON expression | USING ( join_column [, ...] ) ]\n\njoin_type:\n   { INNER | CROSS | FULL [OUTER] | LEFT [OUTER] | RIGHT [OUTER] }\n```\n\nWhere the `expression` is the following:\n\n```\nexpression:\n    literal_value |\n    [ [ [ [ project_name . ] dataset_name . ] table_name . ] column_name ] |\n    unary_operator expression |\n    expression binary_operator expression |\n    function_name ( [ expression [, ...] | * ] ) |\n    ( expression [, ...] ) |\n    CAST ( expression AS type_name ) |\n    EXTRACT ( part FROM date_expression ) |\n    expression IS [ NOT ] NULL | \n    expression IS [ NOT ] expression |\n    expression [ NOT ] IN ( { expression | select } )\n\nliteral_value:\n    numeric_literal |\n    string_literal |\n    NULL | TRUE | FALSE\n\nunary_operator:\n    NOT\n\nbinary_operator:\n    AND | OR |\n    \u003c | \u003c= | \u003e | \u003e= | = | \u003c\u003e | != \n```\n\n## Usage from source\n\n### To run the app\n\n```bash\ndocker-compose up app\n```\n\nThis will start Not-So-BigQuery in a container, and expose port 5443 on your host.\n\nAfter this, you can configure your library to use `http://localhost:5443/` as the API endpoint to reach BigQuery.\n\n### NodeJS\n\n```javascript\nconst bq = new BigQuery({ apiEndpoint: 'localhost:5443' });\n```\n\n### Ruby\n\n```ruby\nbigquery = Google::Cloud::Bigquery.new(endpoint: 'http://localhost:5443/')\n```\n\n### To clear the storage\n\n```bash\ndocker-compose rm -fs postgres \u0026\u0026 docker volume rm -f not-so-bigquery_db-data\n```\n\n## Contributions\n\nContributions greatly appreciated.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbankyadam%2Fnot-so-bigquery","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbankyadam%2Fnot-so-bigquery","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbankyadam%2Fnot-so-bigquery/lists"}