You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@gravitino.apache.org by "dcarpentiero (via GitHub)" <gi...@apache.org> on 2025/08/29 10:05:59 UTC
[PR] feat: thrown a TrinoException if catalog-backend is missing #1 [gravitino]
dcarpentiero opened a new pull request, #8360:
URL: https://github.com/apache/gravitino/pull/8360
Title: [#8308] fix(iceberg): throw TrinoException when `catalog-backend` is missing
### What changes were proposed in this pull request?
- Add an explicit check for a missing `catalog-backend` in `gravitinoToEngineProperties(...)` and throw a `TrinoException` with `GravitinoErrorCode.GRAVITINO_MISSING_REQUIRED_PROPERTY`.
- Keep existing backend property validators unchanged.
- No other functional changes.
### Why are the changes needed?
- Prevent a potential `NullPointerException` when switching on a `null` backend.
- Align behavior with existing code paths and the review request.
Fixes: #8308
### Does this PR introduce any user-facing change?
- No breaking changes.
- Users now receive a clear error when the required `catalog-backend` property is missing.
### How was this patch tested?
- Existing tests pass.
- Added/updated a unit test asserting that a `TrinoException` is thrown when `catalog-backend` is absent.
- Manual verification of error message and code.
Files touched:
- `trino-connector/trino-connector/src/main/java/org/apache/gravitino/trino/connector/catalog/iceberg/IcebergCatalogPropertyConverter.java`
--
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: commits-unsubscribe@gravitino.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] feat: thrown a TrinoException if catalog-backend is missing #1 [gravitino]
Posted by "justinmclean (via GitHub)" <gi...@apache.org>.
justinmclean commented on PR #8360:
URL: https://github.com/apache/gravitino/pull/8360#issuecomment-3238497638
We use Spotless to format code. The CI is failing because of that. You'll need to run `./gradlew :trino-connector:trino-connector:spotlessApply` and push teh changes to correct this.
--
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: commits-unsubscribe@gravitino.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] feat: thrown a TrinoException if catalog-backend is missing #1 [gravitino]
Posted by "diqiu50 (via GitHub)" <gi...@apache.org>.
diqiu50 commented on PR #8360:
URL: https://github.com/apache/gravitino/pull/8360#issuecomment-3241082708
LGTM, Please fix the ci error.
--
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: commits-unsubscribe@gravitino.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] feat: thrown a TrinoException if catalog-backend is missing #1 [gravitino]
Posted by "diqiu50 (via GitHub)" <gi...@apache.org>.
diqiu50 merged PR #8360:
URL: https://github.com/apache/gravitino/pull/8360
--
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: commits-unsubscribe@gravitino.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org