{"id":19876756,"url":"https://github.com/lewuathe/tiny-presto","last_synced_at":"2025-08-25T01:33:58.943Z","repository":{"id":47370473,"uuid":"233816933","full_name":"Lewuathe/tiny-presto","owner":"Lewuathe","description":"Lightweight Presto pluster for verifying query result consistency","archived":false,"fork":false,"pushed_at":"2024-12-17T07:03:14.000Z","size":31,"stargazers_count":3,"open_issues_count":0,"forks_count":5,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-29T16:12:54.512Z","etag":null,"topics":["docker","presto","sql"],"latest_commit_sha":null,"homepage":"https://rubygems.org/gems/tiny-presto","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Lewuathe.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,"zenodo":null}},"created_at":"2020-01-14T10:34:09.000Z","updated_at":"2022-05-12T14:57:11.000Z","dependencies_parsed_at":"2024-11-12T16:37:15.265Z","dependency_job_id":"187ebd5b-5420-41e1-80ac-c38ee93bb34b","html_url":"https://github.com/Lewuathe/tiny-presto","commit_stats":{"total_commits":33,"total_committers":5,"mean_commits":6.6,"dds":"0.48484848484848486","last_synced_commit":"597d324e6e42eb8ecdc5a8ac6e0cc814f79ff9df"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/Lewuathe/tiny-presto","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lewuathe%2Ftiny-presto","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lewuathe%2Ftiny-presto/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lewuathe%2Ftiny-presto/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lewuathe%2Ftiny-presto/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Lewuathe","download_url":"https://codeload.github.com/Lewuathe/tiny-presto/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lewuathe%2Ftiny-presto/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271991237,"owners_count":24854735,"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","status":"online","status_checked_at":"2025-08-24T02:00:11.135Z","response_time":111,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["docker","presto","sql"],"created_at":"2024-11-12T16:34:07.992Z","updated_at":"2025-08-25T01:33:58.936Z","avatar_url":"https://github.com/Lewuathe.png","language":"Ruby","readme":"# tiny-presto [![Run unit tests](https://github.com/Lewuathe/tiny-presto/actions/workflows/ruby.yml/badge.svg)](https://github.com/Lewuathe/tiny-presto/actions/workflows/ruby.yml) ![Gem](https://img.shields.io/gem/v/tiny-presto) ![Gem](https://img.shields.io/gem/dt/tiny-presto)\n\nTiny [Trino](https://trino.io/) cluster to check the compatibility of query result by using the specific Trino version.\n\n**NOTE: The brand name of [Presto was migrated to Trino](https://trino.io/blog/2020/12/27/announcing-trino.html). Although the internal docker image used in tiny-presto was also migrated to [Trino](https://hub.docker.com/r/trinodb/trino), we keep the package name `tiny-presto` to avoid the installation trouble.**\n\n# Install\n\n```\n$ gem install tiny-presto\n```\n\n# Prerequisites\n\ntiny-presto uses Docker to run single node Presto cluster. Please ensure to install the Docker engine properly in advance.\n\nSee [Docker Engine overview](https://docs.docker.com/install/)\n\n# Usage\n\nYou can run the query easily as follows.\n\n```ruby\nrows = TinyPresto.run('show schemas')\n# =\u003e [[\"default\"], [\"information_schema\"]]\n```\n\nAs tiny-presto uses the memory connector as default, it is also possible to create a table.\n\n```ruby\nTinyPresto.run(\"create table ctas1 as select * from (values (1, 'a'), (2, 'b')) t(c1, c2)\")\nrows = TinyPresto.run(\"select * from ctas1\")\n# =\u003e [[1, 'a'], [2, 'b']]\n```\n\nTo check the result consistency, `verify` method is available.\n\n```ruby\nresult = TinyPresto.verify('show schemas', [[\"default\"], [\"information_schema\"]])\n# result is true if the returned value by the query matched with the given expected result.\n```\n\nTo ensure to delete the tiny-presto cluster, make sure to call `ensure_stop` before exiting.\n\n```ruby\nTinyPresto.ensure_stop\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flewuathe%2Ftiny-presto","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flewuathe%2Ftiny-presto","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flewuathe%2Ftiny-presto/lists"}