<!DOCTYPE html>
<html>
  <head>
  </head>
  <body>
    <dl style="line-height: 1.5; margin-left: 2em">
      <dt style="clear: both; float: left; font-weight: bold; width: 8em">Author</dt>
      <dd style="margin-left: 8.5em">Kouhei Sutou &lt;kou****@clear*****&gt;</dd>
      <dt style="clear: both; float: left; font-weight: bold; width: 8em">Date</dt>
      <dd style="margin-left: 8.5em">2017-04-25 15:40:50 +0900 (Tue, 25 Apr 2017)</dd>
      <dt style="clear: both; float: left; font-weight: bold; width: 8em">New Revision</dt>
      <dd style="margin-left: 8.5em"><a href="https://github.com/ranguba/rroonga/commit/4ea68c5991868b9012825ef93748374fe52b4753">4ea68c5991868b9012825ef93748374fe52b4753</a></dd>
      <dt style="clear: both; float: left; font-weight: bold; width: 8em">Message</dt>
      <dd style="margin-left: 8.5em"><pre style="border: 1px solid #aaa; font-family: Consolas, Menlo, &quot;Liberation Mono&quot;, Courier, monospace; line-height: 1.2; padding: 0.5em; width: auto">Column#apply_window_function supports :group_keys</pre></dd>
      <dt style="clear: both; float: left; font-weight: bold; width: 8em">Modified files</dt>
      <dd style="margin-left: 8.5em">
        <ul>
          <li><a href="https://github.com/ranguba/rroonga/commit/4ea68c5991868b9012825ef93748374fe52b4753#diff-ceddaca5b0d87d6a2ad6a606d0ecf797">ext/groonga/rb-grn-data-column.c</a></li>
          <li><a href="https://github.com/ranguba/rroonga/commit/4ea68c5991868b9012825ef93748374fe52b4753#diff-95ad72e532e64b41d45a7d3d489bfb74">test/test-data-column.rb</a></li>
        </ul>
      </dd>
    </dl>

    <div class="diff-section" style="clear: both">
      <table style="border-collapse: collapse; border: 1px solid #aaa">
        <thead>
          <tr class="diff-header" style="border: 1px solid #aaa">
            <td colspan="3">
<pre style="border: 0; font-family: Consolas, Menlo, &quot;Liberation Mono&quot;, Courier, monospace; line-height: 1.2; margin: 0; padding: 0.5em; white-space: normal; width: auto"><span class="diff-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">  Modified: ext/groonga/rb-grn-data-column.c (+20 -0)</span>
<span class="diff-header-mark" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">===================================================================</span>
</pre>
            </td>
          </tr>
        </thead>
        <tbody>
          <tr>
            <th class="diff-line-number" style="border: 1px solid #aaa">
