<clickhouse>
    <dictionary>
        <name>currency_name</name>
        <source>
            <clickhouse>
                <host>localhost</host>
                <port>9000</port>
                <user from_env="CLICKHOUSE_USER"/>
                <password from_env="CLICKHOUSE_PASSWORD"/>
                <db>showcase</db>
                <query>SELECT DISTINCT p.val_name AS name FROM showcase.payments p</query>
            </clickhouse>
        </source>
        <layout>
            <complex_key_hashed/>
        </layout>
        <lifetime>0</lifetime>
        <structure>
            <key>
                <attribute>
                    <name>name</name>
                    <type>String</type>
                </attribute>
            </key>
        </structure>
    </dictionary>
</clickhouse>