-
Notifications
You must be signed in to change notification settings - Fork 280
添加ClickHouse sql脚本 #13
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
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
感谢贡献,赞~
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
文件格式,和mysql的目录结构一样:
脚本在ClickHouse文件夹下,并包含single文件夹(存储每个表的sql脚本),外面一个sys.sql 存储总的脚本、
脚本由mysql中的数据转换而来。修改规则如下:
1.修改引擎为 MergeTree ,官方主推
2.CliskHouse String类型,字符串可以是任意长度的。它可以包含任意的字节集,包含空字节。ClickHouse字符串类型可以代替其他 DBMSs 中的VARCHAR、BLOB、CLOB 等类型
3.对关键字细节定义进行了修改。替换的内容为ClikHouse 不支持的定义方式,并替换为ClickHouse支持的格式。
经过导入,并测试后,没有发现问题,符合官方文档的要求。
参考官方文档:https://clickhouse.tech/docs/en/getting-started/tutorial/