[#7469] improvement(trino-connector): Support catalog configuration directly pass through#7562
Conversation
diqiu50
left a comment
There was a problem hiding this comment.
After reviewing the code, I believe we can remove the original logic in the catalog that maps trino.bypass keys using the TRINO_KEY_TO_GRAVITINO_KEY map. Instead, we can adopt the current trino.bypass.direct. mechanism to handle such configurations.
okk, I will make adjustments later! That makes the implementation more concise and user-friendly. |
…tion directly pass through
b21cd5d to
a4eb2e7
Compare
|
It's a really great refactoring, and no obvious problem was found. @diqiu50 , Could you also take time to take a look? |
…tion directly pass through (apache#7562) ### What changes were proposed in this pull request? Support directly pass catalog configuration to the Gravitino catalog in the Trino runtime ### Why are the changes needed? PropertyConverter will skip property which not in `PropertyConverter#engineToGravitinoMapping`, it increases coupling with Trino. We will remove the original logic in the catalog that maps `trino.bypass.` keys using the TRINO_KEY_TO_GRAVITINO_KEY map. Only remove the `trino.bypass.` prefix from the configuration key and directly pass it through. FIx: apache#7469 ### Does this PR introduce _any_ user-facing change? no ### How was this patch tested? local tests
…tion directly pass through (apache#7562) ### What changes were proposed in this pull request? Support directly pass catalog configuration to the Gravitino catalog in the Trino runtime ### Why are the changes needed? PropertyConverter will skip property which not in `PropertyConverter#engineToGravitinoMapping`, it increases coupling with Trino. We will remove the original logic in the catalog that maps `trino.bypass.` keys using the TRINO_KEY_TO_GRAVITINO_KEY map. Only remove the `trino.bypass.` prefix from the configuration key and directly pass it through. FIx: apache#7469 ### Does this PR introduce _any_ user-facing change? no ### How was this patch tested? local tests
…tion directly pass through (apache#7562) ### What changes were proposed in this pull request? Support directly pass catalog configuration to the Gravitino catalog in the Trino runtime ### Why are the changes needed? PropertyConverter will skip property which not in `PropertyConverter#engineToGravitinoMapping`, it increases coupling with Trino. We will remove the original logic in the catalog that maps `trino.bypass.` keys using the TRINO_KEY_TO_GRAVITINO_KEY map. Only remove the `trino.bypass.` prefix from the configuration key and directly pass it through. FIx: apache#7469 ### Does this PR introduce _any_ user-facing change? no ### How was this patch tested? local tests
What changes were proposed in this pull request?
Support directly pass catalog configuration to the Gravitino catalog in the Trino runtime
Why are the changes needed?
PropertyConverter will skip property which not in
PropertyConverter#engineToGravitinoMapping, it increases coupling with Trino. We will remove the original logic in the catalog that mapstrino.bypass.keys using the TRINO_KEY_TO_GRAVITINO_KEY map. Only remove thetrino.bypass.prefix from the configuration key and directly pass it through.FIx: #7469
Does this PR introduce any user-facing change?
no
How was this patch tested?
local tests