Skip to content
This repository was archived by the owner on Feb 6, 2024. It is now read-only.

Commit 32ef203

Browse files
vladgetVolodymyr Hetmanshchuk
and
Volodymyr Hetmanshchuk
authored
Using custom quotas break user config (#65)
* Fixed bug which produce error: "The task includes an option with an undefined variable. The error was: float object has no element 0" in text vs float comparison * Fixed quotas regarding bugs in user template Co-authored-by: Volodymyr Hetmanshchuk <[email protected]>
1 parent ad0452b commit 32ef203

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

templates/users.j2

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,23 +89,28 @@
8989
{% for quota in clickhouse_quotas_default %}
9090
<{{ quota.name }}>
9191
{% for interval in quota.intervals %}
92+
<interval>
9293
<duration>{{ interval.duration }}</duration>
9394
<queries>{{ interval.queries }}</queries>
9495
<errors>{{ interval.errors }}</errors>
9596
<result_rows>{{ interval.result_rows }}</result_rows>
9697
<read_rows>{{ interval.read_rows }}</read_rows>
9798
<execution_time>{{ interval.execution_time }}</execution_time>
99+
</interval>
98100
{% endfor %}
99101
</{{ quota.name }}>
100102
{% endfor %}
101103
{% for quota in clickhouse_quotas_custom %}
104+
<{{ quota.name }}>
102105
{% for interval in quota.intervals %}
106+
<interval>
103107
<duration>{{ interval.duration }}</duration>
104108
<queries>{{ interval.queries }}</queries>
105109
<errors>{{ interval.errors }}</errors>
106110
<result_rows>{{ interval.result_rows }}</result_rows>
107111
<read_rows>{{ interval.read_rows }}</read_rows>
108112
<execution_time>{{ interval.execution_time }}</execution_time>
113+
</interval>
109114
{% endfor %}
110115
</{{ quota.name }}>
111116
{% endfor %}

0 commit comments

Comments
 (0)