<pre style="border: 0; font-family: Consolas, Menlo, &quot;Liberation Mono&quot;, Courier, monospace; line-height: 1.2; margin: 0; padding: 0.5em; white-space: normal; width: auto"><span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/4ea68c5991868b9012825ef93748374fe52b4753#diff-ceddaca5b0d87d6a2ad6a606d0ecf797L92">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/4ea68c5991868b9012825ef93748374fe52b4753#diff-ceddaca5b0d87d6a2ad6a606d0ecf797L93">93</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/4ea68c5991868b9012825ef93748374fe52b4753#diff-ceddaca5b0d87d6a2ad6a606d0ecf797L94">94</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/4ea68c5991868b9012825ef93748374fe52b4753#diff-ceddaca5b0d87d6a2ad6a606d0ecf797L95">95</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/4ea68c5991868b9012825ef93748374fe52b4753#diff-ceddaca5b0d87d6a2ad6a606d0ecf797L96">96</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/4ea68c5991868b9012825ef93748374fe52b4753#diff-ceddaca5b0d87d6a2ad6a606d0ecf797L97">97</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/4ea68c5991868b9012825ef93748374fe52b4753#diff-ceddaca5b0d87d6a2ad6a606d0ecf797L98">98</a></span>
<span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/4ea68c5991868b9012825ef93748374fe52b4753#diff-ceddaca5b0d87d6a2ad6a606d0ecf797L105">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/4ea68c5991868b9012825ef93748374fe52b4753#diff-ceddaca5b0d87d6a2ad6a606d0ecf797L106">106</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/4ea68c5991868b9012825ef93748374fe52b4753#diff-ceddaca5b0d87d6a2ad6a606d0ecf797L107">107</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/4ea68c5991868b9012825ef93748374fe52b4753#diff-ceddaca5b0d87d6a2ad6a606d0ecf797L108">108</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/4ea68c5991868b9012825ef93748374fe52b4753#diff-ceddaca5b0d87d6a2ad6a606d0ecf797L109">109</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/4ea68c5991868b9012825ef93748374fe52b4753#diff-ceddaca5b0d87d6a2ad6a606d0ecf797L110">110</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/4ea68c5991868b9012825ef93748374fe52b4753#diff-ceddaca5b0d87d6a2ad6a606d0ecf797L111">111</a></span>
<span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/4ea68c5991868b9012825ef93748374fe52b4753#diff-ceddaca5b0d87d6a2ad6a606d0ecf797L125">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/4ea68c5991868b9012825ef93748374fe52b4753#diff-ceddaca5b0d87d6a2ad6a606d0ecf797L126">126</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/4ea68c5991868b9012825ef93748374fe52b4753#diff-ceddaca5b0d87d6a2ad6a606d0ecf797L127">127</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/4ea68c5991868b9012825ef93748374fe52b4753#diff-ceddaca5b0d87d6a2ad6a606d0ecf797L128">128</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/4ea68c5991868b9012825ef93748374fe52b4753#diff-ceddaca5b0d87d6a2ad6a606d0ecf797L129">129</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/4ea68c5991868b9012825ef93748374fe52b4753#diff-ceddaca5b0d87d6a2ad6a606d0ecf797L130">130</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/4ea68c5991868b9012825ef93748374fe52b4753#diff-ceddaca5b0d87d6a2ad6a606d0ecf797L131">131</a></span>
</pre>
            </th>
            <th class="diff-line-number" style="border: 1px solid #aaa">
