{"id":17118181,"url":"https://github.com/stepfenshawn/predato-rs","last_synced_at":"2025-03-24T01:44:13.623Z","repository":{"id":246632402,"uuid":"815397425","full_name":"StepfenShawn/Predato-rs","owner":"StepfenShawn","description":"A tiny but blazing fast distributed computation engine in rust. [wip]","archived":false,"fork":false,"pushed_at":"2024-09-24T06:45:47.000Z","size":26,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-29T08:11:53.373Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/StepfenShawn.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2024-06-15T03:45:30.000Z","updated_at":"2024-10-13T07:25:25.000Z","dependencies_parsed_at":"2024-06-29T08:49:47.560Z","dependency_job_id":"faf65098-6a96-4812-9070-28465fdf893d","html_url":"https://github.com/StepfenShawn/Predato-rs","commit_stats":null,"previous_names":["stepfenshawn/predato-rs"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StepfenShawn%2FPredato-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StepfenShawn%2FPredato-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StepfenShawn%2FPredato-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StepfenShawn%2FPredato-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/StepfenShawn","download_url":"https://codeload.github.com/StepfenShawn/Predato-rs/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245195908,"owners_count":20575936,"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":[],"created_at":"2024-10-14T17:53:43.865Z","updated_at":"2025-03-24T01:44:13.596Z","avatar_url":"https://github.com/StepfenShawn.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Predato-rs[WIP]\nA tiny but blazing fast distributed computation engine in rust. \n\n# TODO Features\n* distributed computation\n* column-based\n* vectorized query\n* streaming batch\n* llvm-jit query runtime\n\n# Dataframe Expression API\n```rust\nlet ctx = Context::new();\nlet mut lhs = ctx.read.format(\"csv\").load(\"a.csv\")?;\nlet mut rhs = ctx.read.format(\"csv\").load(\"a.csv\")?;\n\nlhs = lhs.with_expr((\n    case(col(\"*\"))\n    | (col(\"l1\") \u003e col(\"l2\")) \u003e\u003e= (lit(1))\n    | (col(\"l2\") \u003c col(\"l3\")) \u003e\u003e= (lit(3))\n    | otherwise \u003e\u003e= lit(2)\n).as_col(\"res1\"))\n\nlhs = lhs.with_exprs([\n    (col(\"l1\") + col(\"l2\")).as_col(\"sum_12\"),\n    col(*).sum().as_col(\"all_sum\")\n])\n\n// Filter\nlhs /= (col(\"l1\") \u003e 0)\n// Or\nlhs = lhs.filter(col(\"l1\") \u003e 0)\n\n// Join\nrhs = rhs.join(lhs, how: JoinType::Left)\n         .left_on(\u0026[col(\"l1\"), col(\"l2\")])\n         .right_on(\u0026[col(\"l1\"), col(\"l2\")]);\n\n// Group By\nrhs = rhs.group_by(keys: \u0026[col(\"l1\"), col(\"l2\")])\n         .fmap(|\u0026chunk| {chunk})\n\npipe!{rhs, show . collect . select([col(\"l1\"), col(\"l2\"), col(\"l3\")])}\n// Or\nrhs.select([col(\"l1\"), col(\"l2\"), col(\"l3\")])\n   .collect()\n   .show();\n```\n\n\n# test\n```\ncargo test -r\n```\n\n# benchmarks\nwip","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstepfenshawn%2Fpredato-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstepfenshawn%2Fpredato-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstepfenshawn%2Fpredato-rs/lists"}