{"id":31939754,"url":"https://github.com/alibaba/rsqldb","last_synced_at":"2025-10-14T08:46:12.191Z","repository":{"id":37036629,"uuid":"416581965","full_name":"alibaba/rsqldb","owner":"alibaba","description":null,"archived":false,"fork":false,"pushed_at":"2024-01-21T08:52:40.000Z","size":52297,"stargazers_count":61,"open_issues_count":1,"forks_count":23,"subscribers_count":9,"default_branch":"main","last_synced_at":"2025-05-11T17:37:24.167Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","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/alibaba.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}},"created_at":"2021-10-13T03:56:43.000Z","updated_at":"2025-03-31T03:35:13.000Z","dependencies_parsed_at":"2023-02-15T14:01:11.525Z","dependency_job_id":null,"html_url":"https://github.com/alibaba/rsqldb","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/alibaba/rsqldb","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alibaba%2Frsqldb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alibaba%2Frsqldb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alibaba%2Frsqldb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alibaba%2Frsqldb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alibaba","download_url":"https://codeload.github.com/alibaba/rsqldb/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alibaba%2Frsqldb/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279018299,"owners_count":26086345,"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-10-14T02:00:06.444Z","response_time":60,"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":[],"created_at":"2025-10-14T08:46:07.246Z","updated_at":"2025-10-14T08:46:12.186Z","avatar_url":"https://github.com/alibaba.png","language":"Java","funding_links":[],"categories":["数据库"],"sub_categories":[],"readme":"## RSQLDB\n\nThe database build for stream processing.\n\n\n## Overview\n\nRSQLDB is a database for stream processing build on the of RocketMQ. It is distributed, highly available，scalable. SQL can be used to define a stream processing task, and\nRSQLDB parse it into a stream-processing task. RSQLDB offers the fellow core features:\n\n- Restful API - create, query, stop, stream-processing tasks;\n- Standard SQL - describe the stream processing task with standard sql;\n- Materialized views - incremental calculation on the of stream;\n\n\n## Deploy\n\n### Run RocketMQ 5.0 locally\n\nSteps are as follows:\n- **Install Java**\n\n- **Download RocketMQ**\n\n- **Start NameServer**\n\n- **Start Broker**\n\nMore details can be obtained at [quick start](https://rocketmq.apache.org/zh/docs/quickStart/02quickstart);\n\n\n### Run RSQLDB\n\n#### From source code:\n\n- Git clone and compile\n```shell\ngit clone git@github.com:alibaba/rsqldb.git\n\n#compile antlr4 file to source code:\nmvn clean compile -DskipTests\n```\n* Run the entrance method:\n```java\n  com.alibaba.rsqldb.rest.Application\n````\n\n#### From distribution package\n- Download distribution package\n- Unzip package\n```shell\nunzip rsqldb-distribution.zip\n```\n- Start rsqldb\n```shell\ncd rsqldb \u0026\u0026 sh bin/start.sh\n```\n\n## Use Cases and Examples\n\n### Filter\n\n```shell\nselect *\nfrom sourceTable where age\u003e20 and name like '%mack';\n```\n\n\n### Join\n\n```shell\nSELECT Websites.name as `count`, Websites.url as url, SUM(access_log.count) AS nums \nFROM access_log \nWHERE access_log.`count` \u003e 100\nINNER JOIN Websites ON access_log.site_id=Websites.id and access_log.url=Websites.url\n```\n\n### Window\n\n```sql\nselect \nTUMBLE_START(ts, INTERVAL '5' SECOND)       AS window_start,\nTUMBLE_END(ts, INTERVAL '5' SECOND)         AS window_end,\nposition                                    AS position,\nsum(num)                                    AS sumNum\nfrom  sourceTable\nwhere num \u003e 5\ngroup by TUMBLE(ts, INTERVAL '5' SECOND), position\nhaving sum(num) \u003c 20;\n```\n\n- More examples can be found [here](docs/sql_example.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falibaba%2Frsqldb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falibaba%2Frsqldb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falibaba%2Frsqldb/lists"}