FrancescoCastaldi opened a new pull request, #43695:
URL: https://github.com/apache/superset/pull/43695
### Summary
This PR improves Database Engine Specs completeness, fixes AST metadata
linting for newer Python versions, and adds unit test suites for database
engine specs lacking dedicated coverage.
### Key Changes
1. **Tooling & AST Linter (`lint_metadata.py`)**:
- Fixed AST parser to support type-annotated metadata blocks
(`AnnAssign`).
- Added support for `Tuple`, `Set`, and `UnaryOp` evaluation.
- Added UTF-8 encoding support for cross-platform execution.
2. **Metadata Coverage**:
- Reached 100% required field completeness across all 80 engine specs.
- Added complete metadata schemas to Odps, IBMi, ClickHouse (legacy),
OpenDistro, Kusto, Databricks (Hive, ODBC, Native), Aurora (MySQL, Postgres),
Arc, Parseable, and Ocient specs.
3. **Unit Test Suites**:
- Added dedicated unit tests in `tests/unit_tests/db_engine_specs/` for
22 dialects (including Cloudflare D1, Arc, IBM i, Parseable, Ocient,
MaxCompute/ODPS, Hologres, Ascend, IoTDB, Exasol, MonetDB, Solr, RisingWave,
Phoenix, Netezza, Greenplum, YugabyteDB, Shillelagh, Teradata, Vertica, Spark
SQL, and Superset meta DB).
### Testing Instructions
- Run `python superset/db_engine_specs/lint_metadata.py`
- Run unit tests under `tests/unit_tests/db_engine_specs/`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]