{"id":20199787,"url":"https://github.com/milenkovicm/lightfusion","last_synced_at":"2026-05-06T04:03:57.522Z","repository":{"id":229369001,"uuid":"776531634","full_name":"milenkovicm/lightfusion","owner":"milenkovicm","description":"LightGBM Inference on Datafusion","archived":false,"fork":false,"pushed_at":"2025-11-20T20:48:35.000Z","size":10293,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-11-20T22:22:16.719Z","etag":null,"topics":["batch-inference","datafusion","inference","lightgbm","machine-learning","rust","sql","udf","userdefined-functions"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/milenkovicm.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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-03-23T19:07:22.000Z","updated_at":"2025-11-20T20:48:32.000Z","dependencies_parsed_at":"2025-03-07T22:28:59.503Z","dependency_job_id":null,"html_url":"https://github.com/milenkovicm/lightfusion","commit_stats":null,"previous_names":["milenkovicm/lightfusion"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/milenkovicm/lightfusion","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/milenkovicm%2Flightfusion","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/milenkovicm%2Flightfusion/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/milenkovicm%2Flightfusion/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/milenkovicm%2Flightfusion/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/milenkovicm","download_url":"https://codeload.github.com/milenkovicm/lightfusion/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/milenkovicm%2Flightfusion/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32677933,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-06T02:33:58.958Z","status":"ssl_error","status_checked_at":"2026-05-06T02:33:39.611Z","response_time":117,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["batch-inference","datafusion","inference","lightgbm","machine-learning","rust","sql","udf","userdefined-functions"],"created_at":"2024-11-14T04:38:51.125Z","updated_at":"2026-05-06T04:03:57.496Z","avatar_url":"https://github.com/milenkovicm.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LightFusion (LightGBM Inference on Datafusion)\n\nLightFusion is an very opinionated [LightGBM](https://lightgbm.readthedocs.io/en/stable/)  datafusion integration, implemented to demonstrate datafusion `FunctionFactory` functionality merge request ([arrow-datafusion/pull#9333](https://github.com/apache/arrow-datafusion/pull/9333)).\n\n\u003e [!NOTE]\n\u003e It has not been envisaged as a actively maintained library.\n\nOther project utilizing `FunctionFactory`:\n\n- [Torchfusion, Opinionated Torch Inference on DataFusion](https://github.com/milenkovicm/torchfusion)\n- [DataFusion JVM User Defined Functions (UDF)](https://github.com/milenkovicm/adhesive)\n\n## How to use\n\nA LightGBM model can be defined as and SQL UDF definition:\n\n```sql\nCREATE FUNCTION f0(DOUBLE[])\nRETURNS DOUBLE[]\nLANGUAGE LIGHTGBM\nAS 'multiclass.lgbm'\n```\n\nand called from sql like:\n\n```sql\nSELECT f0([0.109, 1.261, -0.274, 2.605, 0.472, -0.429, -0.983, 1.000, -0.095, -1.219, -0.369, -0.312,\n        -0.840, 1.281, -0.618, -0.532, -0.132, 0.443, 0.028, 2.201, 0.044, 1.671, 0.660, -0.114,\n        0.574, 0.276, 0.680, -0.670]) as inferred\n```\n\n\u003e [!WARNING]  \n\u003e Model used for tests could probably be way better.\n\n\n## Configuration\n\nFunctionFactor exposes set of configuration options which can be retrieved querying system catalog:\n\n```text\n+------------------------+-------+---------------------------------------------------------------------------+\n| name                   | value | description                                                               |\n+------------------------+-------+---------------------------------------------------------------------------+\n| lightfusion.batch_size | 1     | Batch size to be used. Valid value positive non-zero integers. Default: 1 |\n+------------------------+-------+---------------------------------------------------------------------------+\n```\n\nAvailable configuration options can be changed:\n\n```sql\nSET lightfusion.batch_size = 16\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmilenkovicm%2Flightfusion","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmilenkovicm%2Flightfusion","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmilenkovicm%2Flightfusion/lists"}