-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Extract common JDBC configurations into their own fragment #8643
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
docs/src/main/sphinx/connector/jdbc-common-configurations.fragment
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| General configuration properties | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
|
|
||
|
hashhar marked this conversation as resolved.
Outdated
|
||
| The following table describes general configuration properties for the | ||
| connector: | ||
|
|
||
| .. list-table:: | ||
| :widths: 30, 40, 30 | ||
| :header-rows: 1 | ||
|
|
||
| * - Property name | ||
| - Description | ||
| - Default value | ||
| * - ``case-insensitive-name-matching`` | ||
| - Support case insensitive database and collection names | ||
|
hashhar marked this conversation as resolved.
Outdated
|
||
| - False | ||
| * - ``case-insensitive-name-matching.cache-ttl`` | ||
| - | ||
| - 1 minute | ||
| * - ``metadata.cache-ttl`` | ||
| - Duration for which metadata, including table and column statistics, is | ||
| cached | ||
|
hashhar marked this conversation as resolved.
Outdated
|
||
| - 0 (disabled caching) | ||
| * - ``metadata.cache-missing`` | ||
| - Cache the fact that metadata, including table and column statistics, is | ||
| not available | ||
|
hashhar marked this conversation as resolved.
Outdated
|
||
| - False | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -44,10 +44,7 @@ For HBase 2.x and Phoenix 5.x (5.1.0 or later) use: | |
|
|
||
| connector.name=phoenix5 | ||
|
|
||
| Configuration properties | ||
| ------------------------ | ||
|
|
||
| The following configuration properties are available: | ||
| The following Phoenix-specific configuration properties are available: | ||
|
|
||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'd rephrase to remove "are available" it sounds awkward. I'd recommend something like:
|
||
| ================================================== ========== =================================================================================== | ||
| Property Name Required Description | ||
|
|
@@ -61,6 +58,8 @@ Property Name Required Description | |
| connection properties. These files must exist on the machines running Trino. | ||
| ================================================== ========== =================================================================================== | ||
|
|
||
| .. include:: jdbc-common-configurations.fragment | ||
|
hashhar marked this conversation as resolved.
Outdated
|
||
|
|
||
| Querying Phoenix tables | ||
| ------------------------- | ||
|
|
||
|
|
@@ -87,8 +86,10 @@ Finally, you can access the ``clicks`` table in the ``web`` schema:: | |
| If you used a different name for your catalog properties file, use | ||
| that catalog name instead of ``phoenix`` in the above examples. | ||
|
|
||
| Data types | ||
| ---------- | ||
| .. _phoenix-type-mapping: | ||
|
|
||
| Type mapping | ||
| ------------ | ||
|
|
||
| The data type mappings are as follows: | ||
|
|
||
|
|
@@ -116,6 +117,7 @@ variable length ``VARBINARY`` data type. There is no way to create a | |
| Phoenix table in Trino that uses the ``BINARY`` data type, as Trino | ||
| does not have an equivalent type. | ||
|
|
||
| .. include:: jdbc-type-mapping.fragment | ||
|
|
||
| Table properties - Phoenix | ||
| -------------------------- | ||
|
|
@@ -182,4 +184,4 @@ Property Name Default Value Description | |
| SQL support | ||
| ----------- | ||
|
|
||
| .. include:: sql-delete-limitation.fragment | ||
| .. include:: sql-delete-limitation.fragment | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CREATE TABLEThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pre-existing. Noted down, will fix in a later change. I'd like to keep this PR isolated to just mechanical splitting of things without changing unrelated things.