<pre style="border: 0; font-family: Consolas, Menlo, &quot;Liberation Mono&quot;, Courier, monospace; line-height: 1.2; margin: 0; padding: 0.5em; white-space: normal; width: auto"><span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/4ea68c5991868b9012825ef93748374fe52b4753#diff-ceddaca5b0d87d6a2ad6a606d0ecf797R92">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/4ea68c5991868b9012825ef93748374fe52b4753#diff-ceddaca5b0d87d6a2ad6a606d0ecf797R93">93</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/4ea68c5991868b9012825ef93748374fe52b4753#diff-ceddaca5b0d87d6a2ad6a606d0ecf797R94">94</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/4ea68c5991868b9012825ef93748374fe52b4753#diff-ceddaca5b0d87d6a2ad6a606d0ecf797R95">95</a></span>
<span class="diff-line-number-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/4ea68c5991868b9012825ef93748374fe52b4753#diff-ceddaca5b0d87d6a2ad6a606d0ecf797R96">96</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/4ea68c5991868b9012825ef93748374fe52b4753#diff-ceddaca5b0d87d6a2ad6a606d0ecf797R97">97</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/4ea68c5991868b9012825ef93748374fe52b4753#diff-ceddaca5b0d87d6a2ad6a606d0ecf797R98">98</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/4ea68c5991868b9012825ef93748374fe52b4753#diff-ceddaca5b0d87d6a2ad6a606d0ecf797R99">99</a></span>
<span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/4ea68c5991868b9012825ef93748374fe52b4753#diff-ceddaca5b0d87d6a2ad6a606d0ecf797R106">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/4ea68c5991868b9012825ef93748374fe52b4753#diff-ceddaca5b0d87d6a2ad6a606d0ecf797R107">107</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/4ea68c5991868b9012825ef93748374fe52b4753#diff-ceddaca5b0d87d6a2ad6a606d0ecf797R108">108</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/4ea68c5991868b9012825ef93748374fe52b4753#diff-ceddaca5b0d87d6a2ad6a606d0ecf797R109">109</a></span>
<span class="diff-line-number-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/4ea68c5991868b9012825ef93748374fe52b4753#diff-ceddaca5b0d87d6a2ad6a606d0ecf797R110">110</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/4ea68c5991868b9012825ef93748374fe52b4753#diff-ceddaca5b0d87d6a2ad6a606d0ecf797R111">111</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/4ea68c5991868b9012825ef93748374fe52b4753#diff-ceddaca5b0d87d6a2ad6a606d0ecf797R112">112</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/4ea68c5991868b9012825ef93748374fe52b4753#diff-ceddaca5b0d87d6a2ad6a606d0ecf797R113">113</a></span>
<span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/4ea68c5991868b9012825ef93748374fe52b4753#diff-ceddaca5b0d87d6a2ad6a606d0ecf797R127">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/4ea68c5991868b9012825ef93748374fe52b4753#diff-ceddaca5b0d87d6a2ad6a606d0ecf797R128">128</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/4ea68c5991868b9012825ef93748374fe52b4753#diff-ceddaca5b0d87d6a2ad6a606d0ecf797R129">129</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/4ea68c5991868b9012825ef93748374fe52b4753#diff-ceddaca5b0d87d6a2ad6a606d0ecf797R130">130</a></span>
<span class="diff-line-number-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/4ea68c5991868b9012825ef93748374fe52b4753#diff-ceddaca5b0d87d6a2ad6a606d0ecf797R131">131</a></span>
<span class="diff-line-number-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/4ea68c5991868b9012825ef93748374fe52b4753#diff-ceddaca5b0d87d6a2ad6a606d0ecf797R132">132</a></span>
<span class="diff-line-number-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/4ea68c5991868b9012825ef93748374fe52b4753#diff-ceddaca5b0d87d6a2ad6a606d0ecf797R133">133</a></span>
<span class="diff-line-number-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/4ea68c5991868b9012825ef93748374fe52b4753#diff-ceddaca5b0d87d6a2ad6a606d0ecf797R134">134</a></span>
<span class="diff-line-number-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/4ea68c5991868b9012825ef93748374fe52b4753#diff-ceddaca5b0d87d6a2ad6a606d0ecf797R135">135</a></span>
<span class="diff-line-number-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/4ea68c5991868b9012825ef93748374fe52b4753#diff-ceddaca5b0d87d6a2ad6a606d0ecf797R136">136</a></span>
<span class="diff-line-number-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/4ea68c5991868b9012825ef93748374fe52b4753#diff-ceddaca5b0d87d6a2ad6a606d0ecf797R137">137</a></span>
<span class="diff-line-number-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/4ea68c5991868b9012825ef93748374fe52b4753#diff-ceddaca5b0d87d6a2ad6a606d0ecf797R138">138</a></span>
<span class="diff-line-number-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/4ea68c5991868b9012825ef93748374fe52b4753#diff-ceddaca5b0d87d6a2ad6a606d0ecf797R139">139</a></span>
<span class="diff-line-number-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/4ea68c5991868b9012825ef93748374fe52b4753#diff-ceddaca5b0d87d6a2ad6a606d0ecf797R140">140</a></span>
<span class="diff-line-number-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/4ea68c5991868b9012825ef93748374fe52b4753#diff-ceddaca5b0d87d6a2ad6a606d0ecf797R141">141</a></span>
<span class="diff-line-number-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/4ea68c5991868b9012825ef93748374fe52b4753#diff-ceddaca5b0d87d6a2ad6a606d0ecf797R142">142</a></span>
<span class="diff-line-number-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/4ea68c5991868b9012825ef93748374fe52b4753#diff-ceddaca5b0d87d6a2ad6a606d0ecf797R143">143</a></span>
<span class="diff-line-number-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/4ea68c5991868b9012825ef93748374fe52b4753#diff-ceddaca5b0d87d6a2ad6a606d0ecf797R144">144</a></span>
<span class="diff-line-number-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/4ea68c5991868b9012825ef93748374fe52b4753#diff-ceddaca5b0d87d6a2ad6a606d0ecf797R145">145</a></span>
<span class="diff-line-number-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/4ea68c5991868b9012825ef93748374fe52b4753#diff-ceddaca5b0d87d6a2ad6a606d0ecf797R146">146</a></span>
<span class="diff-line-number-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/4ea68c5991868b9012825ef93748374fe52b4753#diff-ceddaca5b0d87d6a2ad6a606d0ecf797R147">147</a></span>
<span class="diff-line-number-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/4ea68c5991868b9012825ef93748374fe52b4753#diff-ceddaca5b0d87d6a2ad6a606d0ecf797R148">148</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/4ea68c5991868b9012825ef93748374fe52b4753#diff-ceddaca5b0d87d6a2ad6a606d0ecf797R149">149</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/4ea68c5991868b9012825ef93748374fe52b4753#diff-ceddaca5b0d87d6a2ad6a606d0ecf797R150">150</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/4ea68c5991868b9012825ef93748374fe52b4753#diff-ceddaca5b0d87d6a2ad6a606d0ecf797R151">151</a></span>
</pre>
            </th>
            <td class="diff-content" style="border: 1px solid #aaa">
