1

We are using below query to add the table in the starrocks: -

CREATE DATABASE IF NOT EXISTS `DataSync`;
CREATE TABLE IF NOT EXISTS `DataSync`.`Person` (
 `PersonID` INT NOT NULL COMMENT "",
 `RegistrationNumber` INT NOT NULL COMMENT ""
) ENGINE=olap
PRIMARY KEY(`PersonID`)
COMMENT ""
DISTRIBUTED BY HASH(`PersonID`) BUCKETS 1
PROPERTIES (
 "replication_num" = "3"
);

getting this error - ERROR 1064 (42000) at line 3: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'PRIMARY KEY(PersonID) COMMENT "" DISTRIBUTED BY HASH(PersonID) BUCKETS 1 PRO' at line 5

We changed the table columns and also add and removing the backtick sign but it didn't work.

We are using flink-connector-starrocks1.2.3_flink-1.14_2.11 and flink-1.14.5

1
  • I did not get any errors when I ran this. I'm running StarRocks 3.1 Commented Nov 7, 2023 at 2:08

0

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.