ClickHouse/dbms/tests/performance/insert_values_with_expressions.xml

30 lines
2.0 KiB
XML
Raw Normal View History

2019-09-20 19:45:26 +00:00
<test>
<type>loop</type>
<settings>
<input_format_values_accurate_types_of_literals>1</input_format_values_accurate_types_of_literals>
</settings>
<!--
Generate test_all_expr_matches.values:
SELECT * FROM test.hits LIMIT 100000 INTO OUTFILE '/path/to/data/user_files/test_all_expr_matches.values' FORMAT Template SETTINGS format_schema_rows = '(toStartOfInterval(CAST(${EventTime:Quoted} AS DateTime), INTERVAL 10 minute), intHash32(${UserID:Quoted}), lower(replaceRegexpAll(${Title:Quoted}, \'[^\\\\w\\\\p{Cyrillic}]+\', \' \')), ${WindowClientWidth:Quoted} * ${WindowClientHeight:Quoted}, if(${FlashMajor:Quoted} == 0, NULL, format(\'{0}.{1}.{2}\', toString(${FlashMajor:Quoted}), toString(${FlashMinor:Quoted}), ${FlashMinor2:Quoted})), arraySort(${`ParsedParams.Key1`:Quoted}))', format_schema_rows_between_delimiter = ',\n'
Generate test_some_expr_matches.values:
SELECT DOMInteractiveTiming, NSToDOMContentLoadedTiming, RefererCategories, URLCategories, arrayMap(x -> x * 0.5, RefererRegions) AS arf from test.hits LIMIT 10000 INTO OUTFILE '/path/to/data/user_files/test_some_expr_matches.values' FORMAT Template SETTINGS format_schema_rows = '(${DOMInteractiveTiming:Quoted} * ${NSToDOMContentLoadedTiming:Quoted}, arraySort(arrayConcat(${RefererCategories:Quoted}, ${URLCategories:Quoted})), arrayMap(x -> toString(x), ${arf:Quoted}))', format_schema_rows_between_delimiter = ',\n'
-->
<stop_conditions>
<all_of>
<iterations>10</iterations>
<min_time_not_changing_for_ms>3000</min_time_not_changing_for_ms>
</all_of>
<any_of>
<iterations>100</iterations>
<total_time_ms>60000</total_time_ms>
</any_of>
</stop_conditions>
<query>select * from file('test_all_expr_matches.values', Values, 'd DateTime, i UInt32, s String, ni Nullable(UInt64), ns Nullable(String), ars Array(String)')</query>
<query>select * from file('test_some_expr_matches.values', Values, 'i Int64, ari Array(Int64), ars Array(String)')</query>
</test>