<pre style="border: 0; font-family: Consolas, Menlo, &quot;Liberation Mono&quot;, Courier, monospace; line-height: 1.2; margin: 0; padding: 0.5em; white-space: normal; width: auto"><span class="diff-hunk-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">@@ -93,6 +93,7 @@ <span class="diff-context" style="background-color: #ffffaa; color: #000000">rb_grn_data_column_apply_window_function (int argc, VALUE *argv, VALUE self)</span></span>
<span class="diff-not-changed" style="display: block; white-space: pre">     grn_obj *window_function_call = NULL;</span>
<span class="diff-not-changed" style="display: block; white-space: pre">     VALUE rb_options;</span>
<span class="diff-not-changed" style="display: block; white-space: pre">     VALUE rb_sort_keys;</span>
<span class="diff-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre">+    VALUE rb_group_keys;</span>
<span class="diff-not-changed" style="display: block; white-space: pre">     VALUE rb_builder;</span>
<span class="diff-not-changed" style="display: block; white-space: pre">     VALUE rb_window_function_call;</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> </span>
<span class="diff-hunk-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">@@ -106,6 +107,7 @@ <span class="diff-context" style="background-color: #ffffaa; color: #000000">rb_grn_data_column_apply_window_function (int argc, VALUE *argv, VALUE self)</span></span>
<span class="diff-not-changed" style="display: block; white-space: pre">     rb_scan_args(argc, argv, &quot;01&quot;, &amp;rb_options);</span>
<span class="diff-not-changed" style="display: block; white-space: pre">     rb_grn_scan_options(rb_options,</span>
<span class="diff-not-changed" style="display: block; white-space: pre">                         &quot;sort_keys&quot;, &amp;rb_sort_keys,</span>
<span class="diff-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre">+                        &quot;group_keys&quot;, &amp;rb_group_keys,</span>
<span class="diff-not-changed" style="display: block; white-space: pre">                         NULL);</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> </span>
<span class="diff-not-changed" style="display: block; white-space: pre">     if (!NIL_P(rb_sort_keys)) {</span>
<span class="diff-hunk-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">@@ -126,6 +128,24 @@ <span class="diff-context" style="background-color: #ffffaa; color: #000000">rb_grn_data_column_apply_window_function (int argc, VALUE *argv, VALUE self)</span></span>
<span class="diff-not-changed" style="display: block; white-space: pre">                                     rb_table);</span>
<span class="diff-not-changed" style="display: block; white-space: pre">     }</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> </span>
<span class="diff-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre">+    if (!NIL_P(rb_group_keys)) {</span>
<span class="diff-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre">+        VALUE rb_table;</span>
<span class="diff-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre">+</span>
<span class="diff-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre">+        if (!RVAL2CBOOL(rb_obj_is_kind_of(rb_group_keys, rb_cArray)))</span>
<span class="diff-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre">+            rb_raise(rb_eArgError, &quot;:group_keys should be an array of key: &lt;%s&gt;&quot;,</span>
<span class="diff-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre">+                     rb_grn_inspect(rb_group_keys));</span>
<span class="diff-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre">+</span>
<span class="diff-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre">+        definition.n_group_keys = RARRAY_LEN(rb_group_keys);</span>
<span class="diff-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre">+        definition.group_keys = ALLOCA_N(grn_table_sort_key,</span>
<span class="diff-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre">+                                         definition.n_group_keys);</span>
<span class="diff-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre">+        rb_table = GRNOBJECT2RVAL(Qnil, context, table, GRN_FALSE);</span>
<span class="diff-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre">+        rb_grn_table_sort_keys_fill(context,</span>
<span class="diff-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre">+                                    definition.group_keys,</span>
<span class="diff-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre">+                                    definition.n_group_keys,</span>
<span class="diff-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre">+                                    rb_group_keys,</span>
<span class="diff-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre">+                                    rb_table);</span>
<span class="diff-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre">+    }</span>
<span class="diff-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre">+</span>
<span class="diff-not-changed" style="display: block; white-space: pre">     rb_builder = rb_grn_record_expression_builder_new(rb_table, Qnil);</span>
<span class="diff-not-changed" style="display: block; white-space: pre">     rb_window_function_call =</span>
<span class="diff-not-changed" style="display: block; white-space: pre">         rb_grn_record_expression_builder_build(rb_builder);</span>
</pre>
            </td>
          </tr>
        </tbody>
      </table>
      <table style="border-collapse: collapse; border: 1px solid #aaa">
        <thead>
          <tr class="diff-header" style="border: 1px solid #aaa">
            <td colspan="3">
