You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by GitBox <gi...@apache.org> on 2022/07/20 02:42:06 UTC

[GitHub] [doris] siriume opened a new issue, #11023: [Bug]

siriume opened a new issue, #11023:
URL: https://github.com/apache/doris/issues/11023

   ### Search before asking
   
   - [X] I had searched in the [issues](https://github.com/apache/incubator-doris/issues?q=is%3Aissue) and found no similar issues.
   
   
   ### Version
   
   master
   
   ### What's Wrong?
   
   Error when creating mysql external table, external table should not have primary key in doris.
   DDL sql like this:
   ```
   CREATE EXTERNAL TABLE `tb_xxx` (
     `id` bigint NOT NULL,
     `name` varchar(255) NOT NULL,
     `status` tinyint NOT NULL DEFAULT '1',
     `remark` string,
     `create_uid` int(10) DEFAULT NULL COMMENT,
     `modify_uid` int(10) DEFAULT NULL COMMENT,
     `ctime` int(10) NOT NULL,
     `mtime` int(10) NOT NULL
   ) ENGINE=ODBC COMMENT 'tb_xxx odbc external table'
   PROPERTIES (
   "odbc_catalog_resource" = "mysql_xx_resource",
   "database" = "xxxx",
   "table" = "tb_xxx"
   );  -- `id`
   ```
   
   Execution failed: Error Failed to execute sql: java.sql.SQLException: (conn=6) errCode = 2, detailMessage = String Type should not be used in key column[remark].
   
   ### What You Expected?
   
   If you replace the text type with the string type, it should succeed when creating the external table.
   
   ### How to Reproduce?
   
   _No response_
   
   ### Anything Else?
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [X] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
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.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] yiguolei closed issue #11023: [Bug] External table should not have primary key in doris.

Posted by GitBox <gi...@apache.org>.
yiguolei closed issue #11023: [Bug] External table should not have primary key in doris.
URL: https://github.com/apache/doris/issues/11023


-- 
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] stalary commented on issue #11023: [Bug]

Posted by GitBox <gi...@apache.org>.
stalary commented on issue #11023:
URL: https://github.com/apache/doris/issues/11023#issuecomment-1189749519

   Please assign to me. @morningman 


-- 
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