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

docs: fix date and time type #2254

Merged
merged 2 commits into from
Aug 1, 2022

Conversation

vagetablechicken
Copy link
Collaborator

Closes #2172

@github-actions github-actions bot added the documentation Improvements or additions to documentation label Jul 27, 2022
@lumianph
Copy link
Collaborator

@michelle-qinqin
you may also take a look


每个时间类型有一个有效值范围和一个NULL值,当指定不合法不能表示的值时使用NULL值。

| 类型 | 大小 (bytes) | 范围 | 格式 | 用途 |
| :-------- | :----------- | :----------------------------------------------------------- | :-------------- | :----------------------- |
| DATE | 4 | 1900-01-01 ~ | YYYY-MM-DD | 日期值 |
| TIMESTAMP | 8 | 1970-01-01 00:00:00/2038结束时间是第 **2147483647** 秒,北京时间 **2038-1-19 11:14:07**,格林尼治时间 2038年1月19日 凌晨 03:14:07 | YYYYMMDD HHMMSS | 混合日期和时间值,时间戳 |
| TIMESTAMP | 8 | 从 ‘1970-01-01 00:00:01.000000’ UTC 到 ‘2038-01-19 03:14:07.999999’(2038-01-19 11:14:07.999999 GMT) | 在线: int64, 离线: int64 或 'yyyy-MM-dd'T'HH:mm:ss[.SSS][XXX]' | 混合日期和时间值,时间戳 |
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

请问命令行的离线模式下, 也可以使用'yyyy-MM-dd'T'HH:mm:ss[.SSS][XXX]'格式输入嘛。之前好像说是sdk用object,cli需要转成毫秒时间戳

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CLI 离线并不支持insert

@vagetablechicken vagetablechicken merged commit 2a0faaa into 4paradigm:main Aug 1, 2022
liuceyi added a commit to liuceyi/OpenMLDB that referenced this pull request Aug 1, 2022
1. Add time units to comment
2. Add time units to user doc
3. Correct the typo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

docs: the introduction of data type timestamp is not compeleted
4 participants