{"library":"soda-core-trino","title":"Soda Core Trino","type":"library","description":"Soda Core Trino is an extension of Soda Core that integrates with Trino/Presto databases for data quality testing. It allows users to define and run checks (e.g., missing values, duplicates, schema changes) using SodaCL. Version 3.5.6 is the latest release. Release cadence is irregular, typically following Soda Core releases.","language":"python","status":"active","last_verified":"Fri May 01","install":{"commands":["pip install soda-core-trino"],"cli":{"name":"soda","version":"soda-core, version 3.5.6"}},"imports":["from soda.scan import Scan; # then configure data_source with type: trino"],"auth":{"required":false,"env_vars":[]},"links":{"homepage":"https://www.soda.io","github":null,"docs":null,"changelog":null,"pypi":"https://pypi.org/project/soda-core-trino/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null},"quickstart":{"code":"from soda.scan import Scan\n\nscan = Scan()\nscan.set_scan_definition_name('test')\nscan.set_data_source_name('my_trino')\nscan.add_configuration_yaml_str(f'''\ndata_source my_trino:\n  type: trino\n  host: {os.environ.get('TRINO_HOST', 'localhost')}\n  port: {os.environ.get('TRINO_PORT', '8080')}\n  catalog: {os.environ.get('TRINO_CATALOG', 'tpch')}\n  schema: {os.environ.get('TRINO_SCHEMA', 'sf1')}\n  username: {os.environ.get('TRINO_USER', 'admin')}\n  password: {os.environ.get('TRINO_PASSWORD', '')}\n''')\nscan.add_sodacl_yaml_str('''\nchecks for orders:\n  - row_count > 0\n''')\nscan.execute()\nprint(scan.get_logs_text())","lang":"python","description":"Basic Soda scan against Trino with authentication from environment variables.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}