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/18 08:48:06 UTC
[GitHub] [doris] zy-kkk opened a new pull request, #19809: [improvement](jdbc catalog) Add adaptation to Oracle special character `/` table names
zy-kkk opened a new pull request, #19809:
URL: https://github.com/apache/doris/pull/19809
# Proposed changes
Issue Number: close #xxx
## Problem summary
在Oracle数据库中,我们可以创建带有 `/` 字符的表名,正常情况下我们需要加双引号来适配,但是在java的Metadata database中,加双引号是无效的,所以这里我做了模糊匹配,经过测试是可以的
```sql
mysql> show tables;
+----------------------+
| Tables_in_DORIS_TEST |
+----------------------+
| /AFS/MARM |
| STUDENT |
| TEST_CHAR |
| TEST_DATE |
| TEST_INSERT |
| TEST_INT |
| TEST_NUM |
| TEST_NUMBER |
| TEST_NUMBER2 |
| TEST_NUMBER3 |
| TEST_NUMBER4 |
| TEST_RAW |
| TEST_TIMESTAMP |
+----------------------+
13 rows in set (0.01 sec)
mysql> select * from `/AFS/MARM`;
Empty set (0.36 sec)
mysql> desc `/AFS/MARM`;
+----------+------------------+------+------+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+----------+------------------+------+------+---------+-------+
| MANDT | TEXT | No | true | NULL | |
| MATNR | TEXT | No | true | NULL | |
| MEINH | TEXT | No | true | NULL | |
| J_3ASIZE | TEXT | No | true | NULL | |
| J_4KSCAT | TEXT | No | true | NULL | |
| VOLUM | DECIMALV3(13, 3) | No | true | NULL | |
| BRGEW | DECIMALV3(13, 3) | No | true | NULL | |
| NTGEW | DECIMALV3(13, 3) | No | true | NULL | |
| REFDIM | TEXT | No | true | NULL | |
| ZZYYBM | TEXT | No | true | NULL | |
| ZZBDBM | TEXT | No | true | NULL | |
| ZZSSRQ | TEXT | No | true | NULL | |
| YYLZD1 | TEXT | No | true | NULL | |
| YYLZD2 | TEXT | No | true | NULL | |
| YYLZD3 | TEXT | No | true | NULL | |
| YYLZD4 | TEXT | No | true | NULL | |
| YYLZD5 | TEXT | No | true | NULL | |
| ZZXZBM | TEXT | No | true | NULL | |
+----------+------------------+------+------+---------+-------+
18 rows in set (0.04 sec)
```
## 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] zy-kkk commented on pull request #19809: [improvement](jdbc catalog) Add adaptation to Oracle special character `/` table names
Posted by "zy-kkk (via GitHub)" <gi...@apache.org>.
zy-kkk commented on PR #19809:
URL: https://github.com/apache/doris/pull/19809#issuecomment-1552762290
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] zy-kkk commented on pull request #19809: [improvement](jdbc catalog) Add adaptation to Oracle special character `/` table names
Posted by "zy-kkk (via GitHub)" <gi...@apache.org>.
zy-kkk commented on PR #19809:
URL: https://github.com/apache/doris/pull/19809#issuecomment-1552745962
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 #19809: [improvement](jdbc catalog) Add adaptation to Oracle special character `/` table names
Posted by "morningman (via GitHub)" <gi...@apache.org>.
morningman merged PR #19809:
URL: https://github.com/apache/doris/pull/19809
--
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