Hi, I think it should be called as "schema" rather than "metadata"...
Best, ----------------------------------- Xiangdong Huang School of Software, Tsinghua University 黄向东 清华大学 软件学院 Jialin Qiao <[email protected]> 于2019年9月2日周一 下午11:46写道: > Hi, > > I created an issue about creating metadata automatically [1]. > > To achieve this, we can introduce four configuration parameters: > > auto_create_metadata=false > default_storage_group_level=2 > default_int_encoding=RLE > default_floating_encoding=GORILLA > > Supposing we receive an insert statement "insert into root.sg1.d1(time, > s1, s2) values(1, 1, 1)". > When the "auto_create_metadata" is set to true and the user didn't create > metadata before, we can set storage group to root.sg1 (because the > default_storage_group_level is 2) and create two timeseries > "root.sg1.d1.s1" and "root.sg1.d1.s2". > > The datatype can be inferred from the value type. If it is "1", we treat > it as long. If it is a "floating number", we treat it as double. > > I'd like to have your suggestions. > > [1] https://issues.apache.org/jira/browse/IOTDB-193 > > Best, > -- > Jialin Qiao > School of Software, Tsinghua University > > 乔嘉林 > 清华大学 软件学院 > > > -----原始邮件----- > > 发件人: "Jialin Qiao (Jira)" <[email protected]> > > 发送时间: 2019-09-03 13:12:00 (星期二) > > 收件人: [email protected] > > 抄送: > > 主题: [jira] [Created] (IOTDB-193) Create metadata automatically in the > insertion > > > > Jialin Qiao created IOTDB-193: > > --------------------------------- > > > > Summary: Create metadata automatically in the insertion > > Key: IOTDB-193 > > URL: https://issues.apache.org/jira/browse/IOTDB-193 > > Project: Apache IoTDB > > Issue Type: New Feature > > Reporter: Jialin Qiao > > > > > > Setting storage group and creating time series can be troublesome when > using IoTDB in applications. > > > > Let's look at the typical scenes: > > > > The devices send messages to Kafka. Each message includes: factoryId, > deviceId, timestamp, s1_value, s2_value, s3_value. > > > > The consumer of Kafka needs to consume the messages and organize the > data into an insert statement: "insert into root.factoryId.deviceId(time, > s1, s2, s3) values(timestamp, s1_value, s2_value, s3_value)" > > > > Before inserting the data into IoTDB, the consumer needs to judge > whether the storage group and time series are created before, which is not > convenient. Typically, there are 3 ways to do that: > > # Caching the storage group and timeseries created before in the > consumer > > # Query from IoTDB whether a storage group and timeseries exists > > # Directly create metadata regardless of whether created before > > > > Could IoTDB support creating metadata (at least time series) > automatically when receiving an insertion? > > > > > > > > > > > > -- > > This message was sent by Atlassian Jira > > (v8.3.2#803003) >
