Comments (4)
IoTDB默认使用毫秒, 但是其实IoTDB内部是用的long进行存储的,因此可以通过配置来支持微秒和纳秒。
在IoTDB配置文件(iotdb-engine.properties)中的如下配置:
# Use this value to set timestamp precision as "ms", "us" or "ns".
# Once the precision is been set, it can not be changed.
timestamp_precision=ms
这样的话,你传入一个long时间戳,就会将其按照微秒或者纳秒解读了。
不过目前的版本中 now()
返回的是毫秒值, 所以如果将timestamp_precision
设置为us
或者ns
,那么时间将来解析成人类可读的时间(yyyy-mm-dd HH:MM:ss)就会不太对。 这个会马上加PR修复。
By default, IoTDB considers a long timestamp as millisecond time unit, but you can change it in iotdb-engine.properties: timestamp_precision=us
or timestamp_precision=ns
.
But currently, now()
function only returns ms
.
from iotdb.
#1290 会解决这个问题,并在0.10中发布。
PR 1290 will solve the issue and be released in v0.10.0
from iotdb.
请问这个问题解决了嘛,我在v0.12版本中更改配置为ns,但是启动服务会报错 提示改成ms
from iotdb.
from iotdb.
Related Issues (20)
- [Bug] timestamp_precision=us/ns使用group by滑动时间统计错误 HOT 2
- [Bug] OutOfMemoryError: Direct buffer memory [MQTT] HOT 3
- Continuous downsampling HOT 1
- [Bug] 模糊查询 like 查询无法匹配所有满足条件的数据 HOT 3
- OpenSSL version for IoTDB-Client CPP Example build faliure HOT 4
- [Feature request] Optimized code ASTVisitor.java HOT 1
- [Bug] Inconsistency in query results based on the environment HOT 2
- [Bug] Failed to run start-cli.bat on Windows10 HOT 1
- How To backup/restore cluster HOT 2
- [Bug] iotdb 压缩线程处理异常之后,会无限处理错误数据。手动删除对应的序列也没用 HOT 7
- [Bug] insertTablet http api lost data event return SUCCESS_STATUS HOT 6
- [Bug] 应该不算是一个bug HOT 1
- grafana add new data sorce error HOT 2
- [Bug] 在Rocky Linux无法启动 HOT 1
- 突然停电后,iotdb重启失败 HOT 2
- [Bug] NPE when deleting timeseries via Java API HOT 3
- iotdb支持ambari组件 HOT 3
- For Hdfs Integrating with IoTDB no support document avilable for IoTdb higher version above 0.13.x HOT 1
- 昨天运行了半天,早上出现的问题ERROR o.a.t.s.TThreadPoolServer$WorkerProcess:258 HOT 4
- [Bug] 当IoTDB重启的时候,Session范例的连接IoTDB的代码,将无法再远程连接上IoTDB HOT 13
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from iotdb.