mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-30 03:22:14 +00:00
109 lines
3.0 KiB
XML
109 lines
3.0 KiB
XML
<dictionaries>
|
|
|
|
<dictionary>
|
|
<name>executable_complex</name>
|
|
<source>
|
|
<executable>
|
|
<format>JSONEachRow</format>
|
|
<command>cd /; clickhouse-local --input-format JSONEachRow --output-format JSONEachRow --structure 'x UInt64, y UInt64' --query "SELECT x, y, x + y AS a, x * y AS b FROM table"</command>
|
|
</executable>
|
|
</source>
|
|
<lifetime>0</lifetime>
|
|
<layout>
|
|
<complex_key_cache>
|
|
<size_in_cells>1000</size_in_cells>
|
|
</complex_key_cache>
|
|
</layout>
|
|
<structure>
|
|
<key>
|
|
<attribute>
|
|
<name>x</name>
|
|
<type>UInt64</type>
|
|
</attribute>
|
|
<attribute>
|
|
<name>y</name>
|
|
<type>UInt64</type>
|
|
</attribute>
|
|
</key>
|
|
<attribute>
|
|
<name>a</name>
|
|
<type>UInt64</type>
|
|
<null_value>0</null_value>
|
|
</attribute>
|
|
<attribute>
|
|
<name>b</name>
|
|
<type>UInt64</type>
|
|
<null_value>0</null_value>
|
|
</attribute>
|
|
</structure>
|
|
</dictionary>
|
|
|
|
<dictionary>
|
|
<name>executable_simple</name>
|
|
<source>
|
|
<executable>
|
|
<format>JSONEachRow</format>
|
|
<command>cd /; clickhouse-local --input-format JSONEachRow --output-format JSONEachRow --structure 'x UInt64' --query "SELECT x, x + x AS a, x * x AS b FROM table"</command>
|
|
</executable>
|
|
</source>
|
|
<lifetime>0</lifetime>
|
|
<layout>
|
|
<cache>
|
|
<size_in_cells>1000</size_in_cells>
|
|
</cache>
|
|
</layout>
|
|
<structure>
|
|
<id>
|
|
<name>x</name>
|
|
</id>
|
|
<attribute>
|
|
<name>a</name>
|
|
<type>UInt64</type>
|
|
<null_value>0</null_value>
|
|
</attribute>
|
|
<attribute>
|
|
<name>b</name>
|
|
<type>UInt64</type>
|
|
<null_value>0</null_value>
|
|
</attribute>
|
|
</structure>
|
|
</dictionary>
|
|
|
|
<dictionary>
|
|
<name>executable_complex_direct</name>
|
|
<source>
|
|
<executable>
|
|
<format>JSONEachRow</format>
|
|
<command>cd /; clickhouse-local --input-format JSONEachRow --output-format JSONEachRow --structure 'x UInt64, y UInt64' --query "SELECT x, y, x + y AS a, x * y AS b FROM table"</command>
|
|
</executable>
|
|
</source>
|
|
<lifetime>0</lifetime>
|
|
<layout>
|
|
<complex_key_direct />
|
|
</layout>
|
|
<structure>
|
|
<key>
|
|
<attribute>
|
|
<name>x</name>
|
|
<type>UInt64</type>
|
|
</attribute>
|
|
<attribute>
|
|
<name>y</name>
|
|
<type>UInt64</type>
|
|
</attribute>
|
|
</key>
|
|
<attribute>
|
|
<name>a</name>
|
|
<type>UInt64</type>
|
|
<null_value>0</null_value>
|
|
</attribute>
|
|
<attribute>
|
|
<name>b</name>
|
|
<type>UInt64</type>
|
|
<null_value>0</null_value>
|
|
</attribute>
|
|
</structure>
|
|
</dictionary>
|
|
|
|
</dictionaries>
|