Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CREATE SPACE error in example comment #63

Closed
liuxiaocs7 opened this issue Jul 11, 2022 · 0 comments · Fixed by #71
Closed

CREATE SPACE error in example comment #63

liuxiaocs7 opened this issue Jul 11, 2022 · 0 comments · Fixed by #71

Comments

@liuxiaocs7
Copy link
Contributor

In example/FlinkConnectorExample.java and example/FlinkConnectorSourceExample.java, the CREATE SPACE statement in comment is

CREATE SPACE `flinkSink` (partition_num = 100, replica_factor = 3, charset = utf8, collate = utf8_bin, vid_type = INT64, atomic_edge = false) ON default

when i execute the above statement using nebula console, the result is:

Snipaste_2022-07-05_13-03-32

The version of nebula is 3.1.0 and is deployed by Docker.
Also i can't find the corresponding parameter description on the doc.

Should we remove on default, it seems works fine after that just as below.

(root@nebula) [(none)]> CREATE SPACE `tt` (partition_num = 100, replica_factor = 3, charset = utf8, collate = utf8_bin, vid_type = INT64, atomic_edge = false) ON default
[ERROR (-1009)]: SemanticError: Create space with zone is unsupported

Mon, 11 Jul 2022 18:26:25 CST

(root@nebula) [(none)]> CREATE SPACE `tt` (partition_num = 100, replica_factor = 3, charset = utf8, collate = utf8_bin, vid_type = INT64, atomic_edge = false)
Execution succeeded (time spent 19188/19153 us)

Mon, 11 Jul 2022 18:26:29 CST

(root@nebula) [(none)]> SHOW CREATE SPACE `tt`
+-------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Space | Create Space
                                                          |
+-------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| "tt"  | "CREATE SPACE `tt` (partition_num = 100, replica_factor = 3, charset = utf8, collate = utf8_bin, vid_type = INT64, atomic_edge = false) ON default_zone_172.28.2.1_9779,default_zone_172.28.2.2_9779,default_zone_172.28.2.3_9779" |
+-------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
Got 1 rows (time spent 732/1513 us)

Mon, 11 Jul 2022 18:26:46 CST
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant