You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by "zy-kkk (via GitHub)" <gi...@apache.org> on 2023/05/16 07:17:05 UTC
[GitHub] [doris] zy-kkk opened a new pull request, #19696: [improvement](hana catalog) Adapt to hana's special view
zy-kkk opened a new pull request, #19696:
URL: https://github.com/apache/doris/pull/19696
# Proposed changes
Issue Number: close #xxx
## Problem summary
Describe your changes.
## Checklist(Required)
* [ ] Does it affect the original behavior
* [ ] Has unit tests been added
* [ ] Has document been added or modified
* [ ] Does it need to update dependencies
* [ ] Is this PR support rollback (If NO, please explain WHY)
## Further comments
If this is a relatively large or complex change, kick off the discussion at [dev@doris.apache.org](mailto:dev@doris.apache.org) by explaining why you chose the solution you did and what alternatives you considered, etc...
--
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@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
[GitHub] [doris] github-actions[bot] commented on pull request #19696: [improvement](jdbc catalog) Adapt to hana's special view & Optimize jdbc name format
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #19696:
URL: https://github.com/apache/doris/pull/19696#issuecomment-1549295240
PR approved by anyone and no changes requested.
--
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@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
[GitHub] [doris] morningman commented on pull request #19696: [improvement](jdbc catalog) Adapt to hana's special view & Optimize jdbc name format
Posted by "morningman (via GitHub)" <gi...@apache.org>.
morningman commented on PR #19696:
URL: https://github.com/apache/doris/pull/19696#issuecomment-1549324094
run buildall
--
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@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
[GitHub] [doris] morningman commented on a diff in pull request #19696: [improvement](jdbc catalog) Adapt to hana's special view & Optimize jdbc name format
Posted by "morningman (via GitHub)" <gi...@apache.org>.
morningman commented on code in PR #19696:
URL: https://github.com/apache/doris/pull/19696#discussion_r1194846896
##########
fe/fe-core/src/main/java/org/apache/doris/catalog/OdbcTable.java:
##########
@@ -72,70 +72,36 @@ public class OdbcTable extends Table {
TABLE_TYPE_MAP = Collections.unmodifiableMap(tempMap);
}
- // For different databases, special characters need to be escaped
- private static String mysqlProperName(String name) {
- // In JdbcExternalTable, the name contains databaseName, like: db.table
- // So, we should split db and table, then switch to `db`.`table`.
- List<String> list = Arrays.asList(name.split("\\."));
- return list.stream().map(s -> "`" + s + "`").collect(Collectors.joining("."));
- }
-
- private static String mssqlProperName(String name) {
- // In JdbcExternalTable, the name contains databaseName, like: db.table
- // So, we should split db and table, then switch to [db].[table].
- List<String> list = Arrays.asList(name.split("\\."));
- return list.stream().map(s -> "[" + s + "]").collect(Collectors.joining("."));
- }
-
- private static String psqlProperName(String name) {
- List<String> list = Arrays.asList(name.split("\\."));
- return list.stream().map(s -> "\"" + s + "\"").collect(Collectors.joining("."));
- }
-
- private static String oracleProperName(String name) {
- List<String> list = Arrays.asList(name.split("\\."));
- return list.stream().map(s -> "\"" + s.toUpperCase() + "\"").collect(Collectors.joining("."));
- }
-
- private static String clickhouseProperName(String name) {
- List<String> list = Arrays.asList(name.split("\\."));
- return list.stream().map(s -> "\"" + s + "\"").collect(Collectors.joining("."));
- }
-
- private static String saphanaProperName(String name) {
- List<String> list = Arrays.asList(name.split("\\."));
- return list.stream().map(s -> "\"" + s + "\"").collect(Collectors.joining("."));
- }
-
- private static String trinoProperName(String name) {
- List<String> list = Arrays.asList(name.split("\\."));
- return list.stream().map(s -> "\"" + s + "\"").collect(Collectors.joining("."));
- }
-
- private static String oceanbaseOracleProperName(String name) {
- List<String> list = Arrays.asList(name.split("\\."));
- return list.stream().map(s -> "\"" + s + "\"").collect(Collectors.joining("."));
+ public static String formatName(String name, String wrapStart, String wrapEnd, boolean toUpperCase, boolean toLowerCase) {
Review Comment:
Add comment to this method, better give some example
--
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@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
[GitHub] [doris] github-actions[bot] commented on pull request #19696: [improvement](jdbc catalog) Adapt to hana's special view & Optimize jdbc name format
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #19696:
URL: https://github.com/apache/doris/pull/19696#issuecomment-1549295158
PR approved by at least one committer and no changes requested.
--
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@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
[GitHub] [doris] zy-kkk commented on pull request #19696: [improvement](jdbc catalog) Adapt to hana's special view & Optimize jdbc name format
Posted by "zy-kkk (via GitHub)" <gi...@apache.org>.
zy-kkk commented on PR #19696:
URL: https://github.com/apache/doris/pull/19696#issuecomment-1549359828
run buildall
--
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@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
[GitHub] [doris] morningman merged pull request #19696: [improvement](jdbc catalog) Adapt to hana's special view & Optimize jdbc name format
Posted by "morningman (via GitHub)" <gi...@apache.org>.
morningman merged PR #19696:
URL: https://github.com/apache/doris/pull/19696
--
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@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
[GitHub] [doris] github-actions[bot] commented on pull request #19696: [improvement](jdbc catalog) Adapt to hana's special view & Optimize jdbc name format
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #19696:
URL: https://github.com/apache/doris/pull/19696#issuecomment-1549324863
PR approved by at least one committer and no changes requested.
--
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@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org