Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 9183E200CA6 for ; Tue, 13 Jun 2017 18:56:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 8FD8B160BDC; Tue, 13 Jun 2017 16:56:22 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 08013160BC5 for ; Tue, 13 Jun 2017 18:56:21 +0200 (CEST) Received: (qmail 21419 invoked by uid 500); 13 Jun 2017 16:56:21 -0000 Mailing-List: contact dev-help@asterixdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@asterixdb.apache.org Delivered-To: mailing list dev@asterixdb.apache.org Received: (qmail 21408 invoked by uid 99); 13 Jun 2017 16:56:21 -0000 Received: from mail-relay.apache.org (HELO mail-relay.apache.org) (140.211.11.15) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Jun 2017 16:56:21 +0000 Received: from mail-qt0-f179.google.com (mail-qt0-f179.google.com [209.85.216.179]) by mail-relay.apache.org (ASF Mail Server at mail-relay.apache.org) with ESMTPSA id 369781A00A8 for ; Tue, 13 Jun 2017 16:56:19 +0000 (UTC) Received: by mail-qt0-f179.google.com with SMTP id c10so180157044qtd.1 for ; Tue, 13 Jun 2017 09:56:18 -0700 (PDT) X-Gm-Message-State: AKS2vOykTA/RcVbn5/XpWSjPOTNH2zxgql+ohdx6NZHkWezymUj3wnfK yur9Qo/dSy4uBLrsZ0QB0npeRJpoU4hu X-Received: by 10.200.62.17 with SMTP id z17mr1221152qtf.162.1497372977877; Tue, 13 Jun 2017 09:56:17 -0700 (PDT) MIME-Version: 1.0 Received: by 10.200.54.118 with HTTP; Tue, 13 Jun 2017 09:56:17 -0700 (PDT) From: Riyafa Abdul Hameed Date: Tue, 13 Jun 2017 22:26:17 +0530 X-Gmail-Original-Message-ID: Message-ID: Subject: Writing tests for supporting geometry datatype To: dev@asterixdb.apache.org Content-Type: multipart/alternative; boundary="f403045e80ec716b050551da50cc" archived-at: Tue, 13 Jun 2017 16:56:22 -0000 --f403045e80ec716b050551da50cc Content-Type: text/plain; charset="UTF-8" Hi all, I plan to implement the Geometry datatype in TDD manner. Here first I would like to write a test case to check the following query: drop dataverse GeoJSON if exists; > create dataverse GeoJSON; > > use GeoJSON; > > create type GeometryType as > open { > id : bigint > geometry : geometry > } > > create dataset Geometries(GeometryType) primary key id; > Initially this test should fail and the code I write should cause it to pass. I am confused about the way to write these tests. What I tried to do was to write ddl, query and update tests for these in the runtimets/ *queries_sqlpp*[1]. Then I tried to run mvn test, but as I gathered from the pom.xml[2] file, these tests are excluded from running. Please kindly inform me how such tests need to written and if they can be run using mvn test. [1] https://github.com/apache/asterixdb/tree/master/asterixdb/asterix-app/src/test/resources/runtimets/queries_sqlpp [2] https://github.com/apache/asterixdb/blob/master/asterixdb/asterix-app/pom.xml Thank you. Yours sincerely, Riyafa --f403045e80ec716b050551da50cc--