Return-Path: Delivered-To: apmail-incubator-couchdb-user-archive@locus.apache.org Received: (qmail 95518 invoked from network); 20 Jun 2008 23:09:49 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 20 Jun 2008 23:09:49 -0000 Received: (qmail 3761 invoked by uid 500); 20 Jun 2008 23:09:50 -0000 Delivered-To: apmail-incubator-couchdb-user-archive@incubator.apache.org Received: (qmail 3741 invoked by uid 500); 20 Jun 2008 23:09:50 -0000 Mailing-List: contact couchdb-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: couchdb-user@incubator.apache.org Delivered-To: mailing list couchdb-user@incubator.apache.org Received: (qmail 3730 invoked by uid 99); 20 Jun 2008 23:09:50 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 Jun 2008 16:09:50 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of bchesneau@gmail.com designates 209.85.198.240 as permitted sender) Received: from [209.85.198.240] (HELO rv-out-0708.google.com) (209.85.198.240) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 Jun 2008 23:09:01 +0000 Received: by rv-out-0708.google.com with SMTP id k29so7249672rvb.0 for ; Fri, 20 Jun 2008 16:09:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type:content-transfer-encoding :content-disposition; bh=+KmdBmmVjalDrnuj3qJY8d8NTiM0VpHiY7FDkx0OO6g=; b=t6Yefi/2HPf/oUO+c8fOJY65AsKOICWIAsW05RIXi4akjHrJ8IelEgMQw+qQXFGC/K 0FEGC4lmJ9ploJpHByUjA5FmKZCurvtJiSO9LoR9J0lrenX7znuvw2lVRYeOKGI970Lz sioCkk1VUZJTGlbshL+sBubv6F518J4QGGJs8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition; b=T5Mu1UosjjuGen8ntRbdkQcxZFzJFLUby8qy3aVZE2x+zL1nOraFl8/Gg45fiNyWqK sago4vtyI07B2bFtL1/UqzlouDeNAP13PIWPBskv2Vjh0irBm+B/P91GbAe7zgnUwDhn 4J+i977x1iNAOxMG9zMFReywSIpQbH2bUGz0U= Received: by 10.141.63.20 with SMTP id q20mr8297602rvk.291.1214003360569; Fri, 20 Jun 2008 16:09:20 -0700 (PDT) Received: by 10.140.185.6 with HTTP; Fri, 20 Jun 2008 16:09:20 -0700 (PDT) Message-ID: Date: Sat, 21 Jun 2008 01:09:20 +0200 From: "Benoit Chesneau" To: couchdb-user@incubator.apache.org Subject: bug in grouped reduce ? MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Virus-Checked: Checked by ClamAV on apache.org Hi all, I have someting weird with grouped reduce : I get value [row1, row2, ..., rown ] which is correct, but from time to time I get : [ [row1, row2, ..., rown ]] . any idee why ? Is this a bug in my function or in couchdb ? The reduce function is : function (key, values) { var idx_comments =3D {}; var comments =3D []; for (var i=3D0; i 0) { for (var j=3D0; j0) { comment['thread'] =3D iter_comments(thread); } else { comment['thread'] =3D null; } } lcomments[i] =3D comment; } return lcomments; } tmp =3D iter_comments(comments); return tmp; } regards, - beno=EEt