blob: 521da9b860805877dbf0e89235ca46e7301cb8d5 [file] [log] [blame]
<!DOCTYPE html>
<html lang="en-US">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title> </title>
<meta name="generator" content="VuePress 1.8.2">
<link rel="icon" href="/favicon.ico">
<meta name="description" content=" ">
<meta name="Description" content="Apache IoTDB: Time Series Database for IoT">
<meta name="Keywords" content="TSDB, time series, time series database, IoTDB, IoT database, IoT data management,时序数据库, 时间序列管理, IoTDB, 物联网数据库, 实时数据库, 物联网数据管理, 物联网数据">
<meta name="baidu-site-verification" content="wfKETzB3OT">
<meta name="google-site-verification" content="mZWAoRY0yj_HAr-s47zHCGHzx5Ju-RVm5wDbPnwQYFo">
<link rel="preload" href="/assets/css/0.styles.ccadf850.css" as="style"><link rel="preload" href="/assets/js/app.fe44b663.js" as="script"><link rel="preload" href="/assets/js/3.5626571b.js" as="script"><link rel="preload" href="/assets/js/179.84f3bdd6.js" as="script"><link rel="prefetch" href="/assets/js/10.77e7d27b.js"><link rel="prefetch" href="/assets/js/100.5392026f.js"><link rel="prefetch" href="/assets/js/101.4d24dbb3.js"><link rel="prefetch" href="/assets/js/102.4db55384.js"><link rel="prefetch" href="/assets/js/103.28a00d56.js"><link rel="prefetch" href="/assets/js/104.c1cad722.js"><link rel="prefetch" href="/assets/js/105.2dbc18e7.js"><link rel="prefetch" href="/assets/js/106.03cb3598.js"><link rel="prefetch" href="/assets/js/107.1aa2e9d5.js"><link rel="prefetch" href="/assets/js/108.c8e15789.js"><link rel="prefetch" href="/assets/js/109.4e029678.js"><link rel="prefetch" href="/assets/js/11.242ea813.js"><link rel="prefetch" href="/assets/js/110.2673e754.js"><link rel="prefetch" href="/assets/js/111.99869946.js"><link rel="prefetch" href="/assets/js/112.6931e30d.js"><link rel="prefetch" href="/assets/js/113.30edd688.js"><link rel="prefetch" href="/assets/js/114.cba21417.js"><link rel="prefetch" href="/assets/js/115.36ed9d85.js"><link rel="prefetch" href="/assets/js/116.b6f26e1b.js"><link rel="prefetch" href="/assets/js/117.b7ead194.js"><link rel="prefetch" href="/assets/js/118.0489f137.js"><link rel="prefetch" href="/assets/js/119.f4531020.js"><link rel="prefetch" href="/assets/js/12.4c48405a.js"><link rel="prefetch" href="/assets/js/120.d1bc4a0d.js"><link rel="prefetch" href="/assets/js/121.c4dac7da.js"><link rel="prefetch" href="/assets/js/122.37b6650b.js"><link rel="prefetch" href="/assets/js/123.6802c679.js"><link rel="prefetch" href="/assets/js/124.3a1dcf58.js"><link rel="prefetch" href="/assets/js/125.0c3e885a.js"><link rel="prefetch" href="/assets/js/126.fbfa46eb.js"><link rel="prefetch" href="/assets/js/127.110bc389.js"><link rel="prefetch" href="/assets/js/128.fd2a9b78.js"><link rel="prefetch" href="/assets/js/129.b0669c7b.js"><link rel="prefetch" href="/assets/js/13.16ded47d.js"><link rel="prefetch" href="/assets/js/130.830f695a.js"><link rel="prefetch" href="/assets/js/131.f74784eb.js"><link rel="prefetch" href="/assets/js/132.5bd44b31.js"><link rel="prefetch" href="/assets/js/133.4871f071.js"><link rel="prefetch" href="/assets/js/134.c1ebfd44.js"><link rel="prefetch" href="/assets/js/135.06b43884.js"><link rel="prefetch" href="/assets/js/136.4125fe2d.js"><link rel="prefetch" href="/assets/js/137.f79fb732.js"><link rel="prefetch" href="/assets/js/138.925cc589.js"><link rel="prefetch" href="/assets/js/139.269b4122.js"><link rel="prefetch" href="/assets/js/14.66eebc6d.js"><link rel="prefetch" href="/assets/js/140.8acac491.js"><link rel="prefetch" href="/assets/js/141.5739ba5c.js"><link rel="prefetch" href="/assets/js/142.0a0bb60d.js"><link rel="prefetch" href="/assets/js/143.a85602a6.js"><link rel="prefetch" href="/assets/js/144.af08976e.js"><link rel="prefetch" href="/assets/js/145.54dd8613.js"><link rel="prefetch" href="/assets/js/146.d6942192.js"><link rel="prefetch" href="/assets/js/147.58b089c2.js"><link rel="prefetch" href="/assets/js/148.f3061126.js"><link rel="prefetch" href="/assets/js/149.bed18caa.js"><link rel="prefetch" href="/assets/js/15.843fe861.js"><link rel="prefetch" href="/assets/js/150.857bbcb9.js"><link rel="prefetch" href="/assets/js/151.8df8eaff.js"><link rel="prefetch" href="/assets/js/152.7fbfa55b.js"><link rel="prefetch" href="/assets/js/153.88e78e8e.js"><link rel="prefetch" href="/assets/js/154.4c0105cf.js"><link rel="prefetch" href="/assets/js/155.56c02f22.js"><link rel="prefetch" href="/assets/js/156.3610ca5b.js"><link rel="prefetch" href="/assets/js/157.a82e8d14.js"><link rel="prefetch" href="/assets/js/158.cd306550.js"><link rel="prefetch" href="/assets/js/159.7c3f6836.js"><link rel="prefetch" href="/assets/js/16.17c1f643.js"><link rel="prefetch" href="/assets/js/160.d9e7ebc3.js"><link rel="prefetch" href="/assets/js/161.f69489a3.js"><link rel="prefetch" href="/assets/js/162.260f8f8c.js"><link rel="prefetch" href="/assets/js/163.6f4c436f.js"><link rel="prefetch" href="/assets/js/164.48a2358e.js"><link rel="prefetch" href="/assets/js/165.beba59fe.js"><link rel="prefetch" href="/assets/js/166.2534a588.js"><link rel="prefetch" href="/assets/js/167.daba1492.js"><link rel="prefetch" href="/assets/js/168.66d50e2f.js"><link rel="prefetch" href="/assets/js/169.4a288ab4.js"><link rel="prefetch" href="/assets/js/17.9b8df773.js"><link rel="prefetch" href="/assets/js/170.f0555c86.js"><link rel="prefetch" href="/assets/js/171.bbe4ba1a.js"><link rel="prefetch" href="/assets/js/172.712c6bac.js"><link rel="prefetch" href="/assets/js/173.c3917d0d.js"><link rel="prefetch" href="/assets/js/174.9d843f6f.js"><link rel="prefetch" href="/assets/js/175.ca25b135.js"><link rel="prefetch" href="/assets/js/176.35f2d232.js"><link rel="prefetch" href="/assets/js/177.e8e6286d.js"><link rel="prefetch" href="/assets/js/178.c37c5efd.js"><link rel="prefetch" href="/assets/js/18.122d5826.js"><link rel="prefetch" href="/assets/js/180.32503609.js"><link rel="prefetch" href="/assets/js/181.219cb189.js"><link rel="prefetch" href="/assets/js/182.e90074d5.js"><link rel="prefetch" href="/assets/js/183.87f069d1.js"><link rel="prefetch" href="/assets/js/184.6b62bd9f.js"><link rel="prefetch" href="/assets/js/185.4e6b021e.js"><link rel="prefetch" href="/assets/js/186.3679d30d.js"><link rel="prefetch" href="/assets/js/187.aeba6c58.js"><link rel="prefetch" href="/assets/js/188.cc1022eb.js"><link rel="prefetch" href="/assets/js/189.5ac3b4a4.js"><link rel="prefetch" href="/assets/js/19.9187dec1.js"><link rel="prefetch" href="/assets/js/190.ff15e49f.js"><link rel="prefetch" href="/assets/js/191.369829d5.js"><link rel="prefetch" href="/assets/js/192.1d1eb36e.js"><link rel="prefetch" href="/assets/js/193.fc0fb393.js"><link rel="prefetch" href="/assets/js/194.b47fbc4c.js"><link rel="prefetch" href="/assets/js/195.9e36d668.js"><link rel="prefetch" href="/assets/js/196.2d1223f7.js"><link rel="prefetch" href="/assets/js/197.55863e11.js"><link rel="prefetch" href="/assets/js/198.a48cc095.js"><link rel="prefetch" href="/assets/js/199.3a9c2528.js"><link rel="prefetch" href="/assets/js/20.cf088c3b.js"><link rel="prefetch" href="/assets/js/200.195ff96b.js"><link rel="prefetch" href="/assets/js/201.4d6c6e24.js"><link rel="prefetch" href="/assets/js/202.c32388f7.js"><link rel="prefetch" href="/assets/js/203.080586a5.js"><link rel="prefetch" href="/assets/js/204.a3b3ce92.js"><link rel="prefetch" href="/assets/js/205.9af51d77.js"><link rel="prefetch" href="/assets/js/206.ea246089.js"><link rel="prefetch" href="/assets/js/207.1c222b6c.js"><link rel="prefetch" href="/assets/js/208.fa41b6db.js"><link rel="prefetch" href="/assets/js/209.206e9cfe.js"><link rel="prefetch" href="/assets/js/21.fd51f269.js"><link rel="prefetch" href="/assets/js/210.e4599d5b.js"><link rel="prefetch" href="/assets/js/211.b4f21019.js"><link rel="prefetch" href="/assets/js/212.552b3f7c.js"><link rel="prefetch" href="/assets/js/213.e7924e39.js"><link rel="prefetch" href="/assets/js/214.4889616d.js"><link rel="prefetch" href="/assets/js/215.8bc1d1bf.js"><link rel="prefetch" href="/assets/js/216.aeaaff79.js"><link rel="prefetch" href="/assets/js/217.51dbbd91.js"><link rel="prefetch" href="/assets/js/218.477c1e20.js"><link rel="prefetch" href="/assets/js/219.fd6ed6fa.js"><link rel="prefetch" href="/assets/js/22.f9d73f8a.js"><link rel="prefetch" href="/assets/js/220.84349773.js"><link rel="prefetch" href="/assets/js/221.4b98b09e.js"><link rel="prefetch" href="/assets/js/222.57476182.js"><link rel="prefetch" href="/assets/js/223.1c0323f8.js"><link rel="prefetch" href="/assets/js/224.61e78712.js"><link rel="prefetch" href="/assets/js/225.9b6f0752.js"><link rel="prefetch" href="/assets/js/226.4868d0a5.js"><link rel="prefetch" href="/assets/js/227.6ba50795.js"><link rel="prefetch" href="/assets/js/228.1d3cd90f.js"><link rel="prefetch" href="/assets/js/229.6ca83068.js"><link rel="prefetch" href="/assets/js/23.6c7d7eea.js"><link rel="prefetch" href="/assets/js/230.5e6f7ed2.js"><link rel="prefetch" href="/assets/js/231.a8ecd36e.js"><link rel="prefetch" href="/assets/js/232.a18567c5.js"><link rel="prefetch" href="/assets/js/233.f79fadcf.js"><link rel="prefetch" href="/assets/js/234.d9207163.js"><link rel="prefetch" href="/assets/js/235.e81b51ae.js"><link rel="prefetch" href="/assets/js/236.b9c32f41.js"><link rel="prefetch" href="/assets/js/237.d795e1ce.js"><link rel="prefetch" href="/assets/js/238.49757612.js"><link rel="prefetch" href="/assets/js/239.aeda84ea.js"><link rel="prefetch" href="/assets/js/24.a553bb19.js"><link rel="prefetch" href="/assets/js/240.07479801.js"><link rel="prefetch" href="/assets/js/241.ba1379fe.js"><link rel="prefetch" href="/assets/js/242.ce1b153f.js"><link rel="prefetch" href="/assets/js/243.18fd3c66.js"><link rel="prefetch" href="/assets/js/244.2b98e85b.js"><link rel="prefetch" href="/assets/js/245.bf64d7c9.js"><link rel="prefetch" href="/assets/js/246.d0a5b73c.js"><link rel="prefetch" href="/assets/js/247.b9bc9104.js"><link rel="prefetch" href="/assets/js/248.714df448.js"><link rel="prefetch" href="/assets/js/249.e0039e9d.js"><link rel="prefetch" href="/assets/js/25.1e42b275.js"><link rel="prefetch" href="/assets/js/250.ca664993.js"><link rel="prefetch" href="/assets/js/251.b47f298a.js"><link rel="prefetch" href="/assets/js/252.71392152.js"><link rel="prefetch" href="/assets/js/253.e0f23ec8.js"><link rel="prefetch" href="/assets/js/254.6d43bbe7.js"><link rel="prefetch" href="/assets/js/255.c1779bd2.js"><link rel="prefetch" href="/assets/js/256.6a8a06f3.js"><link rel="prefetch" href="/assets/js/257.4e74c883.js"><link rel="prefetch" href="/assets/js/258.f4b72fd8.js"><link rel="prefetch" href="/assets/js/259.f9b80571.js"><link rel="prefetch" href="/assets/js/26.0057d37b.js"><link rel="prefetch" href="/assets/js/260.10e21bfc.js"><link rel="prefetch" href="/assets/js/261.402db160.js"><link rel="prefetch" href="/assets/js/262.02c5372b.js"><link rel="prefetch" href="/assets/js/263.3454f741.js"><link rel="prefetch" href="/assets/js/264.dfc588bd.js"><link rel="prefetch" href="/assets/js/265.f1fee64b.js"><link rel="prefetch" href="/assets/js/266.baac44a1.js"><link rel="prefetch" href="/assets/js/267.b6f584a5.js"><link rel="prefetch" href="/assets/js/268.013f92f7.js"><link rel="prefetch" href="/assets/js/269.706a27e5.js"><link rel="prefetch" href="/assets/js/27.9e25f953.js"><link rel="prefetch" href="/assets/js/270.397dc6f7.js"><link rel="prefetch" href="/assets/js/271.5f063e14.js"><link rel="prefetch" href="/assets/js/272.b88b9e6e.js"><link rel="prefetch" href="/assets/js/273.f7eeeb80.js"><link rel="prefetch" href="/assets/js/274.8d7d8c2a.js"><link rel="prefetch" href="/assets/js/275.167633d2.js"><link rel="prefetch" href="/assets/js/276.bf42d85f.js"><link rel="prefetch" href="/assets/js/277.195beb55.js"><link rel="prefetch" href="/assets/js/278.852d1996.js"><link rel="prefetch" href="/assets/js/279.a3fb5857.js"><link rel="prefetch" href="/assets/js/28.0a801078.js"><link rel="prefetch" href="/assets/js/280.de229c1d.js"><link rel="prefetch" href="/assets/js/281.47d676fa.js"><link rel="prefetch" href="/assets/js/282.1db3920a.js"><link rel="prefetch" href="/assets/js/283.0ed31a9c.js"><link rel="prefetch" href="/assets/js/284.d2f802aa.js"><link rel="prefetch" href="/assets/js/285.0a18923e.js"><link rel="prefetch" href="/assets/js/286.60438a30.js"><link rel="prefetch" href="/assets/js/287.6fa63573.js"><link rel="prefetch" href="/assets/js/288.4432c980.js"><link rel="prefetch" href="/assets/js/289.789f44e7.js"><link rel="prefetch" href="/assets/js/29.a31435b1.js"><link rel="prefetch" href="/assets/js/290.3c1f2e4c.js"><link rel="prefetch" href="/assets/js/291.a340398b.js"><link rel="prefetch" href="/assets/js/292.8568adc1.js"><link rel="prefetch" href="/assets/js/293.42107ac0.js"><link rel="prefetch" href="/assets/js/294.5fae363a.js"><link rel="prefetch" href="/assets/js/295.eb955643.js"><link rel="prefetch" href="/assets/js/296.77ae03d2.js"><link rel="prefetch" href="/assets/js/297.e548ba7e.js"><link rel="prefetch" href="/assets/js/298.d08bd092.js"><link rel="prefetch" href="/assets/js/299.a9495179.js"><link rel="prefetch" href="/assets/js/30.60649b66.js"><link rel="prefetch" href="/assets/js/300.1f1c6539.js"><link rel="prefetch" href="/assets/js/301.45e54d01.js"><link rel="prefetch" href="/assets/js/302.41fa5b16.js"><link rel="prefetch" href="/assets/js/303.50302303.js"><link rel="prefetch" href="/assets/js/304.45ec5f49.js"><link rel="prefetch" href="/assets/js/305.4667a075.js"><link rel="prefetch" href="/assets/js/306.9adbbd88.js"><link rel="prefetch" href="/assets/js/307.01fbd282.js"><link rel="prefetch" href="/assets/js/308.ee661372.js"><link rel="prefetch" href="/assets/js/309.71fd6514.js"><link rel="prefetch" href="/assets/js/31.b5e715ce.js"><link rel="prefetch" href="/assets/js/310.2c1b5f58.js"><link rel="prefetch" href="/assets/js/311.bf369b6f.js"><link rel="prefetch" href="/assets/js/312.ee6deb53.js"><link rel="prefetch" href="/assets/js/313.b173305e.js"><link rel="prefetch" href="/assets/js/314.9bf7681c.js"><link rel="prefetch" href="/assets/js/315.9dced4c4.js"><link rel="prefetch" href="/assets/js/316.d1625f8e.js"><link rel="prefetch" href="/assets/js/317.ff874148.js"><link rel="prefetch" href="/assets/js/318.bc83f98a.js"><link rel="prefetch" href="/assets/js/319.eb7b75c1.js"><link rel="prefetch" href="/assets/js/32.e5e702b0.js"><link rel="prefetch" href="/assets/js/320.017cca1c.js"><link rel="prefetch" href="/assets/js/321.e34387cb.js"><link rel="prefetch" href="/assets/js/322.5aae6989.js"><link rel="prefetch" href="/assets/js/323.e4fd51b3.js"><link rel="prefetch" href="/assets/js/324.1ba3ee32.js"><link rel="prefetch" href="/assets/js/325.21254638.js"><link rel="prefetch" href="/assets/js/326.377d3f46.js"><link rel="prefetch" href="/assets/js/327.7734ba1d.js"><link rel="prefetch" href="/assets/js/328.e9791163.js"><link rel="prefetch" href="/assets/js/329.8acd00bc.js"><link rel="prefetch" href="/assets/js/33.b678d537.js"><link rel="prefetch" href="/assets/js/330.6cff02ec.js"><link rel="prefetch" href="/assets/js/331.98ebbe7d.js"><link rel="prefetch" href="/assets/js/332.1d9d1a04.js"><link rel="prefetch" href="/assets/js/333.e8be9a85.js"><link rel="prefetch" href="/assets/js/334.677f7d89.js"><link rel="prefetch" href="/assets/js/335.9bca2b37.js"><link rel="prefetch" href="/assets/js/336.b2a7394a.js"><link rel="prefetch" href="/assets/js/337.0231a5b2.js"><link rel="prefetch" href="/assets/js/338.1979cb4d.js"><link rel="prefetch" href="/assets/js/339.4bb8f0a9.js"><link rel="prefetch" href="/assets/js/34.f1aa3803.js"><link rel="prefetch" href="/assets/js/340.f0fa3c52.js"><link rel="prefetch" href="/assets/js/341.f8178251.js"><link rel="prefetch" href="/assets/js/342.7dd47706.js"><link rel="prefetch" href="/assets/js/343.363f2cae.js"><link rel="prefetch" href="/assets/js/344.2b4d1572.js"><link rel="prefetch" href="/assets/js/345.54e08f16.js"><link rel="prefetch" href="/assets/js/346.541ef94e.js"><link rel="prefetch" href="/assets/js/347.1f8a56e7.js"><link rel="prefetch" href="/assets/js/348.ff08d1b4.js"><link rel="prefetch" href="/assets/js/349.97e1160f.js"><link rel="prefetch" href="/assets/js/35.5612ab6a.js"><link rel="prefetch" href="/assets/js/350.1fa64f48.js"><link rel="prefetch" href="/assets/js/351.0cdcbb68.js"><link rel="prefetch" href="/assets/js/352.04f35660.js"><link rel="prefetch" href="/assets/js/353.c63abb11.js"><link rel="prefetch" href="/assets/js/354.f07fe232.js"><link rel="prefetch" href="/assets/js/355.9db8e984.js"><link rel="prefetch" href="/assets/js/356.7e54a7f7.js"><link rel="prefetch" href="/assets/js/357.b8b2c19a.js"><link rel="prefetch" href="/assets/js/358.ec88593c.js"><link rel="prefetch" href="/assets/js/359.57a348e6.js"><link rel="prefetch" href="/assets/js/36.4e36f97e.js"><link rel="prefetch" href="/assets/js/360.f91d4985.js"><link rel="prefetch" href="/assets/js/361.fd0b896b.js"><link rel="prefetch" href="/assets/js/362.3078bc4c.js"><link rel="prefetch" href="/assets/js/363.970af9b1.js"><link rel="prefetch" href="/assets/js/364.ce305e49.js"><link rel="prefetch" href="/assets/js/365.228a2005.js"><link rel="prefetch" href="/assets/js/366.3e0ce2e8.js"><link rel="prefetch" href="/assets/js/367.dfba61c0.js"><link rel="prefetch" href="/assets/js/368.d4307f98.js"><link rel="prefetch" href="/assets/js/369.730e7097.js"><link rel="prefetch" href="/assets/js/37.13b65e5d.js"><link rel="prefetch" href="/assets/js/370.e7a52728.js"><link rel="prefetch" href="/assets/js/371.99346247.js"><link rel="prefetch" href="/assets/js/372.09676253.js"><link rel="prefetch" href="/assets/js/373.2a7b274a.js"><link rel="prefetch" href="/assets/js/374.e347ead4.js"><link rel="prefetch" href="/assets/js/375.f70bcedd.js"><link rel="prefetch" href="/assets/js/376.c776b0ed.js"><link rel="prefetch" href="/assets/js/377.3d81f722.js"><link rel="prefetch" href="/assets/js/378.a7f10c5f.js"><link rel="prefetch" href="/assets/js/379.b18f1c51.js"><link rel="prefetch" href="/assets/js/38.c6f83038.js"><link rel="prefetch" href="/assets/js/380.a84e788a.js"><link rel="prefetch" href="/assets/js/381.521f1a2b.js"><link rel="prefetch" href="/assets/js/382.10ebffdc.js"><link rel="prefetch" href="/assets/js/383.fa0c4858.js"><link rel="prefetch" href="/assets/js/384.4d3a1d3e.js"><link rel="prefetch" href="/assets/js/385.edbe545d.js"><link rel="prefetch" href="/assets/js/386.aa0e0479.js"><link rel="prefetch" href="/assets/js/387.d08b9da1.js"><link rel="prefetch" href="/assets/js/388.3cafa76f.js"><link rel="prefetch" href="/assets/js/389.1c150739.js"><link rel="prefetch" href="/assets/js/39.41707d32.js"><link rel="prefetch" href="/assets/js/390.e3c6dc5b.js"><link rel="prefetch" href="/assets/js/391.097ce5d5.js"><link rel="prefetch" href="/assets/js/392.b1450deb.js"><link rel="prefetch" href="/assets/js/393.a9be5042.js"><link rel="prefetch" href="/assets/js/394.0f496e89.js"><link rel="prefetch" href="/assets/js/395.d66b20d2.js"><link rel="prefetch" href="/assets/js/396.a238eb17.js"><link rel="prefetch" href="/assets/js/397.c76a0b8d.js"><link rel="prefetch" href="/assets/js/398.3812b640.js"><link rel="prefetch" href="/assets/js/399.e6940f90.js"><link rel="prefetch" href="/assets/js/4.9c4b1c6d.js"><link rel="prefetch" href="/assets/js/40.f82f0187.js"><link rel="prefetch" href="/assets/js/400.5e0cfb93.js"><link rel="prefetch" href="/assets/js/401.f613f2ba.js"><link rel="prefetch" href="/assets/js/402.be1f5783.js"><link rel="prefetch" href="/assets/js/403.33c1396d.js"><link rel="prefetch" href="/assets/js/404.562089b0.js"><link rel="prefetch" href="/assets/js/405.93f42baf.js"><link rel="prefetch" href="/assets/js/406.ba8d00d1.js"><link rel="prefetch" href="/assets/js/407.0150b19f.js"><link rel="prefetch" href="/assets/js/408.728a1d15.js"><link rel="prefetch" href="/assets/js/409.ef560ed7.js"><link rel="prefetch" href="/assets/js/41.b6799c44.js"><link rel="prefetch" href="/assets/js/410.d3f65621.js"><link rel="prefetch" href="/assets/js/411.07ef2c9f.js"><link rel="prefetch" href="/assets/js/412.4a1d8057.js"><link rel="prefetch" href="/assets/js/413.ebf9aafc.js"><link rel="prefetch" href="/assets/js/414.a5433120.js"><link rel="prefetch" href="/assets/js/415.4dcc07c7.js"><link rel="prefetch" href="/assets/js/416.11747f6b.js"><link rel="prefetch" href="/assets/js/417.5270e086.js"><link rel="prefetch" href="/assets/js/418.d5fc9d05.js"><link rel="prefetch" href="/assets/js/419.540dcd2a.js"><link rel="prefetch" href="/assets/js/42.e6b0aae2.js"><link rel="prefetch" href="/assets/js/420.28641617.js"><link rel="prefetch" href="/assets/js/421.a6c3c8af.js"><link rel="prefetch" href="/assets/js/422.52ab97a6.js"><link rel="prefetch" href="/assets/js/423.7c5da32e.js"><link rel="prefetch" href="/assets/js/424.d39b15e0.js"><link rel="prefetch" href="/assets/js/425.2c8fbc5a.js"><link rel="prefetch" href="/assets/js/426.b6957825.js"><link rel="prefetch" href="/assets/js/427.b96cf924.js"><link rel="prefetch" href="/assets/js/428.6440b235.js"><link rel="prefetch" href="/assets/js/429.57902fe0.js"><link rel="prefetch" href="/assets/js/43.3fff5a4c.js"><link rel="prefetch" href="/assets/js/430.04255b2f.js"><link rel="prefetch" href="/assets/js/431.321286eb.js"><link rel="prefetch" href="/assets/js/432.72fdf31f.js"><link rel="prefetch" href="/assets/js/433.52676bc7.js"><link rel="prefetch" href="/assets/js/434.7bc3fee7.js"><link rel="prefetch" href="/assets/js/435.deac35a6.js"><link rel="prefetch" href="/assets/js/436.46f753f4.js"><link rel="prefetch" href="/assets/js/437.6a675a68.js"><link rel="prefetch" href="/assets/js/438.e8c8ae5b.js"><link rel="prefetch" href="/assets/js/439.ba3f2700.js"><link rel="prefetch" href="/assets/js/44.fee39d6b.js"><link rel="prefetch" href="/assets/js/440.98a7bff0.js"><link rel="prefetch" href="/assets/js/441.e12292fb.js"><link rel="prefetch" href="/assets/js/442.08f60114.js"><link rel="prefetch" href="/assets/js/443.d5d255b9.js"><link rel="prefetch" href="/assets/js/444.01c13452.js"><link rel="prefetch" href="/assets/js/445.954c3b0b.js"><link rel="prefetch" href="/assets/js/446.81521199.js"><link rel="prefetch" href="/assets/js/447.0cf2269e.js"><link rel="prefetch" href="/assets/js/448.fb62b763.js"><link rel="prefetch" href="/assets/js/449.2fd7ec4e.js"><link rel="prefetch" href="/assets/js/45.244b7680.js"><link rel="prefetch" href="/assets/js/450.3ff3ce7b.js"><link rel="prefetch" href="/assets/js/451.4b455f4a.js"><link rel="prefetch" href="/assets/js/452.51fbf6e4.js"><link rel="prefetch" href="/assets/js/453.4d5d4319.js"><link rel="prefetch" href="/assets/js/454.99948bc3.js"><link rel="prefetch" href="/assets/js/455.d1380266.js"><link rel="prefetch" href="/assets/js/456.22423caf.js"><link rel="prefetch" href="/assets/js/457.05a6e43b.js"><link rel="prefetch" href="/assets/js/458.2a93e9bc.js"><link rel="prefetch" href="/assets/js/459.dfc3d492.js"><link rel="prefetch" href="/assets/js/46.539f062d.js"><link rel="prefetch" href="/assets/js/460.2a50d5c4.js"><link rel="prefetch" href="/assets/js/461.07548ac3.js"><link rel="prefetch" href="/assets/js/462.214e91ce.js"><link rel="prefetch" href="/assets/js/463.414bc138.js"><link rel="prefetch" href="/assets/js/464.779a26ec.js"><link rel="prefetch" href="/assets/js/465.c61d57fa.js"><link rel="prefetch" href="/assets/js/466.ab4c1900.js"><link rel="prefetch" href="/assets/js/467.6398c8fc.js"><link rel="prefetch" href="/assets/js/468.f013763e.js"><link rel="prefetch" href="/assets/js/469.40bcf372.js"><link rel="prefetch" href="/assets/js/47.a8742825.js"><link rel="prefetch" href="/assets/js/470.ba1d5a08.js"><link rel="prefetch" href="/assets/js/471.9842c3d9.js"><link rel="prefetch" href="/assets/js/472.887667b1.js"><link rel="prefetch" href="/assets/js/473.ac9f4dc8.js"><link rel="prefetch" href="/assets/js/474.c950558a.js"><link rel="prefetch" href="/assets/js/475.ec6929d7.js"><link rel="prefetch" href="/assets/js/476.d351ffef.js"><link rel="prefetch" href="/assets/js/477.cbb436f4.js"><link rel="prefetch" href="/assets/js/478.10a8af05.js"><link rel="prefetch" href="/assets/js/479.3e21eec2.js"><link rel="prefetch" href="/assets/js/48.656f2900.js"><link rel="prefetch" href="/assets/js/480.2889f790.js"><link rel="prefetch" href="/assets/js/481.6504abc3.js"><link rel="prefetch" href="/assets/js/482.25c23f5a.js"><link rel="prefetch" href="/assets/js/483.11c430e0.js"><link rel="prefetch" href="/assets/js/484.4fb1d507.js"><link rel="prefetch" href="/assets/js/485.1ecbb4e0.js"><link rel="prefetch" href="/assets/js/486.a15cc699.js"><link rel="prefetch" href="/assets/js/487.b4a9526d.js"><link rel="prefetch" href="/assets/js/488.85d13879.js"><link rel="prefetch" href="/assets/js/489.3a566e3d.js"><link rel="prefetch" href="/assets/js/49.f271ac34.js"><link rel="prefetch" href="/assets/js/490.347d23af.js"><link rel="prefetch" href="/assets/js/491.558b7aa9.js"><link rel="prefetch" href="/assets/js/492.af9c4c53.js"><link rel="prefetch" href="/assets/js/493.f89bdb3c.js"><link rel="prefetch" href="/assets/js/494.a0142c98.js"><link rel="prefetch" href="/assets/js/495.d3de8850.js"><link rel="prefetch" href="/assets/js/496.d48c6630.js"><link rel="prefetch" href="/assets/js/497.3b9635e2.js"><link rel="prefetch" href="/assets/js/498.f587a80e.js"><link rel="prefetch" href="/assets/js/499.22f6be18.js"><link rel="prefetch" href="/assets/js/5.2a4451ec.js"><link rel="prefetch" href="/assets/js/50.7d8944cd.js"><link rel="prefetch" href="/assets/js/500.d054de5c.js"><link rel="prefetch" href="/assets/js/501.954e1b5c.js"><link rel="prefetch" href="/assets/js/502.4b184e51.js"><link rel="prefetch" href="/assets/js/503.10334ca5.js"><link rel="prefetch" href="/assets/js/504.0e074cd3.js"><link rel="prefetch" href="/assets/js/505.4993e90d.js"><link rel="prefetch" href="/assets/js/506.6f94a2f8.js"><link rel="prefetch" href="/assets/js/507.b255fcfd.js"><link rel="prefetch" href="/assets/js/508.95c9551e.js"><link rel="prefetch" href="/assets/js/509.1d2ab0fb.js"><link rel="prefetch" href="/assets/js/51.fd01b1a1.js"><link rel="prefetch" href="/assets/js/510.36c66e50.js"><link rel="prefetch" href="/assets/js/511.caf2e589.js"><link rel="prefetch" href="/assets/js/512.133bca04.js"><link rel="prefetch" href="/assets/js/513.e3f62ca2.js"><link rel="prefetch" href="/assets/js/514.f17c4a44.js"><link rel="prefetch" href="/assets/js/515.f637b155.js"><link rel="prefetch" href="/assets/js/516.3cccca96.js"><link rel="prefetch" href="/assets/js/517.80c43b59.js"><link rel="prefetch" href="/assets/js/518.f3438412.js"><link rel="prefetch" href="/assets/js/519.5a0ef98b.js"><link rel="prefetch" href="/assets/js/52.10d8a15b.js"><link rel="prefetch" href="/assets/js/520.d83038f1.js"><link rel="prefetch" href="/assets/js/521.4726d233.js"><link rel="prefetch" href="/assets/js/522.045aff30.js"><link rel="prefetch" href="/assets/js/523.9d9b45b5.js"><link rel="prefetch" href="/assets/js/524.86a7c6cf.js"><link rel="prefetch" href="/assets/js/525.1d6e7b79.js"><link rel="prefetch" href="/assets/js/526.c365bd67.js"><link rel="prefetch" href="/assets/js/527.555f8b61.js"><link rel="prefetch" href="/assets/js/528.690272cc.js"><link rel="prefetch" href="/assets/js/529.7f05b847.js"><link rel="prefetch" href="/assets/js/53.79f66cea.js"><link rel="prefetch" href="/assets/js/530.3fb31398.js"><link rel="prefetch" href="/assets/js/531.54b0ee66.js"><link rel="prefetch" href="/assets/js/532.42a967ca.js"><link rel="prefetch" href="/assets/js/54.1ec48dc5.js"><link rel="prefetch" href="/assets/js/55.9d4b8667.js"><link rel="prefetch" href="/assets/js/56.aa94202c.js"><link rel="prefetch" href="/assets/js/57.dd80489d.js"><link rel="prefetch" href="/assets/js/58.9af3c40d.js"><link rel="prefetch" href="/assets/js/59.70e0291b.js"><link rel="prefetch" href="/assets/js/6.3450075a.js"><link rel="prefetch" href="/assets/js/60.53b7d88b.js"><link rel="prefetch" href="/assets/js/61.b70ccd57.js"><link rel="prefetch" href="/assets/js/62.eef65e9b.js"><link rel="prefetch" href="/assets/js/63.3a66528e.js"><link rel="prefetch" href="/assets/js/64.ed6b77b6.js"><link rel="prefetch" href="/assets/js/65.5573ce3d.js"><link rel="prefetch" href="/assets/js/66.aa4ead2c.js"><link rel="prefetch" href="/assets/js/67.29edf638.js"><link rel="prefetch" href="/assets/js/68.38ac76fc.js"><link rel="prefetch" href="/assets/js/69.7f8c7118.js"><link rel="prefetch" href="/assets/js/7.c5c54fb4.js"><link rel="prefetch" href="/assets/js/70.368e2128.js"><link rel="prefetch" href="/assets/js/71.cf483d39.js"><link rel="prefetch" href="/assets/js/72.b095c9c5.js"><link rel="prefetch" href="/assets/js/73.7f2ffe57.js"><link rel="prefetch" href="/assets/js/74.d67c3927.js"><link rel="prefetch" href="/assets/js/75.d4945299.js"><link rel="prefetch" href="/assets/js/76.f01b8b07.js"><link rel="prefetch" href="/assets/js/77.3c1e294c.js"><link rel="prefetch" href="/assets/js/78.cfcd53d4.js"><link rel="prefetch" href="/assets/js/79.a50c96bd.js"><link rel="prefetch" href="/assets/js/8.68d2fe5c.js"><link rel="prefetch" href="/assets/js/80.8358bd99.js"><link rel="prefetch" href="/assets/js/81.754e7cd2.js"><link rel="prefetch" href="/assets/js/82.e42aff88.js"><link rel="prefetch" href="/assets/js/83.152a1582.js"><link rel="prefetch" href="/assets/js/84.4867883c.js"><link rel="prefetch" href="/assets/js/85.6b2afa69.js"><link rel="prefetch" href="/assets/js/86.3e058a7a.js"><link rel="prefetch" href="/assets/js/87.cf9a4fcf.js"><link rel="prefetch" href="/assets/js/88.dc32204f.js"><link rel="prefetch" href="/assets/js/89.fb10ca17.js"><link rel="prefetch" href="/assets/js/9.e4a451d3.js"><link rel="prefetch" href="/assets/js/90.7f184d9a.js"><link rel="prefetch" href="/assets/js/91.35f464f6.js"><link rel="prefetch" href="/assets/js/92.e45a3d68.js"><link rel="prefetch" href="/assets/js/93.0d192890.js"><link rel="prefetch" href="/assets/js/94.13f91cee.js"><link rel="prefetch" href="/assets/js/95.732898b6.js"><link rel="prefetch" href="/assets/js/96.10bfabc4.js"><link rel="prefetch" href="/assets/js/97.20f5d113.js"><link rel="prefetch" href="/assets/js/98.49efa8b4.js"><link rel="prefetch" href="/assets/js/99.9abce7a4.js"><link rel="prefetch" href="/assets/js/vendors~docsearch.eff714eb.js">
<link rel="stylesheet" href="/assets/css/0.styles.ccadf850.css">
</head>
<body>
<div id="app" data-server-rendered="true"><div class="theme-container"><header class="navbar"><div class="sidebar-button"><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" role="img" viewBox="0 0 448 512" class="icon"><path fill="currentColor" d="M436 124H12c-6.627 0-12-5.373-12-12V80c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12z"></path></svg></div> <a href="/" class="home-link router-link-active"><img src="/img/logo.png" alt=" " class="logo"></a> <div class="links"><div class="search-box"><input aria-label="Search" autocomplete="off" spellcheck="false" value=""> <!----></div> <nav class="nav-links can-hide"><div class="nav-item"><div class="dropdown-wrapper"><a class="dropdown-title"><span class="title">Document</span> <span class="arrow right"></span></a> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/UserGuide/Master/Get Started/QuickStart.html" class="nav-link">In progress</a></li><li class="dropdown-item"><!----> <a href="/UserGuide/V0.11.x/Get Started/QuickStart.html" class="nav-link">V0.11.x</a></li><li class="dropdown-item"><!----> <a href="/UserGuide/V0.10.x/Get Started/QuickStart.html" class="nav-link">V0.10.x</a></li><li class="dropdown-item"><!----> <a href="/UserGuide/V0.9.x/0-Get Started/1-QuickStart.html" class="nav-link">V0.9.x</a></li><li class="dropdown-item"><!----> <a href="/UserGuide/V0.8.x/0-Get Started/1-QuickStart.html" class="nav-link">V0.8.x</a></li></ul></div></div><div class="nav-item"><a href="/SystemDesign/Architecture/Architecture.html" class="nav-link">System design</a></div><div class="nav-item"><a href="/Download/" class="nav-link">Download</a></div><div class="nav-item"><div class="dropdown-wrapper"><a class="dropdown-title"><span class="title">Community</span> <span class="arrow right"></span></a> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="https://cwiki.apache.org/confluence/display/iotdb" class="nav-link external">
Wiki
<!----></a></li><li class="dropdown-item"><!----> <a href="/Community/Community-Project Committers.html" class="nav-link">People</a></li><li class="dropdown-item"><!----> <a href="/Community/Community-Powered By.html" class="nav-link">Powered By</a></li><li class="dropdown-item"><!----> <a href="/Community/Materials.html" class="nav-link">Resources</a></li><li class="dropdown-item"><!----> <a href="/Community/Feedback.html" class="nav-link">Feedback</a></li></ul></div></div><div class="nav-item"><div class="dropdown-wrapper"><a class="dropdown-title"><span class="title">Development</span> <span class="arrow right"></span></a> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/Development/VoteRelease.html" class="nav-link">How to vote</a></li><li class="dropdown-item"><!----> <a href="/Development/HowToCommit.html" class="nav-link">How to Commit</a></li><li class="dropdown-item"><!----> <a href="/Development/Committer.html" class="nav-link">Become a Committer</a></li><li class="dropdown-item"><!----> <a href="/Development/ContributeGuide.html" class="nav-link">ContributeGuide</a></li><li class="dropdown-item"><!----> <a href="/Development/format-changelist.html" class="nav-link">Changelist of TsFile</a></li><li class="dropdown-item"><!----> <a href="/Development/rpc-changelist.html" class="nav-link">Changelist of RPC</a></li></ul></div></div><div class="nav-item"><div class="dropdown-wrapper"><a class="dropdown-title"><span class="title">Blog</span> <span class="arrow right"></span></a> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/Blog/Index.html" class="nav-link">Overview</a></li><li class="dropdown-item"><!----> <a href="/Blog/Release0_93.html" class="nav-link">Some Notes on Release 0.9.3 and upcoming 0.10.0</a></li></ul></div></div><div class="nav-item"><div class="dropdown-wrapper"><a class="dropdown-title"><span class="title">ASF</span> <span class="arrow right"></span></a> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="http://www.apache.org/" class="nav-link external">
Foundation
<!----></a></li><li class="dropdown-item"><!----> <a href="http://www.apache.org/licenses/" class="nav-link external">
License
<!----></a></li><li class="dropdown-item"><!----> <a href="http://www.apache.org/security/" class="nav-link external">
Security
<!----></a></li><li class="dropdown-item"><!----> <a href="http://www.apache.org/foundation/sponsorship.html" class="nav-link external">
Sponsorship
<!----></a></li><li class="dropdown-item"><!----> <a href="http://www.apache.org/foundation/thanks.html" class="nav-link external">
Thanks
<!----></a></li><li class="dropdown-item"><!----> <a href="http://www.apache.org/events/current-event" class="nav-link external">
Current Events
<!----></a></li></ul></div></div><div class="nav-item"><div class="dropdown-wrapper"><a class="dropdown-title"><span class="title">Languages</span> <span class="arrow right"></span></a> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/UserGuide/V0.11.x/Operation Manual/DML Data Manipulation Language.html" class="nav-link">English</a></li><li class="dropdown-item"><!----> <a href="/zh/UserGuide/V0.11.x/Operation Manual/DML Data Manipulation Language.html" class="nav-link">简体中文</a></li></ul></div></div> <a href="https://github.com/apache/iotdb.git" target="_blank" rel="noopener noreferrer" class="repo-link">
gitHub
<span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></nav></div></header> <div class="sidebar-mask"></div> <aside class="sidebar"><nav class="nav-links"><div class="nav-item"><div class="dropdown-wrapper"><a class="dropdown-title"><span class="title">Document</span> <span class="arrow right"></span></a> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/UserGuide/Master/Get Started/QuickStart.html" class="nav-link">In progress</a></li><li class="dropdown-item"><!----> <a href="/UserGuide/V0.11.x/Get Started/QuickStart.html" class="nav-link">V0.11.x</a></li><li class="dropdown-item"><!----> <a href="/UserGuide/V0.10.x/Get Started/QuickStart.html" class="nav-link">V0.10.x</a></li><li class="dropdown-item"><!----> <a href="/UserGuide/V0.9.x/0-Get Started/1-QuickStart.html" class="nav-link">V0.9.x</a></li><li class="dropdown-item"><!----> <a href="/UserGuide/V0.8.x/0-Get Started/1-QuickStart.html" class="nav-link">V0.8.x</a></li></ul></div></div><div class="nav-item"><a href="/SystemDesign/Architecture/Architecture.html" class="nav-link">System design</a></div><div class="nav-item"><a href="/Download/" class="nav-link">Download</a></div><div class="nav-item"><div class="dropdown-wrapper"><a class="dropdown-title"><span class="title">Community</span> <span class="arrow right"></span></a> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="https://cwiki.apache.org/confluence/display/iotdb" class="nav-link external">
Wiki
<!----></a></li><li class="dropdown-item"><!----> <a href="/Community/Community-Project Committers.html" class="nav-link">People</a></li><li class="dropdown-item"><!----> <a href="/Community/Community-Powered By.html" class="nav-link">Powered By</a></li><li class="dropdown-item"><!----> <a href="/Community/Materials.html" class="nav-link">Resources</a></li><li class="dropdown-item"><!----> <a href="/Community/Feedback.html" class="nav-link">Feedback</a></li></ul></div></div><div class="nav-item"><div class="dropdown-wrapper"><a class="dropdown-title"><span class="title">Development</span> <span class="arrow right"></span></a> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/Development/VoteRelease.html" class="nav-link">How to vote</a></li><li class="dropdown-item"><!----> <a href="/Development/HowToCommit.html" class="nav-link">How to Commit</a></li><li class="dropdown-item"><!----> <a href="/Development/Committer.html" class="nav-link">Become a Committer</a></li><li class="dropdown-item"><!----> <a href="/Development/ContributeGuide.html" class="nav-link">ContributeGuide</a></li><li class="dropdown-item"><!----> <a href="/Development/format-changelist.html" class="nav-link">Changelist of TsFile</a></li><li class="dropdown-item"><!----> <a href="/Development/rpc-changelist.html" class="nav-link">Changelist of RPC</a></li></ul></div></div><div class="nav-item"><div class="dropdown-wrapper"><a class="dropdown-title"><span class="title">Blog</span> <span class="arrow right"></span></a> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/Blog/Index.html" class="nav-link">Overview</a></li><li class="dropdown-item"><!----> <a href="/Blog/Release0_93.html" class="nav-link">Some Notes on Release 0.9.3 and upcoming 0.10.0</a></li></ul></div></div><div class="nav-item"><div class="dropdown-wrapper"><a class="dropdown-title"><span class="title">ASF</span> <span class="arrow right"></span></a> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="http://www.apache.org/" class="nav-link external">
Foundation
<!----></a></li><li class="dropdown-item"><!----> <a href="http://www.apache.org/licenses/" class="nav-link external">
License
<!----></a></li><li class="dropdown-item"><!----> <a href="http://www.apache.org/security/" class="nav-link external">
Security
<!----></a></li><li class="dropdown-item"><!----> <a href="http://www.apache.org/foundation/sponsorship.html" class="nav-link external">
Sponsorship
<!----></a></li><li class="dropdown-item"><!----> <a href="http://www.apache.org/foundation/thanks.html" class="nav-link external">
Thanks
<!----></a></li><li class="dropdown-item"><!----> <a href="http://www.apache.org/events/current-event" class="nav-link external">
Current Events
<!----></a></li></ul></div></div><div class="nav-item"><div class="dropdown-wrapper"><a class="dropdown-title"><span class="title">Languages</span> <span class="arrow right"></span></a> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/UserGuide/V0.11.x/Operation Manual/DML Data Manipulation Language.html" class="nav-link">English</a></li><li class="dropdown-item"><!----> <a href="/zh/UserGuide/V0.11.x/Operation Manual/DML Data Manipulation Language.html" class="nav-link">简体中文</a></li></ul></div></div> <a href="https://github.com/apache/iotdb.git" target="_blank" rel="noopener noreferrer" class="repo-link">
gitHub
<span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></nav> <ul class="sidebar-links"><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>IoTDB User Guide (V0.11.x)</span> <!----></p> <!----></section></li><li><section class="sidebar-group collapsable depth-0"><p class="sidebar-heading"><span>Get Started</span> <span class="arrow right"></span></p> <!----></section></li><li><section class="sidebar-group collapsable depth-0"><p class="sidebar-heading"><span>Overview</span> <span class="arrow right"></span></p> <!----></section></li><li><section class="sidebar-group collapsable depth-0"><p class="sidebar-heading"><span>Concept</span> <span class="arrow right"></span></p> <!----></section></li><li><section class="sidebar-group collapsable depth-0"><p class="sidebar-heading"><span>Server</span> <span class="arrow right"></span></p> <!----></section></li><li><section class="sidebar-group collapsable depth-0"><p class="sidebar-heading"><span>Client</span> <span class="arrow right"></span></p> <!----></section></li><li><section class="sidebar-group collapsable depth-0"><p class="sidebar-heading open"><span>Operation Manual</span> <span class="arrow down"></span></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/UserGuide/V0.11.x/Operation Manual/DDL Data Definition Language.html" class="sidebar-link">DDL (Data Definition Language)</a></li><li><a href="/UserGuide/V0.11.x/Operation Manual/DML Data Manipulation Language.html" class="active sidebar-link">DML (Data Manipulation Language)</a></li><li><a href="/UserGuide/V0.11.x/Operation Manual/Administration.html" class="sidebar-link">Administration</a></li><li><a href="/UserGuide/V0.11.x/Operation Manual/SQL Reference.html" class="sidebar-link">SQL Reference</a></li></ul></section></li><li><section class="sidebar-group collapsable depth-0"><p class="sidebar-heading"><span>System Tools</span> <span class="arrow right"></span></p> <!----></section></li><li><section class="sidebar-group collapsable depth-0"><p class="sidebar-heading"><span>Ecosystem Integration</span> <span class="arrow right"></span></p> <!----></section></li><li><section class="sidebar-group collapsable depth-0"><p class="sidebar-heading"><span>Architecture</span> <span class="arrow right"></span></p> <!----></section></li><li><section class="sidebar-group collapsable depth-0"><p class="sidebar-heading"><span>Comparison with TSDBs</span> <span class="arrow right"></span></p> <!----></section></li></ul> </aside> <main class="page"> <div class="content content__default"><h1 id="dml-data-manipulation-language"><a href="#dml-data-manipulation-language" class="header-anchor">#</a> DML (Data Manipulation Language)</h1> <h2 id="insert"><a href="#insert" class="header-anchor">#</a> INSERT</h2> <h3 id="insert-real-time-data"><a href="#insert-real-time-data" class="header-anchor">#</a> Insert Real-time Data</h3> <p>IoTDB provides users with a variety of ways to insert real-time data, such as directly inputting <a href="/UserGuide/V0.11.x/Operation Manual/SQL Reference.html">INSERT SQL statement</a> in <a href="/UserGuide/V0.11.x/Client/Command Line Interface.html">Client/Shell tools</a>, or using <a href="/UserGuide/V0.11.x/Client/Programming - JDBC.html">Java JDBC</a> to perform single or batch execution of <a href="/UserGuide/V0.11.x/Operation Manual/SQL Reference.html">INSERT SQL statement</a>.</p> <p>This section mainly introduces the use of <a href="/UserGuide/V0.11.x/Operation Manual/SQL Reference.html">INSERT SQL statement</a> for real-time data import in the scenario.</p> <h4 id="use-of-insert-statements"><a href="#use-of-insert-statements" class="header-anchor">#</a> Use of INSERT Statements</h4> <p>The <a href="/UserGuide/V0.11.x/Operation Manual/SQL Reference.html">INSERT SQL statement</a> statement is used to insert data into one or more specified timeseries created. For each point of data inserted, it consists of a <a href="/UserGuide/V0.11.x/Concept/Data Model and Terminology.html">timestamp</a> and a sensor acquisition value (see <a href="/UserGuide/V0.11.x/Concept/Data Type.html">Data Type</a>).</p> <p>In the scenario of this section, take two timeseries <code>root.ln.wf02.wt02.status</code> and <code>root.ln.wf02.wt02.hardware</code> as an example, and their data types are BOOLEAN and TEXT, respectively.</p> <p>The sample code for single column data insertion is as follows:</p> <div class="language- line-numbers-mode"><pre class="language-text"><code>IoTDB &gt; insert into root.ln.wf02.wt02(timestamp,status) values(1,true)
IoTDB &gt; insert into root.ln.wf02.wt02(timestamp,hardware) values(1, &quot;v1&quot;)
</code></pre> <div class="line-numbers-wrapper"><span class="line-number">1</span><br><span class="line-number">2</span><br></div></div><p>The above example code inserts the long integer timestamp and the value &quot;true&quot; into the timeseries <code>root.ln.wf02.wt02.status</code> and inserts the long integer timestamp and the value &quot;v1&quot; into the timeseries <code>root.ln.wf02.wt02.hardware</code>. When the execution is successful, cost time is shown to indicate that the data insertion has been completed.</p> <blockquote><p>Note: In IoTDB, TEXT type data can be represented by single and double quotation marks. The insertion statement above uses double quotation marks for TEXT type data. The following example will use single quotation marks for TEXT type data.</p></blockquote> <p>The INSERT statement can also support the insertion of multi-column data at the same time point. The sample code of inserting the values of the two timeseries at the same time point '2' is as follows:</p> <div class="language- line-numbers-mode"><pre class="language-text"><code>IoTDB &gt; insert into root.ln.wf02.wt02(timestamp, status, hardware) VALUES (2, false, 'v2')
</code></pre> <div class="line-numbers-wrapper"><span class="line-number">1</span><br></div></div><p>After inserting the data, we can simply query the inserted data using the SELECT statement:</p> <div class="language- line-numbers-mode"><pre class="language-text"><code>IoTDB &gt; select * from root.ln.wf02 where time &lt; 3
</code></pre> <div class="line-numbers-wrapper"><span class="line-number">1</span><br></div></div><p>The result is shown below. The query result shows that the insertion statements of single column and multi column data are performed correctly.</p> <center><img src="https://user-images.githubusercontent.com/13203019/51605021-c2ee1500-1f48-11e9-8f6b-ba9b48875a41.png" style="width:100%;max-width:800px;max-height:600px;margin-left:auto;margin-right:auto;display:block;"></center> <h3 id="error-handling-of-insert-statements"><a href="#error-handling-of-insert-statements" class="header-anchor">#</a> Error Handling of INSERT Statements</h3> <p>If the user inserts data into a non-existent timeseries, for example, execute the following commands:</p> <div class="language- line-numbers-mode"><pre class="language-text"><code>IoTDB &gt; insert into root.ln.wf02.wt02(timestamp, temperature) values(1,&quot;v1&quot;)
</code></pre> <div class="line-numbers-wrapper"><span class="line-number">1</span><br></div></div><p>Because <code>root.ln.wf02.wt02. temperature</code> does not exist, the system will return the following ERROR information:</p> <div class="language- line-numbers-mode"><pre class="language-text"><code>Msg: The resultDataType or encoding or compression of the last node temperature is conflicting in the storage group root.ln
</code></pre> <div class="line-numbers-wrapper"><span class="line-number">1</span><br></div></div><p>If the data type inserted by the user is inconsistent with the corresponding data type of the timeseries, for example, execute the following command:</p> <div class="language- line-numbers-mode"><pre class="language-text"><code>IoTDB &gt; insert into root.ln.wf02.wt02(timestamp,hardware) values(1,100)
</code></pre> <div class="line-numbers-wrapper"><span class="line-number">1</span><br></div></div><p>The system will return the following ERROR information:</p> <div class="language- line-numbers-mode"><pre class="language-text"><code>error: The TEXT data type should be covered by &quot; or '
</code></pre> <div class="line-numbers-wrapper"><span class="line-number">1</span><br></div></div><h2 id="select"><a href="#select" class="header-anchor">#</a> SELECT</h2> <h3 id="time-slice-query"><a href="#time-slice-query" class="header-anchor">#</a> Time Slice Query</h3> <p>This chapter mainly introduces the relevant examples of time slice query using IoTDB SELECT statements. Detailed SQL syntax and usage specifications can be found in <a href="/UserGuide/V0.11.x/Operation Manual/SQL Reference.html">SQL Documentation</a>. You can also use the <a href="/UserGuide/V0.11.x/Client/Programming - JDBC.html">Java JDBC</a> standard interface to execute related queries.</p> <h4 id="select-a-column-of-data-based-on-a-time-interval"><a href="#select-a-column-of-data-based-on-a-time-interval" class="header-anchor">#</a> Select a Column of Data Based on a Time Interval</h4> <p>The SQL statement is:</p> <div class="language- line-numbers-mode"><pre class="language-text"><code>select temperature from root.ln.wf01.wt01 where time &lt; 2017-11-01T00:08:00.000
</code></pre> <div class="line-numbers-wrapper"><span class="line-number">1</span><br></div></div><p>which means:</p> <p>The selected device is ln group wf01 plant wt01 device; the selected timeseries is the temperature sensor (temperature). The SQL statement requires that all temperature sensor values before the time point of &quot;2017-11-01T00:08:00.000&quot; be selected.</p> <p>The execution result of this SQL statement is as follows:</p> <center><img src="https://user-images.githubusercontent.com/23614968/61280074-da1c0a00-a7e9-11e9-8eb8-3809428043a8.png" style="width:100%;max-width:800px;max-height:600px;margin-left:auto;margin-right:auto;display:block;"></center> <h4 id="select-multiple-columns-of-data-based-on-a-time-interval"><a href="#select-multiple-columns-of-data-based-on-a-time-interval" class="header-anchor">#</a> Select Multiple Columns of Data Based on a Time Interval</h4> <p>The SQL statement is:</p> <div class="language- line-numbers-mode"><pre class="language-text"><code>select status, temperature from root.ln.wf01.wt01 where time &gt; 2017-11-01T00:05:00.000 and time &lt; 2017-11-01T00:12:00.000;
</code></pre> <div class="line-numbers-wrapper"><span class="line-number">1</span><br></div></div><p>which means:</p> <p>The selected device is ln group wf01 plant wt01 device; the selected timeseries is &quot;status&quot; and &quot;temperature&quot;. The SQL statement requires that the status and temperature sensor values between the time point of &quot;2017-11-01T00:05:00.000&quot; and &quot;2017-11-01T00:12:00.000&quot; be selected.</p> <p>The execution result of this SQL statement is as follows:
<center><img src="https://user-images.githubusercontent.com/23614968/61280328-40a12800-a7ea-11e9-85b9-3b8db67673a3.png" style="width:100%;max-width:800px;max-height:600px;margin-left:auto;margin-right:auto;display:block;"></center></p> <h4 id="select-multiple-columns-of-data-for-the-same-device-according-to-multiple-time-intervals"><a href="#select-multiple-columns-of-data-for-the-same-device-according-to-multiple-time-intervals" class="header-anchor">#</a> Select Multiple Columns of Data for the Same Device According to Multiple Time Intervals</h4> <p>IoTDB supports specifying multiple time interval conditions in a query. Users can combine time interval conditions at will according to their needs. For example, the SQL statement is:</p> <div class="language- line-numbers-mode"><pre class="language-text"><code>select status,temperature from root.ln.wf01.wt01 where (time &gt; 2017-11-01T00:05:00.000 and time &lt; 2017-11-01T00:12:00.000) or (time &gt;= 2017-11-01T16:35:00.000 and time &lt;= 2017-11-01T16:37:00.000);
</code></pre> <div class="line-numbers-wrapper"><span class="line-number">1</span><br></div></div><p>which means:</p> <p>The selected device is ln group wf01 plant wt01 device; the selected timeseries is &quot;status&quot; and &quot;temperature&quot;; the statement specifies two different time intervals, namely &quot;2017-11-01T00:05:00.000 to 2017-11-01T00:12:00.000&quot; and &quot;2017-11-01T16:35:00.000 to 2017-11-01T16:37:00.000&quot;. The SQL statement requires that the values of selected timeseries satisfying any time interval be selected.</p> <p>The execution result of this SQL statement is as follows:
<center><img src="https://user-images.githubusercontent.com/23614968/61280449-780fd480-a7ea-11e9-8ed0-70fa9dfda80f.png" style="width:100%;max-width:800px;max-height:600px;margin-left:auto;margin-right:auto;display:block;"></center></p> <h4 id="choose-multiple-columns-of-data-for-different-devices-according-to-multiple-time-intervals"><a href="#choose-multiple-columns-of-data-for-different-devices-according-to-multiple-time-intervals" class="header-anchor">#</a> Choose Multiple Columns of Data for Different Devices According to Multiple Time Intervals</h4> <p>The system supports the selection of data in any column in a query, i.e., the selected columns can come from different devices. For example, the SQL statement is:</p> <div class="language- line-numbers-mode"><pre class="language-text"><code>select wf01.wt01.status,wf02.wt02.hardware from root.ln where (time &gt; 2017-11-01T00:05:00.000 and time &lt; 2017-11-01T00:12:00.000) or (time &gt;= 2017-11-01T16:35:00.000 and time &lt;= 2017-11-01T16:37:00.000);
</code></pre> <div class="line-numbers-wrapper"><span class="line-number">1</span><br></div></div><p>which means:</p> <p>The selected timeseries are &quot;the power supply status of ln group wf01 plant wt01 device&quot; and &quot;the hardware version of ln group wf02 plant wt02 device&quot;; the statement specifies two different time intervals, namely &quot;2017-11-01T00:05:00.000 to 2017-11-01T00:12:00.000&quot; and &quot;2017-11-01T16:35:00.000 to 2017-11-01T16:37:00.000&quot;. The SQL statement requires that the values of selected timeseries satisfying any time interval be selected.</p> <p>The execution result of this SQL statement is as follows:
<center><img src="https://user-images.githubusercontent.com/13203019/51577450-dcfe0800-1ef4-11e9-9399-4ba2b2b7fb73.jpg" style="width:100%;max-width:800px;max-height:600px;margin-left:auto;margin-right:auto;display:block;"></center></p> <h4 id="order-by-time-query"><a href="#order-by-time-query" class="header-anchor">#</a> Order By Time Query</h4> <p>IoTDB supports the 'order by time' statement since 0.11, it's used to display results in descending order by time.
For example, the SQL statement is:</p> <div class="language-sql line-numbers-mode"><pre class="language-sql"><code><span class="token keyword">select</span> <span class="token operator">*</span> <span class="token keyword">from</span> root<span class="token punctuation">.</span>ln <span class="token keyword">where</span> <span class="token keyword">time</span> <span class="token operator">&gt;</span> <span class="token number">1</span> <span class="token keyword">order</span> <span class="token keyword">by</span> <span class="token keyword">time</span> <span class="token keyword">desc</span> <span class="token keyword">limit</span> <span class="token number">10</span><span class="token punctuation">;</span>
</code></pre> <div class="line-numbers-wrapper"><span class="line-number">1</span><br></div></div><h3 id="aggregate-query"><a href="#aggregate-query" class="header-anchor">#</a> Aggregate Query</h3> <p>This section mainly introduces the related examples of aggregate query.</p> <h4 id="count-points"><a href="#count-points" class="header-anchor">#</a> Count Points</h4> <div class="language- line-numbers-mode"><pre class="language-text"><code>select count(status) from root.ln.wf01.wt01;
</code></pre> <div class="line-numbers-wrapper"><span class="line-number">1</span><br></div></div><table><thead><tr><th>count(root.ln.wf01.wt01.status)</th></tr></thead> <tbody><tr><td>4</td></tr></tbody></table> <h5 id="count-points-by-level"><a href="#count-points-by-level" class="header-anchor">#</a> Count Points By Level</h5> <p>Level could be defined to show count the number of points of each node at the given level in current Metadata Tree.</p> <p>This could be used to query the number of points under each device.</p> <p>The SQL statement is:</p> <div class="language- line-numbers-mode"><pre class="language-text"><code>select count(status) from root.ln.wf01.wt01 group by level=1;
</code></pre> <div class="line-numbers-wrapper"><span class="line-number">1</span><br></div></div><table><thead><tr><th>Time</th> <th>count(root.ln)</th></tr></thead> <tbody><tr><td>0</td> <td>7</td></tr></tbody></table> <div class="language- line-numbers-mode"><pre class="language-text"><code>select count(status) from root.ln.wf01.wt01 group by level=2;
</code></pre> <div class="line-numbers-wrapper"><span class="line-number">1</span><br></div></div><table><thead><tr><th>Time</th> <th>count(root.ln.wf01)</th> <th>count(root.ln.wf02)</th></tr></thead> <tbody><tr><td>0</td> <td>4</td> <td>3</td></tr></tbody></table> <h3 id="down-frequency-aggregate-query"><a href="#down-frequency-aggregate-query" class="header-anchor">#</a> Down-Frequency Aggregate Query</h3> <p>This section mainly introduces the related examples of down-frequency aggregation query,
using the <a href="/UserGuide/V0.11.x/Operation Manual/SQL Reference.html">GROUP BY clause</a>,
which is used to partition the result set according to the user's given partitioning conditions and aggregate the partitioned result set.
IoTDB supports partitioning result sets according to time interval and customized sliding step which should not be smaller than the time interval and defaults to equal the time interval if not set. And by default results are sorted by time in ascending order.
You can also use the <a href="/UserGuide/V0.11.x/Client/Programming - Native API.html">Java JDBC</a> standard interface to execute related queries.</p> <p>The GROUP BY statement provides users with three types of specified parameters:</p> <ul><li>Parameter 1: The display window on the time axis</li> <li>Parameter 2: Time interval for dividing the time axis(should be positive)</li> <li>Parameter 3: Time sliding step (optional and should not be smaller than the time interval and defaults to equal the time interval if not set)</li></ul> <p>The actual meanings of the three types of parameters are shown in Figure 5.2 below.
Among them, the parameter 3 is optional.
There are three typical examples of frequency reduction aggregation:
parameter 3 not specified,
parameter 3 specified,
and value filtering conditions specified.</p> <center><img src="https://user-images.githubusercontent.com/16079446/69109512-f808bc80-0ab2-11ea-9e4d-b2b2f58fb474.png" style="width:100%;max-width:800px;max-height:600px;margin-left:auto;margin-right:auto;display:block;"></center> <p><strong>Figure 5.2 The actual meanings of the three types of parameters</strong></p> <h4 id="down-frequency-aggregate-query-without-specifying-the-sliding-step-length"><a href="#down-frequency-aggregate-query-without-specifying-the-sliding-step-length" class="header-anchor">#</a> Down-Frequency Aggregate Query without Specifying the Sliding Step Length</h4> <p>The SQL statement is:</p> <div class="language- line-numbers-mode"><pre class="language-text"><code>select count(status), max_value(temperature) from root.ln.wf01.wt01 group by ([2017-11-01T00:00:00, 2017-11-07T23:00:00),1d);
</code></pre> <div class="line-numbers-wrapper"><span class="line-number">1</span><br></div></div><p>which means:</p> <p>Since the sliding step length is not specified, the GROUP BY statement by default set the sliding step the same as the time interval which is <code>1d</code>.</p> <p>The fist parameter of the GROUP BY statement above is the display window parameter, which determines the final display range is [2017-11-01T00:00:00, 2017-11-07T23:00:00).</p> <p>The second parameter of the GROUP BY statement above is the time interval for dividing the time axis. Taking this parameter (1d) as time interval and startTime of the display window as the dividing origin, the time axis is divided into several continuous intervals, which are [0,1d), [1d, 2d), [2d, 3d), etc.</p> <p>Then the system will use the time and value filtering condition in the WHERE clause and the first parameter of the GROUP BY statement as the data filtering condition to obtain the data satisfying the filtering condition (which in this case is the data in the range of [2017-11-01T00:00:00, 2017-11-07 T23:00:00]), and map these data to the previously segmented time axis (in this case there are mapped data in every 1-day period from 2017-11-01T00:00:00 to 2017-11-07T23:00:00:00).</p> <p>Since there is data for each time period in the result range to be displayed, the execution result of the SQL statement is shown below:</p> <center><img src="https://user-images.githubusercontent.com/16079446/69116068-eed51b00-0ac5-11ea-9731-b5a45c5cd224.png" style="width:100%;max-width:800px;max-height:600px;margin-left:auto;margin-right:auto;display:block;"></center> <h4 id="down-frequency-aggregate-query-specifying-the-sliding-step-length"><a href="#down-frequency-aggregate-query-specifying-the-sliding-step-length" class="header-anchor">#</a> Down-Frequency Aggregate Query Specifying the Sliding Step Length</h4> <p>The SQL statement is:</p> <div class="language- line-numbers-mode"><pre class="language-text"><code>select count(status), max_value(temperature) from root.ln.wf01.wt01 group by ([2017-11-01 00:00:00, 2017-11-07 23:00:00), 3h, 1d);
</code></pre> <div class="line-numbers-wrapper"><span class="line-number">1</span><br></div></div><p>which means:</p> <p>Since the user specifies the sliding step parameter as 1d, the GROUP BY statement will move the time interval <code>1 day</code> long instead of <code>3 hours</code> as default.</p> <p>That means we want to fetch all the data of 00:00:00 to 02:59:59 every day from 2017-11-01 to 2017-11-07.</p> <p>The first parameter of the GROUP BY statement above is the display window parameter, which determines the final display range is [2017-11-01T00:00:00, 2017-11-07T23:00:00).</p> <p>The second parameter of the GROUP BY statement above is the time interval for dividing the time axis. Taking this parameter (3h) as time interval and the startTime of the display window as the dividing origin, the time axis is divided into several continuous intervals, which are [2017-11-01T00:00:00, 2017-11-01T03:00:00), [2017-11-02T00:00:00, 2017-11-02T03:00:00), [2017-11-03T00:00:00, 2017-11-03T03:00:00), etc.</p> <p>The third parameter of the GROUP BY statement above is the sliding step for each time interval moving.</p> <p>Then the system will use the time and value filtering condition in the WHERE clause and the first parameter of the GROUP BY statement as the data filtering condition to obtain the data satisfying the filtering condition (which in this case is the data in the range of [2017-11-01T00:00:00, 2017-11-07T23:00:00]), and map these data to the previously segmented time axis (in this case there are mapped data in every 3-hour period for each day from 2017-11-01T00:00:00 to 2017-11-07T23:00:00:00).</p> <p>Since there is data for each time period in the result range to be displayed, the execution result of the SQL statement is shown below:</p> <center><img src="https://user-images.githubusercontent.com/16079446/69116083-f85e8300-0ac5-11ea-84f1-59d934eee96e.png" style="width:100%;max-width:800px;max-height:600px;margin-left:auto;margin-right:auto;display:block;"></center> <h4 id="down-frequency-aggregate-query-specifying-the-value-filtering-conditions"><a href="#down-frequency-aggregate-query-specifying-the-value-filtering-conditions" class="header-anchor">#</a> Down-Frequency Aggregate Query Specifying the value Filtering Conditions</h4> <p>The SQL statement is:</p> <div class="language- line-numbers-mode"><pre class="language-text"><code>select count(status), max_value(temperature) from root.ln.wf01.wt01 where time &gt; 2017-11-01T01:00:00 and temperature &gt; 20 group by([2017-11-01T00:00:00, 2017-11-07T23:00:00), 3h, 1d);
</code></pre> <div class="line-numbers-wrapper"><span class="line-number">1</span><br></div></div><p>which means:</p> <p>Since the user specifies the sliding step parameter as 1d, the GROUP BY statement will move the time interval <code>1 day</code> long instead of <code>3 hours</code> as default.</p> <p>The first parameter of the GROUP BY statement above is the display window parameter, which determines the final display range is [2017-11-01T00:00:00, 2017-11-07T23:00:00).</p> <p>The second parameter of the GROUP BY statement above is the time interval for dividing the time axis. Taking this parameter (3h) as time interval and the startTime of the display window as the dividing origin, the time axis is divided into several continuous intervals, which are [2017-11-01T00:00:00, 2017-11-01T03:00:00), [2017-11-02T00:00:00, 2017-11-02T03:00:00), [2017-11-03T00:00:00, 2017-11-03T03:00:00), etc.</p> <p>The third parameter of the GROUP BY statement above is the sliding step for each time interval moving.</p> <p>Then the system will use the time and value filtering condition in the WHERE clause and the first parameter of the GROUP BY statement as the data filtering condition to obtain the data satisfying the filtering condition (which in this case is the data in the range of (2017-11-01T01:00:00, 2017-11-07T23:00:00] and satisfying root.ln.wf01.wt01.temperature &gt; 20), and map these data to the previously segmented time axis (in this case there are mapped data in every 3-hour period for each day from 2017-11-01T00:00:00 to 2017-11-07T23:00:00).</p> <center><img src="https://user-images.githubusercontent.com/16079446/69116088-001e2780-0ac6-11ea-9a01-dc45271d1dad.png" style="width:100%;max-width:800px;max-height:600px;margin-left:auto;margin-right:auto;display:block;"></center> <h4 id="left-open-and-right-close-range"><a href="#left-open-and-right-close-range" class="header-anchor">#</a> Left Open And Right Close Range</h4> <p>The SQL statement is:</p> <div class="language- line-numbers-mode"><pre class="language-text"><code>select count(status) from root.ln.wf01.wt01 group by((5, 40], 5ms);
</code></pre> <div class="line-numbers-wrapper"><span class="line-number">1</span><br></div></div><p>In this sql, the time interval is left open and right close, so we won't include the value of timestamp 5 and instead we will include the value of timestamp 40.</p> <p>We will get the result like following:</p> <table><thead><tr><th>Time</th> <th>count(root.ln.wf01.wt01.status)</th></tr></thead> <tbody><tr><td>10</td> <td>1</td></tr> <tr><td>15</td> <td>2</td></tr> <tr><td>20</td> <td>3</td></tr> <tr><td>25</td> <td>4</td></tr> <tr><td>30</td> <td>4</td></tr> <tr><td>35</td> <td>3</td></tr> <tr><td>40</td> <td>5</td></tr></tbody></table> <h4 id="down-frequency-aggregate-query-with-level-clause"><a href="#down-frequency-aggregate-query-with-level-clause" class="header-anchor">#</a> Down-Frequency Aggregate Query with Level Clause</h4> <p>Level could be defined to show count the number of points of each node at the given level in current Metadata Tree.</p> <p>This could be used to query the number of points under each device.</p> <p>The SQL statement is:</p> <p>Get down-frequency aggregate query by level.</p> <div class="language- line-numbers-mode"><pre class="language-text"><code>select count(status) from root.ln.wf01.wt01 group by ([0,20),3ms), level=1;
</code></pre> <div class="line-numbers-wrapper"><span class="line-number">1</span><br></div></div><table><thead><tr><th>Time</th> <th>count(root.ln)</th></tr></thead> <tbody><tr><td>0</td> <td>1</td></tr> <tr><td>3</td> <td>0</td></tr> <tr><td>6</td> <td>0</td></tr> <tr><td>9</td> <td>1</td></tr> <tr><td>12</td> <td>3</td></tr> <tr><td>15</td> <td>0</td></tr> <tr><td>18</td> <td>0</td></tr></tbody></table> <p>Down-frequency aggregate query with sliding step and by level.</p> <div class="language- line-numbers-mode"><pre class="language-text"><code>select count(status) from root.ln.wf01.wt01 group by ([0,20),2ms,3ms), level=1;
</code></pre> <div class="line-numbers-wrapper"><span class="line-number">1</span><br></div></div><table><thead><tr><th>Time</th> <th>count(root.ln)</th></tr></thead> <tbody><tr><td>0</td> <td>1</td></tr> <tr><td>3</td> <td>0</td></tr> <tr><td>6</td> <td>0</td></tr> <tr><td>9</td> <td>0</td></tr> <tr><td>12</td> <td>2</td></tr> <tr><td>15</td> <td>0</td></tr> <tr><td>18</td> <td>0</td></tr></tbody></table> <h4 id="down-frequency-aggregate-query-with-fill-clause"><a href="#down-frequency-aggregate-query-with-fill-clause" class="header-anchor">#</a> Down-Frequency Aggregate Query with Fill Clause</h4> <p>In group by fill, sliding step is not supported in group by clause</p> <p>Now, only last_value aggregation function is supported in group by fill.</p> <p>Linear fill is not supported in group by fill.</p> <h5 id="difference-between-previousuntillast-and-previous"><a href="#difference-between-previousuntillast-and-previous" class="header-anchor">#</a> Difference Between PREVIOUSUNTILLAST And PREVIOUS</h5> <ul><li>PREVIOUS will fill any null value as long as there exist value is not null before it.</li> <li>PREVIOUSUNTILLAST won't fill the result whose time is after the last time of that time series.</li></ul> <p>The SQL statement is:</p> <div class="language- line-numbers-mode"><pre class="language-text"><code>SELECT last_value(temperature) FROM root.ln.wf01.wt01 GROUP BY([8, 39), 5m) FILL (int32[PREVIOUSUNTILLAST])
SELECT last_value(temperature) FROM root.ln.wf01.wt01 GROUP BY([8, 39), 5m) FILL (int32[PREVIOUSUNTILLAST, 3m])
</code></pre> <div class="line-numbers-wrapper"><span class="line-number">1</span><br><span class="line-number">2</span><br></div></div><p>which means:</p> <p>using PREVIOUSUNTILLAST Fill way to fill the origin down-frequency aggregate query result.</p> <p>The path after SELECT in GROUP BY statement must be aggregate function, otherwise the system will give the corresponding error prompt, as shown below:</p> <center><img src="https://user-images.githubusercontent.com/16079446/69116099-0b715300-0ac6-11ea-8074-84e04797b8c7.png" style="width:100%;max-width:800px;max-height:600px;margin-left:auto;margin-right:auto;display:block;"></center> <h3 id="last-point-query"><a href="#last-point-query" class="header-anchor">#</a> Last point Query</h3> <p>In scenarios when IoT devices updates data in a fast manner, users are more interested in the most recent point of IoT devices.</p> <p>The Last point query is to return the most recent data point of the given timeseries in a three column format.</p> <p>The SQL statement is defined as:</p> <div class="language- line-numbers-mode"><pre class="language-text"><code>select last &lt;Path&gt; [COMMA &lt;Path&gt;]* from &lt; PrefixPath &gt; [COMMA &lt; PrefixPath &gt;]* &lt;WhereClause&gt;
</code></pre> <div class="line-numbers-wrapper"><span class="line-number">1</span><br></div></div><p>which means: Query and return the last data points of timeseries prefixPath.path.</p> <p>Only time filter with '&gt;' or '&gt;=' is supported in &lt;WhereClause&gt;. Any other filters given in the &lt;WhereClause&gt; will give an exception.</p> <p>The result will be returned in a three column table format.</p> <div class="language- line-numbers-mode"><pre class="language-text"><code>| Time | Path | Value |
</code></pre> <div class="line-numbers-wrapper"><span class="line-number">1</span><br></div></div><p>Example 1: get the last point of root.ln.wf01.wt01.speed:</p> <div class="language- line-numbers-mode"><pre class="language-text"><code>&gt; select last speed from root.ln.wf01.wt01
| Time | Path | Value |
| --- | ----------------------- | ----- |
| 5 | root.ln.wf01.wt01.speed | 100 |
</code></pre> <div class="line-numbers-wrapper"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br><span class="line-number">5</span><br></div></div><p>Example 2: get the last speed, status and temperature points of root.ln.wf01.wt01,
whose timestamp larger or equal to 5.</p> <div class="language- line-numbers-mode"><pre class="language-text"><code>&gt; select last speed, status, temperature from root.ln.wf01.wt01 where time &gt;= 5
| Time | Path | Value |
| --- | ---------------------------- | ----- |
| 5 | root.ln.wf01.wt01.speed | 100 |
| 7 | root.ln.wf01.wt01.status | true |
| 9 | root.ln.wf01.wt01.temperature| 35.7 |
</code></pre> <div class="line-numbers-wrapper"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br><span class="line-number">5</span><br><span class="line-number">6</span><br><span class="line-number">7</span><br></div></div><h3 id="automated-fill"><a href="#automated-fill" class="header-anchor">#</a> Automated Fill</h3> <p>In the actual use of IoTDB, when doing the query operation of timeseries, situations where the value is null at some time points may appear, which will obstruct the further analysis by users. In order to better reflect the degree of data change, users expect missing values to be automatically filled. Therefore, the IoTDB system introduces the function of Automated Fill.</p> <p>Automated fill function refers to filling empty values according to the user's specified method and effective time range when performing timeseries queries for single or multiple columns. If the queried point's value is not null, the fill function will not work.</p> <blockquote><p>Note: In the current version, IoTDB provides users with two methods: Previous and Linear. The previous method fills blanks with previous value. The linear method fills blanks through linear fitting. And the fill function can only be used when performing point-in-time queries.</p></blockquote> <h4 id="fill-function"><a href="#fill-function" class="header-anchor">#</a> Fill Function</h4> <ul><li>Previous Function</li></ul> <p>When the value of the queried timestamp is null, the value of the previous timestamp is used to fill the blank. The formalized previous method is as follows (see Section 7.1.3.6 for detailed syntax):</p> <div class="language- line-numbers-mode"><pre class="language-text"><code>select &lt;path&gt; from &lt;prefixPath&gt; where time = &lt;T&gt; fill(&lt;data_type&gt;[previous, &lt;before_range&gt;], …)
</code></pre> <div class="line-numbers-wrapper"><span class="line-number">1</span><br></div></div><p>Detailed descriptions of all parameters are given in Table 3-4.</p> <center>**Table 3-4 Previous fill paramter list**
<table><thead><tr><th style="text-align:left;">Parameter name (case insensitive)</th> <th style="text-align:left;">Interpretation</th></tr></thead> <tbody><tr><td style="text-align:left;">path, prefixPath</td> <td style="text-align:left;">query path; mandatory field</td></tr> <tr><td style="text-align:left;">T</td> <td style="text-align:left;">query timestamp (only one can be specified); mandatory field</td></tr> <tr><td style="text-align:left;">data_type</td> <td style="text-align:left;">the type of data used by the fill method. Optional values are int32, int64, float, double, boolean, text; optional field</td></tr> <tr><td style="text-align:left;">before_range</td> <td style="text-align:left;">represents the valid time range of the previous method. The previous method works when there are values in the [T-before_range, T] range. When before_range is not specified, before_range takes the default value default_fill_interval; -1 represents infinit; optional field</td></tr></tbody></table></center> <p>Here we give an example of filling null values using the previous method. The SQL statement is as follows:</p> <div class="language- line-numbers-mode"><pre class="language-text"><code>select temperature from root.sgcc.wf03.wt01 where time = 2017-11-01T16:37:50.000 fill(float[previous, 1m])
</code></pre> <div class="line-numbers-wrapper"><span class="line-number">1</span><br></div></div><p>which means:</p> <p>Because the timeseries root.sgcc.wf03.wt01.temperature is null at 2017-11-01T16:37:50.000, the system uses the previous timestamp 2017-11-01T16:37:00.000 (and the timestamp is in the [2017-11-01T16:36:50.000, 2017-11-01T16:37:50.000] time range) for fill and display.</p> <p>On the <a href="https://github.com/thulab/iotdb/files/4438687/OtherMaterial-Sample.Data.txt" target="_blank" rel="noopener noreferrer">sample data<span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a>, the execution result of this statement is shown below:
<center><img src="https://user-images.githubusercontent.com/13203019/51577616-67df0280-1ef5-11e9-9dff-2eb8342074eb.jpg" style="width:100%;max-width:800px;max-height:600px;margin-left:auto;margin-right:auto;display:block;"></center></p> <p>It is worth noting that if there is no value in the specified valid time range, the system will not fill the null value, as shown below:
<center><img src="https://user-images.githubusercontent.com/13203019/51577679-9f4daf00-1ef5-11e9-8d8b-06a58de6efc1.jpg" style="width:100%;max-width:800px;max-height:600px;margin-left:auto;margin-right:auto;display:block;"></center></p> <ul><li>Linear Method</li></ul> <p>When the value of the queried timestamp is null, the value of the previous and the next timestamp is used to fill the blank. The formalized linear method is as follows:</p> <div class="language- line-numbers-mode"><pre class="language-text"><code>select &lt;path&gt; from &lt;prefixPath&gt; where time = &lt;T&gt; fill(&lt;data_type&gt;[linear, &lt;before_range&gt;, &lt;after_range&gt;]…)
</code></pre> <div class="line-numbers-wrapper"><span class="line-number">1</span><br></div></div><p>Detailed descriptions of all parameters are given in Table 3-5.</p> <center>**Table 3-5 Linear fill paramter list**
<table><thead><tr><th style="text-align:left;">Parameter name (case insensitive)</th> <th style="text-align:left;">Interpretation</th></tr></thead> <tbody><tr><td style="text-align:left;">path, prefixPath</td> <td style="text-align:left;">query path; mandatory field</td></tr> <tr><td style="text-align:left;">T</td> <td style="text-align:left;">query timestamp (only one can be specified); mandatory field</td></tr> <tr><td style="text-align:left;">data_type</td> <td style="text-align:left;">the type of data used by the fill method. Optional values are int32, int64, float, double, boolean, text; optional field</td></tr> <tr><td style="text-align:left;">before_range, after_range</td> <td style="text-align:left;">represents the valid time range of the linear method. The previous method works when there are values in the [T-before_range, T+after_range] range. When before_range and after_range are not explicitly specified, default_fill_interval is used. -1 represents infinity; optional field</td></tr></tbody></table></center> <p><strong>Note</strong> if the timeseries has a valid value at query timestamp T, this value will be used as the linear fill value.
Otherwise, if there is no valid fill value in either range [T-before_range,T] or [T, T + after_range], linear fill method will return null.</p> <p>Here we give an example of filling null values using the linear method. The SQL statement is as follows:</p> <div class="language- line-numbers-mode"><pre class="language-text"><code>select temperature from root.sgcc.wf03.wt01 where time = 2017-11-01T16:37:50.000 fill(float [linear, 1m, 1m])
</code></pre> <div class="line-numbers-wrapper"><span class="line-number">1</span><br></div></div><p>which means:</p> <p>Because the timeseries root.sgcc.wf03.wt01.temperature is null at 2017-11-01T16:37:50.000, the system uses the previous timestamp 2017-11-01T16:37:00.000 (and the timestamp is in the [2017-11-01T16:36:50.000, 2017-11-01T16:37:50.000] time range) and its value 21.927326, the next timestamp 2017-11-01T16:38:00.000 (and the timestamp is in the [2017-11-01T16:37:50.000, 2017-11-01T16:38:50.000] time range) and its value 25.311783 to perform linear fitting calculation: 21.927326 + (25.311783-21.927326)/60s * 50s = 24.747707</p> <p>On the <a href="https://github.com/thulab/iotdb/files/4438687/OtherMaterial-Sample.Data.txt" target="_blank" rel="noopener noreferrer">sample data<span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a>, the execution result of this statement is shown below:
<center><img src="https://user-images.githubusercontent.com/13203019/51577727-d4f29800-1ef5-11e9-8ff3-3bb519da3993.jpg" style="width:100%;max-width:800px;max-height:600px;margin-left:auto;margin-right:auto;display:block;"></center></p> <h4 id="correspondence-between-data-type-and-fill-method"><a href="#correspondence-between-data-type-and-fill-method" class="header-anchor">#</a> Correspondence between Data Type and Fill Method</h4> <p>Data types and the supported fill methods are shown in Table 3-6.</p> <center>**Table 3-6 Data types and the supported fill methods**
<table><thead><tr><th style="text-align:left;">Data Type</th> <th style="text-align:left;">Supported Fill Methods</th></tr></thead> <tbody><tr><td style="text-align:left;">boolean</td> <td style="text-align:left;">previous</td></tr> <tr><td style="text-align:left;">int32</td> <td style="text-align:left;">previous, linear</td></tr> <tr><td style="text-align:left;">int64</td> <td style="text-align:left;">previous, linear</td></tr> <tr><td style="text-align:left;">float</td> <td style="text-align:left;">previous, linear</td></tr> <tr><td style="text-align:left;">double</td> <td style="text-align:left;">previous, linear</td></tr> <tr><td style="text-align:left;">text</td> <td style="text-align:left;">previous</td></tr></tbody></table></center> <p>It is worth noting that IoTDB will give error prompts for fill methods that are not supported by data types, as shown below:</p> <center><img src="https://user-images.githubusercontent.com/13203019/51577741-e340b400-1ef5-11e9-9238-a4eaf498ab84.jpg" style="width:100%;max-width:800px;max-height:600px;margin-left:auto;margin-right:auto;display:block;"></center> <p>When the fill method is not specified, each data type bears its own default fill methods and parameters. The corresponding relationship is shown in Table 3-7.</p> <center>**Table 3-7 Default fill methods and parameters for various data types**
<table><thead><tr><th style="text-align:left;">Data Type</th> <th style="text-align:left;">Default Fill Methods and Parameters</th></tr></thead> <tbody><tr><td style="text-align:left;">boolean</td> <td style="text-align:left;">previous, 600000</td></tr> <tr><td style="text-align:left;">int32</td> <td style="text-align:left;">previous, 600000</td></tr> <tr><td style="text-align:left;">int64</td> <td style="text-align:left;">previous, 600000</td></tr> <tr><td style="text-align:left;">float</td> <td style="text-align:left;">previous, 600000</td></tr> <tr><td style="text-align:left;">double</td> <td style="text-align:left;">previous, 600000</td></tr> <tr><td style="text-align:left;">text</td> <td style="text-align:left;">previous, 600000</td></tr></tbody></table></center> <blockquote><p>Note: In version 0.7.0, at least one fill method should be specified in the Fill statement.</p></blockquote> <h3 id="row-and-column-control-over-query-results"><a href="#row-and-column-control-over-query-results" class="header-anchor">#</a> Row and Column Control over Query Results</h3> <p>IoTDB provides <a href="/UserGuide/V0.11.x/Operation Manual/SQL Reference.html">LIMIT/SLIMIT</a> clause and <a href="/UserGuide/V0.11.x/Operation Manual/SQL Reference.html">OFFSET/SOFFSET</a>
clause in order to make users have more control over query results.
The use of LIMIT and SLIMIT clauses allows users to control the number of rows and columns of query results,
and the use of OFFSET and SOFSET clauses allows users to set the starting position of the results for display.</p> <p>Note that the LIMIT and OFFSET are not supported in group by query.</p> <p>This chapter mainly introduces related examples of row and column control of query results. You can also use the <a href="/UserGuide/V0.11.x/Client/Programming - JDBC.html">Java JDBC</a> standard interface to execute queries.</p> <h4 id="row-control-over-query-results"><a href="#row-control-over-query-results" class="header-anchor">#</a> Row Control over Query Results</h4> <p>By using LIMIT and OFFSET clauses, users control the query results in a row-related manner. We demonstrate how to use LIMIT and OFFSET clauses through the following examples.</p> <ul><li>Example 1: basic LIMIT clause</li></ul> <p>The SQL statement is:</p> <div class="language- line-numbers-mode"><pre class="language-text"><code>select status, temperature from root.ln.wf01.wt01 limit 10
</code></pre> <div class="line-numbers-wrapper"><span class="line-number">1</span><br></div></div><p>which means:</p> <p>The selected device is ln group wf01 plant wt01 device; the selected timeseries is &quot;status&quot; and &quot;temperature&quot;. The SQL statement requires the first 10 rows of the query result.</p> <p>The result is shown below:</p> <center><img src="https://user-images.githubusercontent.com/13203019/51577752-efc50c80-1ef5-11e9-9071-da2bbd8b9bdd.jpg" style="width:100%;max-width:800px;max-height:600px;margin-left:auto;margin-right:auto;display:block;"></center> <ul><li>Example 2: LIMIT clause with OFFSET</li></ul> <p>The SQL statement is:</p> <div class="language- line-numbers-mode"><pre class="language-text"><code>select status, temperature from root.ln.wf01.wt01 limit 5 offset 3
</code></pre> <div class="line-numbers-wrapper"><span class="line-number">1</span><br></div></div><p>which means:</p> <p>The selected device is ln group wf01 plant wt01 device; the selected timeseries is &quot;status&quot; and &quot;temperature&quot;. The SQL statement requires rows 3 to 7 of the query result be returned (with the first row numbered as row 0).</p> <p>The result is shown below:</p> <center><img src="https://user-images.githubusercontent.com/13203019/51577773-08352700-1ef6-11e9-883f-8d353bef2bdc.jpg" style="width:100%;max-width:800px;max-height:600px;margin-left:auto;margin-right:auto;display:block;"></center> <ul><li>Example 3: LIMIT clause combined with WHERE clause</li></ul> <p>The SQL statement is:</p> <div class="language- line-numbers-mode"><pre class="language-text"><code>select status,temperature from root.ln.wf01.wt01 where time &gt; 2017-11-01T00:05:00.000 and time&lt; 2017-11-01T00:12:00.000 limit 2 offset 3
</code></pre> <div class="line-numbers-wrapper"><span class="line-number">1</span><br></div></div><p>which means:</p> <p>The selected device is ln group wf01 plant wt01 device; the selected timeseries is &quot;status&quot; and &quot;temperature&quot;. The SQL statement requires rows 3 to 4 of the status and temperature sensor values between the time point of &quot;2017-11-01T00:05:00.000&quot; and &quot;2017-11-01T00:12:00.000&quot; (with the first row numbered as row 0).</p> <p>The result is shown below:</p> <center><img src="https://user-images.githubusercontent.com/13203019/51577789-15521600-1ef6-11e9-86ca-d7b2c947367f.jpg" style="width:100%;max-width:800px;max-height:600px;margin-left:auto;margin-right:auto;display:block;"></center> <ul><li>Example 4: LIMIT clause combined with GROUP BY clause</li></ul> <p>The SQL statement is:</p> <div class="language- line-numbers-mode"><pre class="language-text"><code>select count(status), max_value(temperature) from root.ln.wf01.wt01 group by ([2017-11-01T00:00:00, 2017-11-07T23:00:00),1d) limit 5 offset 3
</code></pre> <div class="line-numbers-wrapper"><span class="line-number">1</span><br></div></div><p>which means:</p> <p>The SQL statement clause requires rows 3 to 7 of the query result be returned (with the first row numbered as row 0).</p> <p>The result is shown below:</p> <center><img src="https://user-images.githubusercontent.com/13203019/51577796-1e42e780-1ef6-11e9-8987-be443000a77e.jpg" style="width:100%;max-width:800px;max-height:600px;margin-left:auto;margin-right:auto;display:block;"></center> <p>It is worth noting that because the current FILL clause can only fill in the missing value of timeseries at a certain time point, that is to say, the execution result of FILL clause is exactly one line, so LIMIT and OFFSET are not expected to be used in combination with FILL clause, otherwise errors will be prompted. For example, executing the following SQL statement:</p> <div class="language- line-numbers-mode"><pre class="language-text"><code>select temperature from root.sgcc.wf03.wt01 where time = 2017-11-01T16:37:50.000 fill(float[previous, 1m]) limit 10
</code></pre> <div class="line-numbers-wrapper"><span class="line-number">1</span><br></div></div><p>The SQL statement will not be executed and the corresponding error prompt is given as follows:</p> <center><img src="https://user-images.githubusercontent.com/19167280/61517266-6e2fe080-aa39-11e9-8015-154a8e8ace30.png" style="width:100%;max-width:800px;max-height:600px;margin-left:auto;margin-right:auto;display:block;"></center> <h4 id="column-control-over-query-results"><a href="#column-control-over-query-results" class="header-anchor">#</a> Column Control over Query Results</h4> <p>By using SLIMIT and SOFFSET clauses, users can control the query results in a column-related manner. We will demonstrate how to use SLIMIT and SOFFSET clauses through the following examples.</p> <ul><li>Example 1: basic SLIMIT clause</li></ul> <p>The SQL statement is:</p> <div class="language- line-numbers-mode"><pre class="language-text"><code>select * from root.ln.wf01.wt01 where time &gt; 2017-11-01T00:05:00.000 and time &lt; 2017-11-01T00:12:00.000 slimit 1
</code></pre> <div class="line-numbers-wrapper"><span class="line-number">1</span><br></div></div><p>which means:</p> <p>The selected device is ln group wf01 plant wt01 device; the selected timeseries is the first column under this device, i.e., the power supply status. The SQL statement requires the status sensor values between the time point of &quot;2017-11-01T00:05:00.000&quot; and &quot;2017-11-01T00:12:00.000&quot; be selected.</p> <p>The result is shown below:</p> <center><img src="https://user-images.githubusercontent.com/13203019/51577813-30bd2100-1ef6-11e9-94ef-dbeb450cf319.jpg" style="width:100%;max-width:800px;max-height:600px;margin-left:auto;margin-right:auto;display:block;"></center> <ul><li>Example 2: SLIMIT clause with SOFFSET</li></ul> <p>The SQL statement is:</p> <div class="language- line-numbers-mode"><pre class="language-text"><code>select * from root.ln.wf01.wt01 where time &gt; 2017-11-01T00:05:00.000 and time &lt; 2017-11-01T00:12:00.000 slimit 1 soffset 1
</code></pre> <div class="line-numbers-wrapper"><span class="line-number">1</span><br></div></div><p>which means:</p> <p>The selected device is ln group wf01 plant wt01 device; the selected timeseries is the second column under this device, i.e., the temperature. The SQL statement requires the temperature sensor values between the time point of &quot;2017-11-01T00:05:00.000&quot; and &quot;2017-11-01T00:12:00.000&quot; be selected.</p> <p>The result is shown below:</p> <center><img src="https://user-images.githubusercontent.com/13203019/51577827-39adf280-1ef6-11e9-81b5-876769607cd2.jpg" style="width:100%;max-width:800px;max-height:600px;margin-left:auto;margin-right:auto;display:block;"></center> <ul><li>Example 3: SLIMIT clause combined with GROUP BY clause</li></ul> <p>The SQL statement is:</p> <div class="language- line-numbers-mode"><pre class="language-text"><code>select max_value(*) from root.ln.wf01.wt01 group by ([2017-11-01T00:00:00, 2017-11-07T23:00:00),1d) slimit 1 soffset 1
</code></pre> <div class="line-numbers-wrapper"><span class="line-number">1</span><br></div></div><p>The result is shown below:</p> <center><img src="https://user-images.githubusercontent.com/13203019/51577840-44688780-1ef6-11e9-8abc-04ae78efa85b.jpg" style="width:100%;max-width:800px;max-height:600px;margin-left:auto;margin-right:auto;display:block;"></center> <ul><li>Example 4: SLIMIT clause combined with FILL clause</li></ul> <p>The SQL statement is:</p> <div class="language- line-numbers-mode"><pre class="language-text"><code>select * from root.sgcc.wf03.wt01 where time = 2017-11-01T16:37:50.000 fill(float[previous, 1m]) slimit 1 soffset 1
</code></pre> <div class="line-numbers-wrapper"><span class="line-number">1</span><br></div></div><p>which means:</p> <p>The selected device is ln group wf01 plant wt01 device; the selected timeseries is the second column under this device, i.e., the temperature.</p> <p>The result is shown below:</p> <center><img src="https://user-images.githubusercontent.com/13203019/51577855-4d595900-1ef6-11e9-8541-a4accd714b75.jpg" style="width:100%;max-width:800px;max-height:600px;margin-left:auto;margin-right:auto;display:block;"></center> <p>It is worth noting that SLIMIT clause is expected to be used in conjunction with star path or prefix path, and the system will prompt errors when SLIMIT clause is used in conjunction with complete path query. For example, executing the following SQL statement:</p> <div class="language- line-numbers-mode"><pre class="language-text"><code>select status,temperature from root.ln.wf01.wt01 where time &gt; 2017-11-01T00:05:00.000 and time &lt; 2017-11-01T00:12:00.000 slimit 1
</code></pre> <div class="line-numbers-wrapper"><span class="line-number">1</span><br></div></div><p>The SQL statement will not be executed and the corresponding error prompt is given as follows:
<center><img src="https://user-images.githubusercontent.com/13203019/51577867-577b5780-1ef6-11e9-978c-e02c1294bcc5.jpg" style="width:100%;max-width:800px;max-height:600px;margin-left:auto;margin-right:auto;display:block;"></center></p> <h4 id="row-and-column-control-over-query-results-2"><a href="#row-and-column-control-over-query-results-2" class="header-anchor">#</a> Row and Column Control over Query Results</h4> <p>In addition to row or column control over query results, IoTDB allows users to control both rows and columns of query results. Here is a complete example with both LIMIT clauses and SLIMIT clauses.</p> <p>The SQL statement is:</p> <div class="language- line-numbers-mode"><pre class="language-text"><code>select * from root.ln.wf01.wt01 limit 10 offset 100 slimit 2 soffset 0
</code></pre> <div class="line-numbers-wrapper"><span class="line-number">1</span><br></div></div><p>which means:</p> <p>The selected device is ln group wf01 plant wt01 device; the selected timeseries is columns 0 to 1 under this device (with the first column numbered as column 0). The SQL statement clause requires rows 100 to 109 of the query result be returned (with the first row numbered as row 0).</p> <p>The result is shown below:</p> <center><img src="https://user-images.githubusercontent.com/13203019/51577879-64984680-1ef6-11e9-9d7b-57dd60fab60e.jpg" style="width:100%;max-width:800px;max-height:600px;margin-left:auto;margin-right:auto;display:block;"></center> <h3 id="use-alias"><a href="#use-alias" class="header-anchor">#</a> Use Alias</h3> <p>Since the unique data model of IoTDB, lots of additional information like device will be carried before each sensor. Sometimes, we want to query just one specific device, then these prefix information show frequently will be redundant in this situation, influencing the analysis of result set. At this time, we can use <code>AS</code> function provided by IoTDB, assign an alias to time series selected in query.</p> <p>For example:</p> <div class="language- line-numbers-mode"><pre class="language-text"><code>select s1 as temperature, s2 as speed from root.ln.wf01.wt01;
</code></pre> <div class="line-numbers-wrapper"><span class="line-number">1</span><br></div></div><p>The result set is:</p> <table><thead><tr><th>Time</th> <th>temperature</th> <th>speed</th></tr></thead> <tbody><tr><td>...</td> <td>...</td> <td>...</td></tr></tbody></table> <h4 id="other-resultset-format"><a href="#other-resultset-format" class="header-anchor">#</a> Other ResultSet Format</h4> <p>In addition, IoTDB supports two other result set format: 'align by device' and 'disable align'.</p> <p>The 'align by device' indicates that the deviceId is considered as a column. Therefore, there are totally limited columns in the dataset.</p> <p>The SQL statement is:</p> <div class="language- line-numbers-mode"><pre class="language-text"><code>select s1,s2 from root.sg1.* ALIGN BY DEVICE
</code></pre> <div class="line-numbers-wrapper"><span class="line-number">1</span><br></div></div><p>For more syntax description, please read SQL REFERENCE.</p> <p>The 'disable align' indicaes that there are 3 columns for each time series in the resultset. For more syntax description, please read SQL REFERENCE.</p> <h4 id="error-handling"><a href="#error-handling" class="header-anchor">#</a> Error Handling</h4> <p>If the parameter N/SN of LIMIT/SLIMIT exceeds the size of the result set, IoTDB returns all the results as expected. For example, the query result of the original SQL statement consists of six rows, and we select the first 100 rows through the LIMIT clause:</p> <div class="language- line-numbers-mode"><pre class="language-text"><code>select status,temperature from root.ln.wf01.wt01 where time &gt; 2017-11-01T00:05:00.000 and time &lt; 2017-11-01T00:12:00.000 limit 100
</code></pre> <div class="line-numbers-wrapper"><span class="line-number">1</span><br></div></div><p>The result is shown below:</p> <center><img src="https://user-images.githubusercontent.com/13203019/51578187-ad9cca80-1ef7-11e9-897a-83e66a0f3d94.jpg" style="width:100%;max-width:800px;max-height:600px;margin-left:auto;margin-right:auto;display:block;"></center> <p>If the parameter N/SN of LIMIT/SLIMIT clause exceeds the allowable maximum value (N/SN is of type int32), the system prompts errors. For example, executing the following SQL statement:</p> <div class="language- line-numbers-mode"><pre class="language-text"><code>select status,temperature from root.ln.wf01.wt01 where time &gt; 2017-11-01T00:05:00.000 and time &lt; 2017-11-01T00:12:00.000 limit 1234567890123456789
</code></pre> <div class="line-numbers-wrapper"><span class="line-number">1</span><br></div></div><p>The SQL statement will not be executed and the corresponding error prompt is given as follows:</p> <center><img src="https://user-images.githubusercontent.com/19167280/61517469-e696a180-aa39-11e9-8ca5-42ea991d520e.png" style="width:100%;max-width:800px;max-height:600px;margin-left:auto;margin-right:auto;display:block;"></center> <p>If the parameter N/SN of LIMIT/SLIMIT clause is not a positive intege, the system prompts errors. For example, executing the following SQL statement:</p> <div class="language- line-numbers-mode"><pre class="language-text"><code>select status,temperature from root.ln.wf01.wt01 where time &gt; 2017-11-01T00:05:00.000 and time &lt; 2017-11-01T00:12:00.000 limit 13.1
</code></pre> <div class="line-numbers-wrapper"><span class="line-number">1</span><br></div></div><p>The SQL statement will not be executed and the corresponding error prompt is given as follows:</p> <center><img src="https://user-images.githubusercontent.com/19167280/61518094-68d39580-aa3b-11e9-993c-fc73c27540f7.png" style="width:100%;max-width:800px;max-height:600px;margin-left:auto;margin-right:auto;display:block;"></center> <p>If the parameter OFFSET of LIMIT clause exceeds the size of the result set, IoTDB will return an empty result set. For example, executing the following SQL statement:</p> <div class="language- line-numbers-mode"><pre class="language-text"><code>select status,temperature from root.ln.wf01.wt01 where time &gt; 2017-11-01T00:05:00.000 and time &lt; 2017-11-01T00:12:00.000 limit 2 offset 6
</code></pre> <div class="line-numbers-wrapper"><span class="line-number">1</span><br></div></div><p>The result is shown below:
<center><img src="https://user-images.githubusercontent.com/13203019/51578227-c60ce500-1ef7-11e9-98eb-175beb8d4086.jpg" style="width:100%;max-width:800px;max-height:600px;margin-left:auto;margin-right:auto;display:block;"></center></p> <p>If the parameter SOFFSET of SLIMIT clause is not smaller than the number of available timeseries, the system prompts errors. For example, executing the following SQL statement:</p> <div class="language- line-numbers-mode"><pre class="language-text"><code>select * from root.ln.wf01.wt01 where time &gt; 2017-11-01T00:05:00.000 and time &lt; 2017-11-01T00:12:00.000 slimit 1 soffset 2
</code></pre> <div class="line-numbers-wrapper"><span class="line-number">1</span><br></div></div><p>The SQL statement will not be executed and the corresponding error prompt is given as follows:
<center><img src="https://user-images.githubusercontent.com/13203019/51578237-cd33f300-1ef7-11e9-9aef-2a717c56ab54.jpg" style="width:100%;max-width:800px;max-height:600px;margin-left:auto;margin-right:auto;display:block;"></center></p> <h2 id="delete"><a href="#delete" class="header-anchor">#</a> DELETE</h2> <p>Users can delete data that meet the deletion condition in the specified timeseries by using the <a href="/UserGuide/V0.11.x/Operation Manual/SQL Reference.html">DELETE statement</a>. When deleting data, users can select one or more timeseries paths, prefix paths, or paths with star to delete data within a certain time interval.</p> <p>In a JAVA programming environment, you can use the <a href="/UserGuide/V0.11.x/Client/Programming - JDBC.html">Java JDBC</a> to execute single or batch UPDATE statements.</p> <h3 id="delete-single-timeseries"><a href="#delete-single-timeseries" class="header-anchor">#</a> Delete Single Timeseries</h3> <p>Taking ln Group as an example, there exists such a usage scenario:</p> <p>The wf02 plant's wt02 device has many segments of errors in its power supply status before 2017-11-01 16:26:00, and the data cannot be analyzed correctly. The erroneous data affected the correlation analysis with other devices. At this point, the data before this time point needs to be deleted. The SQL statement for this operation is</p> <div class="language- line-numbers-mode"><pre class="language-text"><code>delete from root.ln.wf02.wt02.status where time&lt;=2017-11-01T16:26:00;
</code></pre> <div class="line-numbers-wrapper"><span class="line-number">1</span><br></div></div><p>In case we hope to merely delete the data before 2017-11-01 16:26:00 in the year of 2017, The SQL statement is:</p> <div class="language- line-numbers-mode"><pre class="language-text"><code>delete from root.ln.wf02.wt02.status where time&gt;=2017-01-01T00:00:00 and time&lt;=2017-11-01T16:26:00;
</code></pre> <div class="line-numbers-wrapper"><span class="line-number">1</span><br></div></div><p>IoTDB supports to delete a range of timeseries points. Users can write SQL expressions as follows to specify the delete interval:</p> <div class="language- line-numbers-mode"><pre class="language-text"><code>delete from root.ln.wf02.wt02.status where time &lt; 10
delete from root.ln.wf02.wt02.status where time &lt;= 10
delete from root.ln.wf02.wt02.status where time &lt; 20 and time &gt; 10
delete from root.ln.wf02.wt02.status where time &lt;= 20 and time &gt;= 10
delete from root.ln.wf02.wt02.status where time &gt; 20
delete from root.ln.wf02.wt02.status where time &gt;= 20
delete from root.ln.wf02.wt02.status where time = 20
</code></pre> <div class="line-numbers-wrapper"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br><span class="line-number">5</span><br><span class="line-number">6</span><br><span class="line-number">7</span><br></div></div><p>Please pay attention that multiple intervals connected by &quot;OR&quot; expression are not supported in delete statement:</p> <div class="language- line-numbers-mode"><pre class="language-text"><code>delete from root.ln.wf02.wt02.status where time &gt; 4 or time &lt; 0
Msg: 303: Check metadata error: For delete statement, where clause can only contain atomic
expressions like : time &gt; XXX, time &lt;= XXX, or two atomic expressions connected by 'AND'
</code></pre> <div class="line-numbers-wrapper"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br></div></div><h3 id="delete-multiple-timeseries"><a href="#delete-multiple-timeseries" class="header-anchor">#</a> Delete Multiple Timeseries</h3> <p>If both the power supply status and hardware version of the ln group wf02 plant wt02 device before 2017-11-01 16:26:00 need to be deleted, <a href="/UserGuide/V0.11.x/Concept/Data Model and Terminology.html">the prefix path with broader meaning or the path with star</a> can be used to delete the data. The SQL statement for this operation is:</p> <div class="language- line-numbers-mode"><pre class="language-text"><code>delete from root.ln.wf02.wt02 where time &lt;= 2017-11-01T16:26:00;
</code></pre> <div class="line-numbers-wrapper"><span class="line-number">1</span><br></div></div><p>or</p> <div class="language- line-numbers-mode"><pre class="language-text"><code>delete from root.ln.wf02.wt02.* where time &lt;= 2017-11-01T16:26:00;
</code></pre> <div class="line-numbers-wrapper"><span class="line-number">1</span><br></div></div><p>It should be noted that when the deleted path does not exist, IoTDB will give the corresponding error prompt as shown below:</p> <div class="language- line-numbers-mode"><pre class="language-text"><code>IoTDB&gt; delete from root.ln.wf03.wt02.status where time &lt; now()
Msg: TimeSeries does not exist and its data cannot be deleted
</code></pre> <div class="line-numbers-wrapper"><span class="line-number">1</span><br><span class="line-number">2</span><br></div></div><h2 id="delete-time-partition-experimental"><a href="#delete-time-partition-experimental" class="header-anchor">#</a> Delete Time Partition (experimental)</h2> <p>You may delete all data in a time partition of a storage group using the following grammar:</p> <div class="language- line-numbers-mode"><pre class="language-text"><code>DELETE PARTITION root.ln 0,1,2
</code></pre> <div class="line-numbers-wrapper"><span class="line-number">1</span><br></div></div><p>The <code>0,1,2</code> above is the id of the partition that is to be deleted, you can find it from the IoTDB
data folders or convert a timestamp manually to an id using <code>timestamp / partitionInterval</code> (flooring), and the <code>partitionInterval</code> should be in your config (if time-partitioning is
supported in your version).</p> <p>Please notice that this function is experimental and mainly for development, please use it with care.</p></div> <div class="page-nav"><p class="inner"><span class="prev">
<a href="/UserGuide/V0.11.x/Operation Manual/DDL Data Definition Language.html" class="prev">
DDL (Data Definition Language)
</a></span> <span class="next"><a href="/UserGuide/V0.11.x/Operation Manual/Administration.html">
Administration
</a>
</span></p></div> <p style="text-align: center;">Copyright © 2021 The Apache Software Foundation.<br>
Apache and the Apache feather logo are trademarks of The Apache Software Foundation</p> <p style="text-align: center; margin-top: 10px; color: #444">
Contact us: Join QQ Group 659990460 | Add friend <i>tietouqiao</i> and be invited to Wechat Group<br>
see <a href="https://github.com/apache/iotdb/issues/1995">Join the community</a> for more</p></main></div><div class="global-ui"></div></div>
<script src="/assets/js/app.fe44b663.js" defer></script><script src="/assets/js/3.5626571b.js" defer></script><script src="/assets/js/179.84f3bdd6.js" defer></script>
</body>
</html>