xxsc0529 opened a new issue, #9056:
URL: https://github.com/apache/seatunnel/issues/9056

   ### Search before asking
   
   - [x] I had searched in the 
[issues](https://github.com/apache/seatunnel/issues?q=is%3Aissue+label%3A%22bug%22)
 and found no similar issues.
   
   
   ### What happened
   
   ConstraintType class add VECTOR_INDEX_KEY enum,The error is reported in the 
buildConstrainKeySql method of OceanBaseMysqlCreateTableSqlBuilder. Currently, 
the vector index supported by oceanbase is very limited. It is not a good 
solution to not add an index under a large amount of data. Here is an appendix 
to a default index implementation.
   
   ### SeaTunnel Version
   
   all version
   
   ### SeaTunnel Config
   
   ```conf
   env {
     parallelism = 1
     job.mode = "BATCH"
     checkpoint.interval = 5000
   }
   
   source {
     Milvus {
       url = "http://ip:port";
       token = "root:Milvus"
       database = "default"
       collection="test"
     }
   }
   
   transform {
   }
   sink {
       jdbc {
           url = "jdbc:oceanbase://ip:port/db"
           driver = "com.oceanbase.jdbc.Driver"
           user = "user"
           password = "password"
           compatible_mode = "mysql"
           generate_sink_sql = true
           database = db
           table = test
       }
   }
   ```
   
   ### Running Command
   
   ```shell
   bin/seatunnel.sh --config conf/jdbc_milvus_to_oceanbase.conf -e local
   ```
   
   ### Error Exception
   
   ```log
   Caused by: java.lang.UnsupportedOperationException: Unsupported constraint 
type: VECTOR_INDEX_KEY
        at 
org.apache.seatunnel.connectors.seatunnel.jdbc.catalog.oceanbase.OceanBaseMysqlCreateTableSqlBuilder.buildConstraintKeySql(OceanBaseMysqlCreateTableSqlBuilder.java:269)
        at 
org.apache.seatunnel.connectors.seatunnel.jdbc.catalog.oceanbase.OceanBaseMysqlCreateTableSqlBuilder.buildColumnsIdentifySql(OceanBaseMysqlCreateTableSqlBuilder.java:173)
        at 
org.apache.seatunnel.connectors.seatunnel.jdbc.catalog.oceanbase.OceanBaseMysqlCreateTableSqlBuilder.build(OceanBaseMysqlCreateTableSqlBuilder.java:143)
        at 
org.apache.seatunnel.connectors.seatunnel.jdbc.catalog.oceanbase.OceanBaseMySqlCatalog.getCreateTableSql(OceanBaseMySqlCatalog.java:186)
        at 
org.apache.seatunnel.connectors.seatunnel.jdbc.catalog.AbstractJdbcCatalog.getCreateTableSqls(AbstractJdbcCatalog.java:442)
        at 
org.apache.seatunnel.connectors.seatunnel.jdbc.catalog.AbstractJdbcCatalog.createTableInternal(AbstractJdbcCatalog.java:450)
        ... 28 more
   
        at 
org.apache.seatunnel.engine.server.CoordinatorService.lambda$submitJob$6(CoordinatorService.java:656)
        at org.apache.seatunnel.api.tracing.MDCRunnable.run(MDCRunnable.java:43)
        at 
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        at java.lang.Thread.run(Thread.java:750)
   ```
   
   ### Zeta or Flink or Spark Version
   
   无
   
   ### Java or Scala Version
   
   _No response_
   
   ### Screenshots
   
   
![Image](https://github.com/user-attachments/assets/f8b28390-fef5-4aa9-9773-1a49b349f9b0)
   
   ### 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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to