{"id":19745191,"url":"https://github.com/castle/avro-filter","last_synced_at":"2026-02-03T15:34:34.318Z","repository":{"id":137328814,"uuid":"67195356","full_name":"castle/avro-filter","owner":"castle","description":"Tool for selecting records from Avro files using a filter","archived":false,"fork":false,"pushed_at":"2016-09-07T16:31:26.000Z","size":5,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":12,"default_branch":"master","last_synced_at":"2025-06-23T16:40:11.420Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Scala","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/castle.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":"2016-09-02T06:13:51.000Z","updated_at":"2022-04-25T22:00:38.000Z","dependencies_parsed_at":null,"dependency_job_id":"c0c32c5e-21f8-40f2-b3c4-4f5f5f638a34","html_url":"https://github.com/castle/avro-filter","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/castle/avro-filter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/castle%2Favro-filter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/castle%2Favro-filter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/castle%2Favro-filter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/castle%2Favro-filter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/castle","download_url":"https://codeload.github.com/castle/avro-filter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/castle%2Favro-filter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29047934,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-03T15:19:55.533Z","status":"ssl_error","status_checked_at":"2026-02-03T15:13:09.723Z","response_time":96,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":[],"created_at":"2024-11-12T02:04:52.828Z","updated_at":"2026-02-03T15:34:34.307Z","avatar_url":"https://github.com/castle.png","language":"Scala","funding_links":[],"categories":[],"sub_categories":[],"readme":"## avro-filter\n\nReads Avro files and writes all records that matches a filter expression to a new Avro file\n\nFilters are specified using the `-f` parameter, eg.\n\n```bash\njava -jar avro-filter.jar -o out.avro -f user_id=1,status=failed transactions.avro\n```\n\n```bash\n$ java -jar avro-filter.jar --help\navro-filter 0.1\nUsage: avro-filter [options] \u003cfiles\u003e...\n\n  -f, --filter k1=v1,k2=v2...\n                           filter expression, eg. user_id=1\n  -o, --out \u003cfile\u003e         output file\n  -s, --schema \u003cfile\u003e      optional schema to use when reading\n  --help                   prints this usage text\n  \u003cfiles\u003e...               input file(s)\n```\n\n\n## TODO\n\n- [ ] Handle multiple input files\n- [ ] Split output file in configurable chunks (max size)\n- [ ] Configurable compression options\n\n## Development\n\nrun with\n\n```bash\nsbt \"run -o out.avro -f user_id=1 -s schema.avro input.avro\"\n```\n\n## Build\n\nBuild a JAR containg all dependencies\n```bash\nsbt assembly\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcastle%2Favro-filter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcastle%2Favro-filter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcastle%2Favro-filter/lists"}