<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>16854</bug_id>
          
          <creation_ts>2012-04-25 14:23:03 +0000</creation_ts>
          <short_desc>mapreduce / ChuQL</short_desc>
          <delta_ts>2014-05-20 17:07:39 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>XPath / XQuery / XSLT</product>
          <component>Requirements for Future Versions</component>
          <version>Working drafts</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jonathan Robie">jonathan.robie</reporter>
          <assigned_to name="Jim Melton">jim.melton</assigned_to>
          <cc>jim.melton</cc>
    
    <cc>john.snelson</cc>
          
          <qa_contact name="Mailing list for public feedback on specs from XSL and XML Query WGs">public-qt-comments</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>67021</commentid>
    <comment_count>0</comment_count>
    <who name="Jonathan Robie">jonathan.robie</who>
    <bug_when>2012-04-25 14:23:03 +0000</bug_when>
    <thetext>ChuQL adds support for Map/Reduce to XQuery

mapreduce {
  input { fn:collection(&quot;hdfs://input/&quot;) }
  rr { for $line at $i in $in//line return { key: $i, val: $line } }
  map { for $word in fn:tokenize($in=&gt;val, &quot; &quot;)
  return { key: $word, val: 1 } }
  reduce { { key: $in=&gt;key, val: fn:count($in=&gt;val) } }
  rw { &lt;word text=&quot;{$in=&gt;key}&quot; count=&quot;{$in=&gt;val}&quot;/&gt; }
  output { fn:put($in,&quot;hdfs://output/&quot;) }
}

See ceur-ws.org/Vol-749/paper25.pdf.

Seems like a plausible feature that would make XQuery much more useful for Big Data.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>69406</commentid>
    <comment_count>1</comment_count>
    <who name="John Snelson">john.snelson</who>
    <bug_when>2012-06-26 12:31:16 +0000</bug_when>
    <thetext>This would be better off defined as an XQuery library that accepts function values for the map/reduce methods.

As it is a functional language, XQuery expressions can already automatically be split into map/reduce parts and executed in a map/reduce framework.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>106473</commentid>
    <comment_count>2</comment_count>
    <who name="Jonathan Robie">jonathan.robie</who>
    <bug_when>2014-05-20 16:52:04 +0000</bug_when>
    <thetext>Assigning to future requirements per Working Group decision (https://lists.w3.org/Archives/Member/w3c-xsl-query/2012Oct/0087.html).</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>