drop database d2;


create database d2 vgroups 1 stt_trigger 1 maxrows 1000;
use d2;


CREATE STABLE can ( t1 timestamp, t2 timestamp, t3 timestamp, t4 timestamp, type binary(50), c_1 bigint level 'medium' compress 'lz4', c_2 bigint level 'medium' compress 'lz4', c_3 bigint level 'medium' compress 'lz4', c_4 bigint level 'medium' compress 'lz4', c_5 bigint level 'medium' compress 'lz4', c_6 bigint level 'medium' compress 'lz4', c_7 bigint level 'medium' compress 'lz4', c_8 bigint level 'medium' compress 'lz4', c_9 bigint level 'medium' compress 'lz4', c_10 bigint level 'medium' compress 'lz4', c_11 bigint level 'medium' compress 'lz4', c_12 bigint level 'medium' compress 'lz4', c_13 bigint level 'medium' compress 'lz4', c_14 bigint level 'medium' compress 'lz4', c_15 bigint level 'medium' compress 'lz4', c_16 bigint level 'medium' compress 'lz4', c_17 bigint level 'medium' compress 'lz4', c_18 bigint level 'medium' compress 'lz4', c_19 bigint level 'medium' compress 'lz4', c_20 bigint level 'medium' compress 'lz4', c_21 bigint level 'medium' compress 'lz4', c_22 bigint level 'medium' compress 'lz4', c_23 bigint level 'medium' compress 'lz4', c_24 bigint level 'medium' compress 'lz4', c_25 bigint level 'medium' compress 'lz4', c_26 bigint level 'medium' compress 'lz4', c_27 bigint level 'medium' compress 'lz4', c_28 bigint level 'medium' compress 'lz4', c_29 bigint level 'medium' compress 'lz4', c_30 bigint level 'medium' compress 'lz4', c_31 bigint level 'medium' compress 'lz4', c_32 bigint level 'medium' compress 'lz4', c_33 bigint level 'medium' compress 'lz4', c_34 bigint level 'medium' compress 'lz4', c_35 bigint level 'medium' compress 'lz4', c_36 bigint level 'medium' compress 'lz4', c_37 bigint level 'medium' compress 'lz4', c_38 bigint level 'medium' compress 'lz4', c_39 bigint level 'medium' compress 'lz4', c_40 bigint level 'medium' compress 'lz4', c_41 bigint level 'medium' compress 'lz4', c_42 bigint level 'medium' compress 'lz4', c_43 bigint level 'medium' compress 'lz4', c_44 bigint level 'medium' compress 'lz4', c_45 bigint level 'medium' compress 'lz4', c_46 bigint level 'medium' compress 'lz4', c_47 bigint level 'medium' compress 'lz4', c_48 bigint level 'medium' compress 'lz4', c_49 bigint level 'medium' compress 'lz4', c_50 bigint level 'medium' compress 'lz4', c_51 bigint level 'medium' compress 'lz4', c_52 bigint level 'medium' compress 'lz4', c_53 bigint level 'medium' compress 'lz4', c_54 bigint level 'medium' compress 'lz4', c_55 bigint level 'medium' compress 'lz4', c_56 bigint level 'medium' compress 'lz4', c_57 bigint level 'medium' compress 'lz4', c_58 bigint level 'medium' compress 'lz4', c_59 bigint level 'medium' compress 'lz4', c_60 bigint level 'medium' compress 'lz4', c_61 bigint level 'medium' compress 'lz4', c_62 bigint level 'medium' compress 'lz4', c_63 bigint level 'medium' compress 'lz4', c_64 bigint level 'medium' compress 'lz4', c_65 bigint level 'medium' compress 'lz4', c_66 bigint level 'medium' compress 'lz4', c_67 bigint level 'medium' compress 'lz4', c_68 bigint level 'medium' compress 'lz4', c_69 bigint level 'medium' compress 'lz4', c_70 bigint level 'medium' compress 'lz4', c_71 bigint level 'medium' compress 'lz4', c_72 bigint level 'medium' compress 'lz4', c_73 bigint level 'medium' compress 'lz4', c_74 bigint level 'medium' compress 'lz4', c_75 bigint level 'medium' compress 'lz4', c_76 bigint level 'medium' compress 'lz4', c_77 bigint level 'medium' compress 'lz4', c_78 bigint level 'medium' compress 'lz4', c_79 bigint level 'medium' compress 'lz4', c_80 bigint level 'medium' compress 'lz4', c_81 bigint level 'medium' compress 'lz4', c_82 bigint level 'medium' compress 'lz4', c_83 bigint level 'medium' compress 'lz4', c_84 bigint level 'medium' compress 'lz4', c_85 bigint level 'medium' compress 'lz4', c_86 bigint level 'medium' compress 'lz4', c_87 bigint level 'medium' compress 'lz4', c_88 bigint level 'medium' compress 'lz4', c_89 bigint level 'medium' compress 'lz4', c_90 bigint level 'medium' compress 'lz4', c_91 bigint level 'medium' compress 'lz4', c_92 bigint level 'medium' compress 'lz4', c_93 bigint level 'medium' compress 'lz4', c_94 bigint level 'medium' compress 'lz4', c_95 bigint level 'medium' compress 'lz4', c_96 bigint level 'medium' compress 'lz4', c_97 bigint level 'medium' compress 'lz4', c_98 bigint level 'medium' compress 'lz4', c_99 bigint level 'medium' compress 'lz4', c_100 bigint level 'medium' compress 'lz4', c_101 bigint level 'medium' compress 'lz4', c_102 bigint level 'medium' compress 'lz4', c_103 bigint level 'medium' compress 'lz4', c_104 bigint level 'medium' compress 'lz4', c_105 bigint level 'medium' compress 'lz4', c_106 bigint level 'medium' compress 'lz4', c_107 bigint level 'medium' compress 'lz4', c_108 bigint level 'medium' compress 'lz4', c_109 bigint level 'medium' compress 'lz4', c_110 bigint level 'medium' compress 'lz4', c_111 bigint level 'medium' compress 'lz4', c_112 bigint level 'medium' compress 'lz4', c_113 bigint level 'medium' compress 'lz4', c_114 bigint level 'medium' compress 'lz4', c_115 bigint level 'medium' compress 'lz4', c_116 bigint level 'medium' compress 'lz4', c_117 bigint level 'medium' compress 'lz4', c_118 bigint level 'medium' compress 'lz4', c_119 bigint level 'medium' compress 'lz4', c_120 bigint level 'medium' compress 'lz4', c_121 bigint level 'medium' compress 'lz4', c_122 bigint level 'medium' compress 'lz4', c_123 bigint level 'medium' compress 'lz4', c_124 bigint level 'medium' compress 'lz4', c_125 bigint level 'medium' compress 'lz4', c_126 bigint level 'medium' compress 'lz4', c_127 bigint level 'medium' compress 'lz4', c_128 bigint level 'medium' compress 'lz4', c_129 bigint level 'medium' compress 'lz4', c_130 bigint level 'medium' compress 'lz4', c_131 bigint level 'medium' compress 'lz4', c_132 bigint level 'medium' compress 'lz4', c_133 bigint level 'medium' compress 'lz4', c_134 bigint level 'medium' compress 'lz4', c_135 bigint level 'medium' compress 'lz4', c_136 bigint level 'medium' compress 'lz4', c_137 bigint level 'medium' compress 'lz4', c_138 bigint level 'medium' compress 'lz4', c_139 bigint level 'medium' compress 'lz4', c_140 bigint level 'medium' compress 'lz4', c_141 bigint level 'medium' compress 'lz4', c_142 bigint level 'medium' compress 'lz4', c_143 bigint level 'medium' compress 'lz4', c_144 bigint level 'medium' compress 'lz4', c_145 bigint level 'medium' compress 'lz4', c_146 bigint level 'medium' compress 'lz4', c_147 bigint level 'medium' compress 'lz4', c_148 bigint level 'medium' compress 'lz4', c_149 bigint level 'medium' compress 'lz4', c_150 bigint level 'medium' compress 'lz4', c_151 bigint level 'medium' compress 'lz4', c_152 bigint level 'medium' compress 'lz4', c_153 bigint level 'medium' compress 'lz4', c_154 bigint level 'medium' compress 'lz4', c_155 bigint level 'medium' compress 'lz4', c_156 bigint level 'medium' compress 'lz4', c_157 bigint level 'medium' compress 'lz4', c_158 bigint level 'medium' compress 'lz4', c_159 bigint level 'medium' compress 'lz4', c_160 bigint level 'medium' compress 'lz4', c_161 bigint level 'medium' compress 'lz4', c_162 bigint level 'medium' compress 'lz4', c_163 bigint level 'medium' compress 'lz4', c_164 bigint level 'medium' compress 'lz4', c_165 bigint level 'medium' compress 'lz4', c_166 bigint level 'medium' compress 'lz4', c_167 bigint level 'medium' compress 'lz4', c_168 bigint level 'medium' compress 'lz4', c_169 bigint level 'medium' compress 'lz4', c_170 bigint level 'medium' compress 'lz4', c_171 bigint level 'medium' compress 'lz4', c_172 bigint level 'medium' compress 'lz4', c_173 bigint level 'medium' compress 'lz4', c_174 bigint level 'medium' compress 'lz4', c_175 bigint level 'medium' compress 'lz4', c_176 bigint level 'medium' compress 'lz4', c_177 bigint level 'medium' compress 'lz4', c_178 bigint level 'medium' compress 'lz4', c_179 bigint level 'medium' compress 'lz4', c_180 bigint level 'medium' compress 'lz4', c_181 bigint level 'medium' compress 'lz4', c_182 bigint level 'medium' compress 'lz4', c_183 bigint level 'medium' compress 'lz4', c_184 bigint level 'medium' compress 'lz4', c_185 bigint level 'medium' compress 'lz4', c_186 bigint level 'medium' compress 'lz4', c_187 bigint level 'medium' compress 'lz4', c_188 bigint level 'medium' compress 'lz4', c_189 bigint level 'medium' compress 'lz4', c_190 bigint level 'medium' compress 'lz4', c_191 bigint level 'medium' compress 'lz4', c_192 bigint level 'medium' compress 'lz4', c_193 bigint level 'medium' compress 'lz4', c_194 bigint level 'medium' compress 'lz4', c_195 bigint level 'medium' compress 'lz4', c_196 bigint level 'medium' compress 'lz4', c_197 bigint level 'medium' compress 'lz4', c_198 bigint level 'medium' compress 'lz4', c_199 bigint level 'medium' compress 'lz4', c_200 bigint level 'medium' compress 'lz4', c_201 bigint level 'medium' compress 'lz4', c_202 bigint level 'medium' compress 'lz4', c_203 bigint level 'medium' compress 'lz4', c_204 bigint level 'medium' compress 'lz4', c_205 bigint level 'medium' compress 'lz4', c_206 bigint level 'medium' compress 'lz4', c_207 bigint level 'medium' compress 'lz4', c_208 bigint level 'medium' compress 'lz4', c_209 bigint level 'medium' compress 'lz4', c_210 bigint level 'medium' compress 'lz4', c_211 bigint level 'medium' compress 'lz4', c_212 bigint level 'medium' compress 'lz4', c_213 bigint level 'medium' compress 'lz4', c_214 bigint level 'medium' compress 'lz4', c_215 bigint level 'medium' compress 'lz4', c_216 bigint level 'medium' compress 'lz4', c_217 bigint level 'medium' compress 'lz4', c_218 bigint level 'medium' compress 'lz4', c_219 bigint level 'medium' compress 'lz4', c_220 bigint level 'medium' compress 'lz4', c_221 bigint level 'medium' compress 'lz4', c_222 bigint level 'medium' compress 'lz4', c_223 bigint level 'medium' compress 'lz4', c_224 bigint level 'medium' compress 'lz4', c_225 bigint level 'medium' compress 'lz4', c_226 bigint level 'medium' compress 'lz4', c_227 bigint level 'medium' compress 'lz4', c_228 bigint level 'medium' compress 'lz4', c_229 bigint level 'medium' compress 'lz4', c_230 bigint level 'medium' compress 'lz4', c_231 bigint level 'medium' compress 'lz4', c_232 bigint level 'medium' compress 'lz4', c_233 bigint level 'medium' compress 'lz4', c_234 bigint level 'medium' compress 'lz4', c_235 bigint level 'medium' compress 'lz4', c_236 bigint level 'medium' compress 'lz4', c_237 bigint level 'medium' compress 'lz4', c_238 bigint level 'medium' compress 'lz4', c_239 bigint level 'medium' compress 'lz4', c_240 bigint level 'medium' compress 'lz4', c_241 bigint level 'medium' compress 'lz4', c_242 bigint level 'medium' compress 'lz4', c_243 bigint level 'medium' compress 'lz4', c_244 bigint level 'medium' compress 'lz4', c_245 bigint level 'medium' compress 'lz4', c_246 bigint level 'medium' compress 'lz4', c_247 bigint level 'medium' compress 'lz4', c_248 bigint level 'medium' compress 'lz4', c_249 bigint level 'medium' compress 'lz4', c_250 bigint level 'medium' compress 'lz4', c_251 bigint level 'medium' compress 'lz4', c_252 bigint level 'medium' compress 'lz4', c_253 bigint level 'medium' compress 'lz4', c_254 bigint level 'medium' compress 'lz4', c_255 bigint level 'medium' compress 'lz4', c_256 bigint level 'medium' compress 'lz4', c_257 bigint level 'medium' compress 'lz4', c_258 bigint level 'medium' compress 'lz4', c_259 bigint level 'medium' compress 'lz4', c_260 bigint level 'medium' compress 'lz4', c_261 bigint level 'medium' compress 'lz4', c_262 bigint level 'medium' compress 'lz4', c_263 bigint level 'medium' compress 'lz4', c_264 bigint level 'medium' compress 'lz4', c_265 bigint level 'medium' compress 'lz4', c_266 bigint level 'medium' compress 'lz4', c_267 bigint level 'medium' compress 'lz4', c_268 bigint level 'medium' compress 'lz4', c_269 bigint level 'medium' compress 'lz4', c_270 bigint level 'medium' compress 'lz4', c_271 bigint level 'medium' compress 'lz4', c_272 bigint level 'medium' compress 'lz4', c_273 bigint level 'medium' compress 'lz4', c_274 bigint level 'medium' compress 'lz4', c_275 bigint level 'medium' compress 'lz4', c_276 bigint level 'medium' compress 'lz4', c_277 bigint level 'medium' compress 'lz4', c_278 bigint level 'medium' compress 'lz4', c_279 bigint level 'medium' compress 'lz4', c_280 bigint level 'medium' compress 'lz4', c_281 bigint level 'medium' compress 'lz4', c_282 bigint level 'medium' compress 'lz4', c_283 bigint level 'medium' compress 'lz4', c_284 bigint level 'medium' compress 'lz4', c_285 bigint level 'medium' compress 'lz4', c_286 bigint level 'medium' compress 'lz4', c_287 bigint level 'medium' compress 'lz4', c_288 bigint level 'medium' compress 'lz4', c_289 bigint level 'medium' compress 'lz4', c_290 bigint level 'medium' compress 'lz4', c_291 bigint level 'medium' compress 'lz4', c_292 bigint level 'medium' compress 'lz4', c_293 bigint level 'medium' compress 'lz4', c_294 bigint level 'medium' compress 'lz4', c_295 bigint level 'medium' compress 'lz4', c_296 bigint level 'medium' compress 'lz4', c_297 bigint level 'medium' compress 'lz4', c_298 bigint level 'medium' compress 'lz4', c_299 bigint level 'medium' compress 'lz4', c_300 bigint level 'medium' compress 'lz4', c_301 bigint level 'medium' compress 'lz4', c_302 bigint level 'medium' compress 'lz4', c_303 bigint level 'medium' compress 'lz4', c_304 bigint level 'medium' compress 'lz4', c_305 bigint level 'medium' compress 'lz4', c_306 bigint level 'medium' compress 'lz4', c_307 bigint level 'medium' compress 'lz4', c_308 bigint level 'medium' compress 'lz4', c_309 bigint level 'medium' compress 'lz4', c_310 bigint level 'medium' compress 'lz4', c_311 bigint level 'medium' compress 'lz4', c_312 bigint level 'medium' compress 'lz4', c_313 bigint level 'medium' compress 'lz4', c_314 bigint level 'medium' compress 'lz4', c_315 bigint level 'medium' compress 'lz4', c_316 bigint level 'medium' compress 'lz4', c_317 bigint level 'medium' compress 'lz4', c_318 bigint level 'medium' compress 'lz4', c_319 bigint level 'medium' compress 'lz4') TAGS( id binary(32), v1 binary(32), v2 binary(32));

create table t1 using can tags('aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa','xxxxxxx','xxxxxxxxxxx');
create table t2 using can tags('bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb','xxxxxxx','xxxxxxxxxxx');
create table t3 using can tags('cccccccccccccccccccccccccccccccc',NULL,'xxx_xxxxxx');


insert into t2 file "CSV_PATH";


flush database d2;
