Return-Path: X-Original-To: apmail-incubator-vxquery-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-vxquery-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 96C79D39A for ; Fri, 16 Nov 2012 04:50:52 +0000 (UTC) Received: (qmail 97511 invoked by uid 500); 16 Nov 2012 04:50:52 -0000 Delivered-To: apmail-incubator-vxquery-dev-archive@incubator.apache.org Received: (qmail 97421 invoked by uid 500); 16 Nov 2012 04:50:49 -0000 Mailing-List: contact vxquery-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: vxquery-dev@incubator.apache.org Delivered-To: mailing list vxquery-dev@incubator.apache.org Received: (qmail 97375 invoked by uid 99); 16 Nov 2012 04:50:47 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 Nov 2012 04:50:47 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [138.23.226.213] (HELO sententia.ucr.edu) (138.23.226.213) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 Nov 2012 04:50:38 +0000 Received: from mail-ye0-f197.google.com (mail-ye0-f197.google.com [209.85.213.197]) by sententia.ucr.edu (MOS 3.10.10a-GA) with ESMTP id ICQ82882 for ; Thu, 15 Nov 2012 20:50:15 -0800 (PST) Received: by mail-ye0-f197.google.com with SMTP id l11so4107974yen.0 for ; Thu, 15 Nov 2012 20:50:14 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type :x-gm-message-state; bh=uCKc69SG7mlaZAztBMOi+Wg5RLuL5JGxWlqORHWeeD0=; b=h2Ui1dXynEG7mWlZQbOU0q3LZ4ZJlDTeMG2BgjlhEMpZdJS4jsSN+y3KlszUjezNty p366uyk/8ZMlrDewxea2y0pNJEVJhDgev9WBn5Cwh5ZBOC0AwnO/IFeiZXREyecyZVCS T/sI53VyyW++uc5/XjlVpnu54tR62tyZ4CZUO7/0TeyYUgdP8o8bNo6yLoQviZFc71OX V/vi1jX9lj85H5KRtrjSTGZprJhIuC0svjY4L+TconUbStBac2hKuyNCt+0903gDSokg 3uP6KEM2up0e/YNHSUp1COEIE/LryJb4YuGTCUyagHD7pVPN5i/IRkRNir9coazqfeFD x4wA== Received: by 10.220.214.199 with SMTP id hb7mr4732638vcb.21.1353041414758; Thu, 15 Nov 2012 20:50:14 -0800 (PST) MIME-Version: 1.0 Received: by 10.220.214.199 with SMTP id hb7mr4732634vcb.21.1353041414646; Thu, 15 Nov 2012 20:50:14 -0800 (PST) Received: by 10.58.254.199 with HTTP; Thu, 15 Nov 2012 20:50:14 -0800 (PST) Date: Thu, 15 Nov 2012 20:50:14 -0800 Message-ID: Subject: Issues with fn:data From: Eldon Carman To: vxquery-dev@incubator.apache.org Content-Type: multipart/alternative; boundary=bcaec54fb4f0e2eb8f04ce958092 X-Gm-Message-State: ALoCoQnpsrt63rENzrnmK1W/lw/ds6w11lLfbgr4X2K6ny5UFbwrNY0OnnsIkXg0o3G5fh+hb3fb+y0vNtFzs5RK2AmVNq7ReLN1MzSSUkHlWtues5ip5m2MZ9i3zgg7ljBS9/RimRNEYYvG7in9An0bU/y7n41bhqNycoGh9tg79YgxVJTvhaI= X-Virus-Checked: Checked by ClamAV on apache.org --bcaec54fb4f0e2eb8f04ce958092 Content-Type: text/plain; charset=ISO-8859-1 Notice the following two queries. They both operate on the same xml files. The difference is one uses fn:data to get the result. Notice how the first query without fn:data only has four lines in the output, while the query with fn:data return eight lines. While researching the same query with a where clause, I found that the test sequence comes in with eight items instead of four. The extra items are an empty string and cause the system to crash since an empty sequence can not be converted to a double. Any ideas how to resolve this or where to look? Thanks Preston for $x in collection("example-xml")/bookstore/book return $x/price ----- 30.00 29.99 49.99 39.95 ----- for $x in collection("example-xml")/bookstore/book return data($x/price) ----- 30.00 29.99 49.99 39.95 ----- --bcaec54fb4f0e2eb8f04ce958092--