<pre style="border: 0; font-family: Consolas, Menlo, &quot;Liberation Mono&quot;, Courier, monospace; line-height: 1.2; margin: 0; padding: 0.5em; white-space: normal; width: auto"><span class="diff-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">  Modified: test/test-data-column.rb (+43 -1)</span>
<span class="diff-header-mark" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">===================================================================</span>
</pre>
            </td>
          </tr>
        </thead>
        <tbody>
          <tr>
            <th class="diff-line-number" style="border: 1px solid #aaa">
<pre style="border: 0; font-family: Consolas, Menlo, &quot;Liberation Mono&quot;, Courier, monospace; line-height: 1.2; margin: 0; padding: 0.5em; white-space: normal; width: auto"><span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/4ea68c5991868b9012825ef93748374fe52b4753#diff-95ad72e532e64b41d45a7d3d489bfb74">...</a></span>
<span class="diff-line-number-deleted" style="background-color: #ffecec; color: #000000; display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/4ea68c5991868b9012825ef93748374fe52b4753#diff-95ad72e532e64b41d45a7d3d489bfb74L1">1</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/4ea68c5991868b9012825ef93748374fe52b4753#diff-95ad72e532e64b41d45a7d3d489bfb74L2">2</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/4ea68c5991868b9012825ef93748374fe52b4753#diff-95ad72e532e64b41d45a7d3d489bfb74L3">3</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/4ea68c5991868b9012825ef93748374fe52b4753#diff-95ad72e532e64b41d45a7d3d489bfb74L4">4</a></span>
<span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/4ea68c5991868b9012825ef93748374fe52b4753#diff-95ad72e532e64b41d45a7d3d489bfb74L48">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/4ea68c5991868b9012825ef93748374fe52b4753#diff-95ad72e532e64b41d45a7d3d489bfb74L49">49</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/4ea68c5991868b9012825ef93748374fe52b4753#diff-95ad72e532e64b41d45a7d3d489bfb74L50">50</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/4ea68c5991868b9012825ef93748374fe52b4753#diff-95ad72e532e64b41d45a7d3d489bfb74L51">51</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/4ea68c5991868b9012825ef93748374fe52b4753#diff-95ad72e532e64b41d45a7d3d489bfb74L52">52</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/4ea68c5991868b9012825ef93748374fe52b4753#diff-95ad72e532e64b41d45a7d3d489bfb74L53">53</a></span>
</pre>
            </th>
            <th class="diff-line-number" style="border: 1px solid #aaa">
