{%if this.options.get("keyFields") is not none%}
{%for fieldName in this.options.get("keyFields").split(",")%}
{%if fieldName in fieldNames%}
{{fieldName}}
{%endif%}
{%endfor%}
{%endif%}
{%endif%}
{%if keyFieldsSupported %}
{%else%}
{%endif%}
{%if this.options.get("valueFields") is not none%}
{%for fieldName in this.options.get("valueFields").split(",")%}
{%if fieldName in fieldNames%}
{{fieldName}}
{%endif%}
{%endfor%}
{%endif%}
{%if keyFieldsSupported %}
PixieDust will automatically use count aggregation for each key
{%endif%}