PiotrAndrzejewsky opened a new pull request, #14637:
URL: https://github.com/apache/gravitino/pull/14637
### What changes were proposed in this pull request?
This PR adds unit and integration tests and user
documentation for View CRUD operations in the python relational catalog:
- **Documentation**:
- Updated `docs/manage-view-metadata-using-gravitino.md` with examples
for creating, loading, altering, dropping, and listing views.
- Updated `docs/how-to-use-python-client.md` to reference the view
management capabilities and link to the guide.
- **Unit Tests**:
- Added unit test coverage in
`tests/unittests/test_relational_catalog.py` matching
`TestRelationalCatalogView.java` (create, load, list, drop, and alter
operations including rename, set property, remove property, and replace view).
- **Integration Tests**:
- Added integration tests in
`tests/integration/test_relational_catalog.py` for view rename and replace
operations.
- **Client Validation**:
- Added `_check_full_schema_namespace` in `RelationalCatalog` to
validate 3-level schema namespaces (`metalake.catalog.schema`) when formatting
table and view REST request paths. This check is already present in java-client
### Why are the changes needed?
To increase test coverage and add missing documentation after implementing
the core functionality here #11947
Fixes #11008
### Does this PR introduce _any_ user-facing change?
No API change, only changes in documentation, to reflect actual code
### How was this patch tested?
- **Unit tests**: Passed all Python client unit tests (1,429 tests):
` ./gradlew :clients:client-python:test -PskipITs`
- Integration tests: Passed relational catalog integration tests against a
live Gravitino server and Hive container:
`./gradlew :clients:client-python:integrationTest
-PskipDockerTests=false`
--
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]