<pre style="border: 0; font-family: Consolas, Menlo, &quot;Liberation Mono&quot;, Courier, monospace; line-height: 1.2; margin: 0; padding: 0.5em; white-space: normal; width: auto"><span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/4ea68c5991868b9012825ef93748374fe52b4753#diff-95ad72e532e64b41d45a7d3d489bfb74">...</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/4ea68c5991868b9012825ef93748374fe52b4753#diff-95ad72e532e64b41d45a7d3d489bfb74R1">1</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/4ea68c5991868b9012825ef93748374fe52b4753#diff-95ad72e532e64b41d45a7d3d489bfb74R2">2</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/4ea68c5991868b9012825ef93748374fe52b4753#diff-95ad72e532e64b41d45a7d3d489bfb74R3">3</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/4ea68c5991868b9012825ef93748374fe52b4753#diff-95ad72e532e64b41d45a7d3d489bfb74R4">4</a></span>
<span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/4ea68c5991868b9012825ef93748374fe52b4753#diff-95ad72e532e64b41d45a7d3d489bfb74R48">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/4ea68c5991868b9012825ef93748374fe52b4753#diff-95ad72e532e64b41d45a7d3d489bfb74R49">49</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/4ea68c5991868b9012825ef93748374fe52b4753#diff-95ad72e532e64b41d45a7d3d489bfb74R50">50</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/4ea68c5991868b9012825ef93748374fe52b4753#diff-95ad72e532e64b41d45a7d3d489bfb74R51">51</a></span>
<span class="diff-line-number-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/4ea68c5991868b9012825ef93748374fe52b4753#diff-95ad72e532e64b41d45a7d3d489bfb74R52">52</a></span>
<span class="diff-line-number-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/4ea68c5991868b9012825ef93748374fe52b4753#diff-95ad72e532e64b41d45a7d3d489bfb74R53">53</a></span>
<span class="diff-line-number-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/4ea68c5991868b9012825ef93748374fe52b4753#diff-95ad72e532e64b41d45a7d3d489bfb74R54">54</a></span>
<span class="diff-line-number-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/4ea68c5991868b9012825ef93748374fe52b4753#diff-95ad72e532e64b41d45a7d3d489bfb74R55">55</a></span>
<span class="diff-line-number-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/4ea68c5991868b9012825ef93748374fe52b4753#diff-95ad72e532e64b41d45a7d3d489bfb74R56">56</a></span>
<span class="diff-line-number-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/4ea68c5991868b9012825ef93748374fe52b4753#diff-95ad72e532e64b41d45a7d3d489bfb74R57">57</a></span>
<span class="diff-line-number-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/4ea68c5991868b9012825ef93748374fe52b4753#diff-95ad72e532e64b41d45a7d3d489bfb74R58">58</a></span>
<span class="diff-line-number-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/4ea68c5991868b9012825ef93748374fe52b4753#diff-95ad72e532e64b41d45a7d3d489bfb74R59">59</a></span>
<span class="diff-line-number-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/4ea68c5991868b9012825ef93748374fe52b4753#diff-95ad72e532e64b41d45a7d3d489bfb74R60">60</a></span>
<span class="diff-line-number-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/4ea68c5991868b9012825ef93748374fe52b4753#diff-95ad72e532e64b41d45a7d3d489bfb74R61">61</a></span>
<span class="diff-line-number-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/4ea68c5991868b9012825ef93748374fe52b4753#diff-95ad72e532e64b41d45a7d3d489bfb74R62">62</a></span>
<span class="diff-line-number-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/4ea68c5991868b9012825ef93748374fe52b4753#diff-95ad72e532e64b41d45a7d3d489bfb74R63">63</a></span>
<span class="diff-line-number-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/4ea68c5991868b9012825ef93748374fe52b4753#diff-95ad72e532e64b41d45a7d3d489bfb74R64">64</a></span>
<span class="diff-line-number-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/4ea68c5991868b9012825ef93748374fe52b4753#diff-95ad72e532e64b41d45a7d3d489bfb74R65">65</a></span>
<span class="diff-line-number-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/4ea68c5991868b9012825ef93748374fe52b4753#diff-95ad72e532e64b41d45a7d3d489bfb74R66">66</a></span>
<span class="diff-line-number-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/4ea68c5991868b9012825ef93748374fe52b4753#diff-95ad72e532e64b41d45a7d3d489bfb74R67">67</a></span>
<span class="diff-line-number-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/4ea68c5991868b9012825ef93748374fe52b4753#diff-95ad72e532e64b41d45a7d3d489bfb74R68">68</a></span>
<span class="diff-line-number-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/4ea68c5991868b9012825ef93748374fe52b4753#diff-95ad72e532e64b41d45a7d3d489bfb74R69">69</a></span>
<span class="diff-line-number-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/4ea68c5991868b9012825ef93748374fe52b4753#diff-95ad72e532e64b41d45a7d3d489bfb74R70">70</a></span>
<span class="diff-line-number-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/4ea68c5991868b9012825ef93748374fe52b4753#diff-95ad72e532e64b41d45a7d3d489bfb74R71">71</a></span>
<span class="diff-line-number-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/4ea68c5991868b9012825ef93748374fe52b4753#diff-95ad72e532e64b41d45a7d3d489bfb74R72">72</a></span>
<span class="diff-line-number-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/4ea68c5991868b9012825ef93748374fe52b4753#diff-95ad72e532e64b41d45a7d3d489bfb74R73">73</a></span>
<span class="diff-line-number-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/4ea68c5991868b9012825ef93748374fe52b4753#diff-95ad72e532e64b41d45a7d3d489bfb74R74">74</a></span>
<span class="diff-line-number-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/4ea68c5991868b9012825ef93748374fe52b4753#diff-95ad72e532e64b41d45a7d3d489bfb74R75">75</a></span>
<span class="diff-line-number-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/4ea68c5991868b9012825ef93748374fe52b4753#diff-95ad72e532e64b41d45a7d3d489bfb74R76">76</a></span>
<span class="diff-line-number-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/4ea68c5991868b9012825ef93748374fe52b4753#diff-95ad72e532e64b41d45a7d3d489bfb74R77">77</a></span>
<span class="diff-line-number-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/4ea68c5991868b9012825ef93748374fe52b4753#diff-95ad72e532e64b41d45a7d3d489bfb74R78">78</a></span>
<span class="diff-line-number-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/4ea68c5991868b9012825ef93748374fe52b4753#diff-95ad72e532e64b41d45a7d3d489bfb74R79">79</a></span>
<span class="diff-line-number-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/4ea68c5991868b9012825ef93748374fe52b4753#diff-95ad72e532e64b41d45a7d3d489bfb74R80">80</a></span>
<span class="diff-line-number-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/4ea68c5991868b9012825ef93748374fe52b4753#diff-95ad72e532e64b41d45a7d3d489bfb74R81">81</a></span>
<span class="diff-line-number-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/4ea68c5991868b9012825ef93748374fe52b4753#diff-95ad72e532e64b41d45a7d3d489bfb74R82">82</a></span>
<span class="diff-line-number-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/4ea68c5991868b9012825ef93748374fe52b4753#diff-95ad72e532e64b41d45a7d3d489bfb74R83">83</a></span>
<span class="diff-line-number-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/4ea68c5991868b9012825ef93748374fe52b4753#diff-95ad72e532e64b41d45a7d3d489bfb74R84">84</a></span>
<span class="diff-line-number-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/4ea68c5991868b9012825ef93748374fe52b4753#diff-95ad72e532e64b41d45a7d3d489bfb74R85">85</a></span>
<span class="diff-line-number-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/4ea68c5991868b9012825ef93748374fe52b4753#diff-95ad72e532e64b41d45a7d3d489bfb74R86">86</a></span>
<span class="diff-line-number-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/4ea68c5991868b9012825ef93748374fe52b4753#diff-95ad72e532e64b41d45a7d3d489bfb74R87">87</a></span>
<span class="diff-line-number-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/4ea68c5991868b9012825ef93748374fe52b4753#diff-95ad72e532e64b41d45a7d3d489bfb74R88">88</a></span>
<span class="diff-line-number-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/4ea68c5991868b9012825ef93748374fe52b4753#diff-95ad72e532e64b41d45a7d3d489bfb74R89">89</a></span>
<span class="diff-line-number-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/4ea68c5991868b9012825ef93748374fe52b4753#diff-95ad72e532e64b41d45a7d3d489bfb74R90">90</a></span>
<span class="diff-line-number-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/4ea68c5991868b9012825ef93748374fe52b4753#diff-95ad72e532e64b41d45a7d3d489bfb74R91">91</a></span>
<span class="diff-line-number-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/4ea68c5991868b9012825ef93748374fe52b4753#diff-95ad72e532e64b41d45a7d3d489bfb74R92">92</a></span>
<span class="diff-line-number-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/4ea68c5991868b9012825ef93748374fe52b4753#diff-95ad72e532e64b41d45a7d3d489bfb74R93">93</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/4ea68c5991868b9012825ef93748374fe52b4753#diff-95ad72e532e64b41d45a7d3d489bfb74R94">94</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/4ea68c5991868b9012825ef93748374fe52b4753#diff-95ad72e532e64b41d45a7d3d489bfb74R95">95</a></span>
</pre>
            </th>
            <td class="diff-content" style="border: 1px solid #aaa">
