<% if @custom_error %>
<%= @custom_error %>
<% end %> <% @query = CostQuery.new @query.group_by :issue_id @query.column :tweek @query.row :project_id @query.row :user_id @walker = @query.walker @row = @walker.row_first @column = @walker.column_first %>

Die schöne Tabelle:

<%=debug(@query.walk(:column_first) do |current, subgregation| if subgregation.nil? [""] elsif current.type == :column subgregation.first.unshift "" else subgregation.flatten end end) %>
#{current.inspect}#{current.fields.inspect}
query chain:
<% max = 20 %> Result (row):
<% @row.recursive_each_with_level do |l, r| %>
    <%= "#{'|  '*l}#{r.class} (#{r.fields}) # size:#{r.size}" %><% max -=1; break if max <= 0; end %>
    ...
  
<% max = 20 %> Result (column):
<% @column.recursive_each_with_level do |l, r| %>
    <%= "#{'|  '*l}#{r.class} (#{r.fields}) # size:#{r.size}" %><% max -=1; break if max <= 0; end %>
    ...
  
SQL statement:
<%= @query.sql_statement.to_s %>