TDengine icon indicating copy to clipboard operation
TDengine copied to clipboard

exception when importing historical data using RESTful Connector

Open mujin-zl opened this issue 5 years ago • 2 comments

Bug Description RESTful Connector 使用IMPORT写入历史数据,同一条SQL语句执行时而正常,时而报异常“ Syntax error in SQL ” 系统: Ubuntu 18.04 taos 2.0.12

sql: """ IMPORT INTO bohai.g866005046122505 (ts, dt, latitude, longitude, speed, course, elev, mcc, mnc, bs, genre) USING bohai.locators TAGS('866005046122505', '{"GPS_STATE": "1", "ACC": "11", "DEFENCE_STATE": "10", "RELAY": "00", "POWER_STATE": "10", "MOVE": "11", "flag": 1, "updateTime": "2021-03-19 15:55:34"}') VALUES ('2021-03-19 15:55:33', '2021-03-19 15:55:33', 31.220317, 121.411014, 38, 6, 0, 460, 0, '{"total": 1, "baseStation": [{"mcc": 460, "mnc": 0, "lac": 6208, "ci": 36385}]}', 0); """

error:

1

请问这是什么原因导致的

mujin-zl avatar Mar 19 '21 08:03 mujin-zl

请提供一下日志。

cpvmrd avatar Mar 22 '21 14:03 cpvmrd

升级至2.0.18,并未出现问题

yu285 avatar Mar 31 '21 10:03 yu285