<pre style="border: 0; font-family: Consolas, Menlo, &quot;Liberation Mono&quot;, Courier, monospace; line-height: 1.2; margin: 0; padding: 0.5em; white-space: normal; width: auto"><span class="diff-hunk-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">@@ -1,4 +1,4 @@</span>
<span class="diff-deleted" style="background-color: #ffecec; color: #000000; display: block; white-space: pre">-# Copyright (C) 2016  Kouhei Sutou &lt;kou****@clear*****&gt;</span>
<span class="diff-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre">+# Copyright (C) 2016<span class="diff-added-word" style="background-color: #a6f3a6; color: #000000">-2017</span>  Kouhei Sutou &lt;kou****@clear*****&gt;</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> #</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> # This library is free software; you can redistribute it and/or</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> # modify it under the terms of the GNU Lesser General Public</span>
<span class="diff-hunk-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">@@ -49,5 +49,47 @@ <span class="diff-context" style="background-color: #ffffaa; color: #000000">class DataColumnTest &lt; Test::Unit::TestCase</span></span>
<span class="diff-not-changed" style="display: block; white-space: pre">                    ],</span>
<span class="diff-not-changed" style="display: block; white-space: pre">                    comments.collect {|comment| [comment.id, comment.nth]})</span>
<span class="diff-not-changed" style="display: block; white-space: pre">     end</span>
<span class="diff-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre">+</span>
<span class="diff-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre">+    def test_group_keys</span>
<span class="diff-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre">+      Groonga::Schema.define do |schema|</span>
<span class="diff-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre">+        schema.create_table(&quot;Comments&quot;) do |table|</span>
<span class="diff-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre">+          table.uint32(&quot;nth&quot;)</span>
<span class="diff-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre">+          table.short_text(&quot;category&quot;)</span>
<span class="diff-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre">+        end</span>
<span class="diff-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre">+      end</span>
<span class="diff-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre">+      comments = Groonga[&quot;Comments&quot;]</span>
<span class="diff-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre">+      nth = Groonga[&quot;Comments.nth&quot;]</span>
<span class="diff-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre">+</span>
<span class="diff-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre">+      3.times do</span>
<span class="diff-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre">+        comments.add(:category =&gt; &quot;a&quot;)</span>
<span class="diff-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre">+      end</span>
<span class="diff-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre">+      3.times do</span>
<span class="diff-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre">+        comments.add(:category =&gt; &quot;b&quot;)</span>
<span class="diff-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre">+      end</span>
<span class="diff-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre">+</span>
<span class="diff-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre">+      options = {</span>
<span class="diff-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre">+        :sort_keys =&gt; [[&quot;_id&quot;, &quot;desc&quot;]],</span>
<span class="diff-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre">+        :group_keys =&gt; [&quot;category&quot;],</span>
<span class="diff-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre">+      }</span>
<span class="diff-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre">+      nth.apply_window_function(options) do |record|</span>
<span class="diff-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre">+        record.call(&quot;record_number&quot;)</span>
<span class="diff-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre">+      end</span>
<span class="diff-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre">+      values = comments.collect do |comment|</span>
<span class="diff-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre">+        [</span>
<span class="diff-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre">+          comment.id,</span>
<span class="diff-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre">+          comment.nth,</span>
<span class="diff-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre">+          comment.category,</span>
<span class="diff-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre">+        ]</span>
<span class="diff-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre">+      end</span>
<span class="diff-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre">+      assert_equal([</span>
<span class="diff-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre">+                     [1,  3, &quot;a&quot;],</span>
<span class="diff-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre">+                     [2,  2, &quot;a&quot;],</span>
<span class="diff-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre">+                     [3,  1, &quot;a&quot;],</span>
<span class="diff-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre">+                     [4,  3, &quot;b&quot;],</span>
<span class="diff-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre">+                     [5,  2, &quot;b&quot;],</span>
<span class="diff-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre">+                     [6,  1, &quot;b&quot;],</span>
<span class="diff-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre">+                   ],</span>
<span class="diff-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre">+                   values)</span>
<span class="diff-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre">+    end</span>
<span class="diff-not-changed" style="display: block; white-space: pre">   end</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> end</span>
</pre>
            </td>
          </tr>
        </tbody>
      </table>
    </div>
  </body>
</html>