[24/27] asterixdb-site git commit: Add 0.9.4
http://git-wip-us.apache.org/repos/asf/asterixdb-site/blob/d00eca89/content/docs/0.9.4/aql/primer.html -- diff --git a/content/docs/0.9.4/aql/primer.html b/content/docs/0.9.4/aql/primer.html new file mode 100644 index 000..46918a7 --- /dev/null +++ b/content/docs/0.9.4/aql/primer.html @@ -0,0 +1,863 @@ + + +http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en"> + + + + + +AsterixDB – AsterixDB 101: An ADM and AQL Primer + + + + + + + + + + + + + + + + +Last Published: 2018-10-02 + Version: 0.9.4 + Documentation Home + + + + + + + Get Started - Installation +Option 1: using NCService +Option 2: using Ansible +Option 3: using Amazon Web Services + AsterixDB Primer +Option 1: using SQL++ +Option 2: using AQL + Data Model +The Asterix Data Model + Queries - SQL++ +The SQL++ Query Language +Builtin Functions + Queries - AQL +The Asterix Query Language (AQL) +Builtin Functions + API/SDK +HTTP API +CSV Output + Advanced Features +Support of Full-text Queries +Accessing External Data +Support for Data Ingestion +User Defined Functions +Filter-Based LSM Index Acceleration +Support of Similarity Queries + + + + + + + + + + + + + +AsterixDB 101: An ADM and AQL Primer + +Welcome to AsterixDB! +This document introduces the main features of AsterixDB’s data model (ADM) and query language (AQL) by example. The example is a simple scenario involving (synthetic) sample data modeled after data from the social domain. This document describes a set of sample ADM datasets, together with a set of illustrative AQL queries, to introduce you to the “AsterixDB user experience”. The complete set of steps required to create and load a handful of sample datasets, along with runnable queries and the expected results for each query, are included. +This document assumes that you are at least vaguely familiar with AsterixDB and why you might want to use it. Most importantly, it assumes you already have a running instance of AsterixDB and that you know how to query it using AsterixDB’s basic web interface. For more information on these topics, you should go through the steps in Installing Asterix Using Managix before reading this document and make sure that you have a running AsterixDB instance ready to go. To get your feet wet, you should probably start with a simple local installation of AsterixDB on your favorite machine, accepting all of the default settings that Managix offers. Later you can graduate to trying AsterixDB on a cluster, its real intended home (since it targets Big Data). (Note: With the exception of specifying the correct locations where you put the source data for this example, there should no changes needed in your ADM or AQL statements to run the examples locally and/ or to run them on a cluster when you are ready to take that step.) +As you read through this document, you should try each step for yourself on your own AsterixDB instance. Once you have reached the end, you will be fully armed and dangerous, with all the basic AsterixDB knowledge that you’ll need to start down the path of modeling, storing, and querying your own semistructured data. + +ADM: Modeling Semistructed Data in AsterixDB +In this section you will learn all about modeling Big Data using ADM, the data model of the AsterixDB BDMS. + +Dataverses, Datatypes, and Datasets +The top-level organizing concept in the AsterixDB world is the dataverse. A dataverse—short for “data universe”—is a place (similar to a database in a relational DBMS) in which to create and manage the types, datasets, functions, and other artifacts for a given AsterixDB application. When you start using an AsterixDB instance for the first time, it starts out “empty”; it contains no data other than the AsterixDB system catalogs (which live in a special dataverse called the Metadata dataverse). To store your data in AsterixDB, you will first create a dataverse and then you use it for the datatypes and datasets for managing your own data. A datatype tells AsterixDB what you know (or more accurately, what you want it to know) a priori about one of the kinds of data instances that you want AsterixDB to hold for you. A dataset is a collection of data instances of a datatype, and AsterixDB makes sure that the data instances that you put in it conform to its specified type. Since AsterixDB targets semistructured data, you can use open datatypes and tell it as little or as much as you wish about your data up front; the more you tell it up front, the less information it will have to store repeatedly in the i
[06/27] asterixdb-site git commit: Add 0.9.4
http://git-wip-us.apache.org/repos/asf/asterixdb-site/blob/d00eca89/docs/0.9.4/data/twm.adm -- diff --git a/docs/0.9.4/data/twm.adm b/docs/0.9.4/data/twm.adm new file mode 100644 index 000..df90ea6 --- /dev/null +++ b/docs/0.9.4/data/twm.adm @@ -0,0 +1,12 @@ +{"tweetid":"1","user":{"screen-name":"NathanGiesen@211","lang":"en","friends_count":39339,"statuses_count":473,"name":"Nathan Giesen","followers_count":49416},"sender-location":point("47.44,80.65"),"send-time":datetime("2008-04-26T10:10:00"),"referred-topics":{{"product-z","customization"}},"message-text":" love product-z its customization is good:)"} +{"tweetid":"2","user":{"screen-name":"ColineGeyer@63","lang":"en","friends_count":121,"statuses_count":362,"name":"Coline Geyer","followers_count":17159},"sender-location":point("32.84,67.14"),"send-time":datetime("2010-05-13T10:10:00"),"referred-topics":{{"ccast","shortcut-menu"}},"message-text":" like ccast its shortcut-menu is awesome:)"} +{"tweetid":"3","user":{"screen-name":"NathanGiesen@211","lang":"en","friends_count":39339,"statuses_count":473,"name":"Nathan Giesen","followers_count":49416},"sender-location":point("29.72,75.8"),"send-time":datetime("2006-11-04T10:10:00"),"referred-topics":{{"product-w","speed"}},"message-text":" like product-w the speed is good:)"} +{"tweetid":"4","user":{"screen-name":"NathanGiesen@211","lang":"en","friends_count":39339,"statuses_count":473,"name":"Nathan Giesen","followers_count":49416},"sender-location":point("39.28,70.48"),"send-time":datetime("2011-12-26T10:10:00"),"referred-topics":{{"product-b","voice-command"}},"message-text":" like product-b the voice-command is mind-blowing:)"} +{"tweetid":"5","user":{"screen-name":"NathanGiesen@211","lang":"en","friends_count":39339,"statuses_count":473,"name":"Nathan Giesen","followers_count":49416},"sender-location":point("40.09,92.69"),"send-time":datetime("2006-08-04T10:10:00"),"referred-topics":{{"product-w","speed"}},"message-text":" can't stand product-w its speed is terrible:("} +{"tweetid":"6","user":{"screen-name":"ColineGeyer@63","lang":"en","friends_count":121,"statuses_count":362,"name":"Coline Geyer","followers_count":17159},"sender-location":point("47.51,83.99"),"send-time":datetime("2010-05-07T10:10:00"),"referred-topics":{{"x-phone","voice-clarity"}},"message-text":" like x-phone the voice-clarity is good:)"} +{"tweetid":"7","user":{"screen-name":"ChangEwing_573","lang":"en","friends_count":182,"statuses_count":394,"name":"Chang Ewing","followers_count":32136},"sender-location":point("36.21,72.6"),"send-time":datetime("2011-08-25T10:10:00"),"referred-topics":{{"product-y","platform"}},"message-text":" like product-y the platform is good"} +{"tweetid":"8","user":{"screen-name":"NathanGiesen@211","lang":"en","friends_count":39339,"statuses_count":473,"name":"Nathan Giesen","followers_count":49416},"sender-location":point("46.05,93.34"),"send-time":datetime("2005-10-14T10:10:00"),"referred-topics":{{"product-z","shortcut-menu"}},"message-text":" like product-z the shortcut-menu is awesome:)"} +{"tweetid":"9","user":{"screen-name":"NathanGiesen@211","lang":"en","friends_count":39339,"statuses_count":473,"name":"Nathan Giesen","followers_count":49416},"sender-location":point("36.86,74.62"),"send-time":datetime("2012-07-21T10:10:00"),"referred-topics":{{"ccast","voicemail-service"}},"message-text":" love ccast its voicemail-service is awesome"} +{"tweetid":"10","user":{"screen-name":"ColineGeyer@63","lang":"en","friends_count":121,"statuses_count":362,"name":"Coline Geyer","followers_count":17159},"sender-location":point("29.15,76.53"),"send-time":datetime("2008-01-26T10:10:00"),"referred-topics":{{"ccast","voice-clarity"}},"message-text":" hate ccast its voice-clarity is OMG:("} +{"tweetid":"11","user":{"screen-name":"NilaMilliron_tw","lang":"en","friends_count":445,"statuses_count":164,"name":"Nila Milliron","followers_count":22649},"sender-location":point("37.59,68.42"),"send-time":datetime("2008-03-09T10:10:00"),"referred-topics":{{"x-phone","platform"}},"message-text":" can't stand x-phone its platform is terrible"} +{"tweetid":"12","user":{"screen-name":"OliJackson_512","lang":"en","friends_count":445,"statuses_count":164,"name":"Oli Jackson","followers_count":22649},"sender-location":point("24.82,94.63"),"send-time":datetime("2010-02-13T10:10:00"),"referred-topics":{{"product-y","voice-command"}},"message-text":" like product-y the voice-command is amazing:)"} http://git-wip-us.apache.org/repos/asf/asterixdb-site/blob/d00eca89/docs/0.9.4/data/twu.adm -- diff --git a/docs/0.9.4/data/twu.adm b/docs/0.9.4/data/twu.adm new file mode 100644 index 000..32a1917 --- /dev/null +++ b/docs/0.9.4/data/twu.adm @@ -0,0 +1,4 @@ +{"screen-name":"NathanGiesen@211","lang":"en","friends_count":18,"statuses_count":473,"name":"Nathan Giesen",
[04/27] asterixdb-site git commit: Add 0.9.4
http://git-wip-us.apache.org/repos/asf/asterixdb-site/blob/d00eca89/docs/0.9.4/js/apache-maven-fluido-1.7.min.js -- diff --git a/docs/0.9.4/js/apache-maven-fluido-1.7.min.js b/docs/0.9.4/js/apache-maven-fluido-1.7.min.js new file mode 100644 index 000..1324fb4 --- /dev/null +++ b/docs/0.9.4/js/apache-maven-fluido-1.7.min.js @@ -0,0 +1,25 @@ +/*! + * jQuery JavaScript Library v1.11.2 + * http://jquery.com/ + * + * Includes Sizzle.js + * http://sizzlejs.com/ + * + * Copyright 2005, 2014 jQuery Foundation, Inc. and other contributors + * Released under the MIT license + * http://jquery.org/license + * + * Date: 2014-12-17T15:27Z + */ +(function(b,a){if(typeof module==="object"&&typeof module.exports==="object"){module.exports=b.document?a(b,true):function(c){if(!c.document){throw new Error("jQuery requires a window with a document")}return a(c)}}else{a(b)}}(typeof window!=="undefined"?window:this,function(a5,av){var aP=[];var P=aP.slice;var az=aP.concat;var x=aP.push;var bU=aP.indexOf;var ac={};var y=ac.toString;var K=ac.hasOwnProperty;var D={};var ai="1.11.2",bI=function(e,i){return new bI.fn.init(e,i)},E=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,bS=/^-ms-/,aW=/-([\da-z])/gi,O=function(e,i){return i.toUpperCase()};bI.fn=bI.prototype={jquery:ai,constructor:bI,selector:"",length:0,toArray:function(){return P.call(this)},get:function(e){return e!=null?(e<0?this[e+this.length]:this[e]):P.call(this)},pushStack:function(e){var i=bI.merge(this.constructor(),e);i.prevObject=this;i.context=this.context;return i},each:function(i,e){return bI.each(this,i,e)},map:function(e){return this.pushStack(bI.map(this,function(b7,b6){retu rn e.call(b7,b6,b7)}))},slice:function(){return this.pushStack(P.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(b7){var e=this.length,b6=+b7+(b7<0?e:0);return this.pushStack(b6>=0&&b6=0},isEmptyObject:function(i){var e;for(e in i){return false}return true},isPlainObject:function(b7){var i;if(!b7||bI.type(b7)!=="object"||b7.nodeType||bI.isWindow(b7)){return false}try{if(b7.constructor&&!K.call(b7,"constructor")&&!K.call(b7.constructor.prototype,"isPrototypeOf")){return false}}catch(b6){return false}if(D.ownLast){for(i in b7){return K.call(b7,i)}}for(i in b7){}return i===undefined||K.call(b7,i)},type:function(e){if(e==null){return e+""}return typeof e==="object"||typeof e==="function"?ac[y.call(e)]||"object":typeof e},globalEval:function(e){if(e&&bI.trim(e)){(a5.execScript||function(i){a5["eval"].call(a5,i)})(e)}},camelCase:function(e){return e.replace(bS,"ms-").replace(aW,O)},nodeN ame:function(i,e){return i.nodeName&&i.nodeName.toLowerCase()===e.toLowerCase()},each:function(ca,cb,b6){var b9,b7=0,b8=ca.length,e=ad(ca);if(b6){if(e){for(;b70&&(i-1) in b6}var m= +/*! + * Sizzle CSS Selector Engine v2.2.0-pre + * http://sizzlejs.com/ + * + * Copyright 2008, 2014 jQuery Foundation, Inc. and other contributors + * Released under the MIT license + * http://jquery.org/license + * + * Date: 2014-12-16 + */ +(function(de){var cy,dh,cn,cH,cK,ci,cW,dg,dm,cI,cX,cZ,cC,co,c8,c3,df,ce,cF,da="sizzle"+1*new Date(),cJ=de.document,di=0,c4=0,b9=cA(),c9=cA(),cG=cA(),cE=function(i,e){if(i===e){cX=true}return 0},cQ=1<<31,cO=({}).hasOwnProperty,dc=[],dd=dc.pop,cM=dc.push,b7=dc.push,cm=dc.slice,cd=function(dq,dp){var dn=0,e=dq.length;for(;dn+~]|"+cp+")"+cp+" *"),ct=new RegExp("="+cp+"*([^\\]'\"]*?)"+cp+"*\\]","g"),cS=new RegExp(ck),cU=new RegExp("^"+cL+"$"),c2={ID:new RegExp("^#("+b6+")"),CLASS:new RegExp("^\\.("+b6+")"),TAG:new RegExp("^("+b6.replace("w","w*")+")"),ATTR:new RegExp("^"+c6),PSEUDO:new RegExp("^"+ck),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+cp+"*(even|odd|(([+-]|)(\\d*)n|)"+cp+"*(?:([+-]|)"+cp+"*(\\d+)|))"+cp+"*\\)|)","i"),bool:new RegExp("^(?:"+b8+")$","i"),needsContext:new RegExp("^"+cp+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+cp+"*((?:-\\d)?\\d*)"+cp+"*\\)|)(?=[^-]|$)","i")},cc=/^(?:input|select|textarea|button)$/i,cl=/^h\d$/i,cP=/^[^{]+\{\s*\[native \w/,cR=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,c1=/[+~]/,cN=/'|\\/g,cs=new RegExp("([\\da-f]{1,6}"+cp+"?|("+cp+")|.)","ig"),c5=function(e,dp,i){var dn="0x"+dp-65536;return dn!==dn||i?dp:dn<0?String.fromCharCode(dn+65536):String.fromCharCode(dn>>10|55296,dn&1023|56320)},dl=function(){cZ()};try{b7.apply((dc=cm.call(cJ.childNodes)),cJ .childNodes);dc[cJ.childNodes.length].nodeType}catch(cD){b7={apply:dc.length?function(i,e){cM.apply(i,cm.call(e))}:function(dq,dp){var e=dq.length,dn=0;while((dq[e++]=dp[dn++])){}dq.length=e-1}}}function cw(dv,dn,dz,dB){var dA,ds,dt,dx,dy,dr,dq,e,dp,dw;if((dn?dn.ownerDocument||dn:cJ)!==cC){cZ(dn)}dn=dn||cC;dz=dz||[];dx=dn.nodeType;if(typeof dv!=="string"||!dv||dx!==1&&dx!==9&&dx!==11){return dz}if(!dB&&c8){if(dx!==11&&(dA=cR.exec(dv))){if((dt=dA[1])){if(dx===9){ds=dn.getElementById(dt);if(ds&&ds.parentNode){
[09/27] asterixdb-site git commit: Add 0.9.4
http://git-wip-us.apache.org/repos/asf/asterixdb-site/blob/d00eca89/docs/0.9.4/css/apache-maven-fluido-1.7.min.css -- diff --git a/docs/0.9.4/css/apache-maven-fluido-1.7.min.css b/docs/0.9.4/css/apache-maven-fluido-1.7.min.css new file mode 100644 index 000..b436baf --- /dev/null +++ b/docs/0.9.4/css/apache-maven-fluido-1.7.min.css @@ -0,0 +1,17 @@ +/*! + * Bootstrap v2.3.2 + * + * Copyright 2013 Twitter, Inc + * Licensed under the Apache License v2.0 + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Designed and built with all the love in the world by @mdo and @fat. + */.clearfix{*zoom:1}.clearfix:before,.clearfix:after{display:table;line-height:0;content:""}.clearfix:after{clear:both}.hide-text{font:0/0 a;color:transparent;text-shadow:none;background-color:transparent;border:0}.input-block-level{display:block;width:100%;min-height:30px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}article,aside,details,figcaption,figure,footer,header,hgroup,nav,section{display:block}audio,canvas,video{display:inline-block;*display:inline;*zoom:1}audio:not([controls]){display:none}html{font-size:100%;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%}a:focus{outline:thin dotted #333;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}a:hover,a:active{outline:0}sub,sup{position:relative;font-size:75%;line-height:0;vertical-align:baseline}sup{top:-0.5em}sub{bottom:-0.25em}img{width:auto\9;height:auto;max-width:100%;vertical-align:middle;border:0;-ms-interpolation-mode:bicubic}#map_canvas img,.google-maps img{max-widt h:none}button,input,select,textarea{margin:0;font-size:100%;vertical-align:middle}button,input{*overflow:visible;line-height:normal}button::-moz-focus-inner,input::-moz-focus-inner{padding:0;border:0}button,html input[type="button"],input[type="reset"],input[type="submit"]{cursor:pointer;-webkit-appearance:button}label,select,button,input[type="button"],input[type="reset"],input[type="submit"],input[type="radio"],input[type="checkbox"]{cursor:pointer}input[type="search"]{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;-webkit-appearance:textfield}input[type="search"]::-webkit-search-decoration,input[type="search"]::-webkit-search-cancel-button{-webkit-appearance:none}textarea{overflow:auto;vertical-align:top}@media print{*{color:#000!important;text-shadow:none!important;background:transparent!important;box-shadow:none!important}a,a:visited{text-decoration:underline}a[href]:after{content:" (" attr(href) ")"}abbr[title]:after{content:" (" attr(title) ")"}.ir a:after,a[href^="javascript:"]:after,a[href^="#"]:after{content:""}pre,blockquote{border:1px solid #999;page-break-inside:avoid}thead{display:table-header-group}tr,img{page-break-inside:avoid}img{max-width:100%!important}@page{margin:.5cm}p,h2,h3{orphans:3;widows:3}h2,h3{page-break-after:avoid}}body{margin:0;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:14px;line-height:20px;color:#333;background-color:#fff}a{color:#08c;text-decoration:none}a:hover,a:focus{color:#005580;text-decoration:underline}.img-rounded{-webkit-border-radius:6px;-moz-border-radius:6px;border-radius:6px}.img-polaroid{padding:4px;background-color:#fff;border:1px solid #ccc;border:1px solid rgba(0,0,0,0.2);-webkit-box-shadow:0 1px 3px rgba(0,0,0,0.1);-moz-box-shadow:0 1px 3px rgba(0,0,0,0.1);box-shadow:0 1px 3px rgba(0,0,0,0.1)}.img-circle{-webkit-border-radius:500px;-moz-border-radius:500px;border-radius:500px}.row{margin-left:-20px;*zoom:1}.row:before,.row:after{display:table;line-hei ght:0;content:""}.row:after{clear:both}[class*="span"]{float:left;min-height:1px;margin-left:20px}.container,.navbar-static-top .container,.navbar-fixed-top .container,.navbar-fixed-bottom .container{width:940px}.span12{width:940px}.span11{width:860px}.span10{width:780px}.span9{width:700px}.span8{width:620px}.span7{width:540px}.span6{width:460px}.span5{width:380px}.span4{width:300px}.span3{width:220px}.span2{width:140px}.span1{width:60px}.offset12{margin-left:980px}.offset11{margin-left:900px}.offset10{margin-left:820px}.offset9{margin-left:740px}.offset8{margin-left:660px}.offset7{margin-left:580px}.offset6{margin-left:500px}.offset5{margin-left:420px}.offset4{margin-left:340px}.offset3{margin-left:260px}.offset2{margin-left:180px}.offset1{margin-left:100px}.row-fluid{width:100%;*zoom:1}.row-fluid:before,.row-fluid:after{display:table;line-height:0;content:""}.row-fluid:after{clear:both}.row-fluid [class*="span"]{display:block;float:left;width:100%;min-height:30px;margin-left:2.127 659574468085%;*margin-left:2.074468085106383%;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.row-fluid [class*="span"]:first-child{margin-left:0}.row-fluid .controls-row [class*="span"]+[class*="span"]{margin-left:2.127659574468085%}.row-fluid .span12{width:100%;*width:99.94680851063829%
[07/27] asterixdb-site git commit: Add 0.9.4
http://git-wip-us.apache.org/repos/asf/asterixdb-site/blob/d00eca89/docs/0.9.4/data/lineitem.tbl -- diff --git a/docs/0.9.4/data/lineitem.tbl b/docs/0.9.4/data/lineitem.tbl new file mode 100644 index 000..58d47c6 --- /dev/null +++ b/docs/0.9.4/data/lineitem.tbl @@ -0,0 +1,6005 @@ +1|156|4|1|17|17954.55|0.04|0.02|N|O|1996-03-13|1996-02-12|1996-03-22|DELIVER IN PERSON|TRUCK|egular courts above the| +1|68|9|2|36|34850.16|0.09|0.06|N|O|1996-04-12|1996-02-28|1996-04-20|TAKE BACK RETURN|MAIL|ly final dependencies: slyly bold | +1|64|5|3|8|7712.48|0.10|0.02|N|O|1996-01-29|1996-03-05|1996-01-31|TAKE BACK RETURN|REG AIR|riously. regular, express dep| +1|3|6|4|28|25284.00|0.09|0.06|N|O|1996-04-21|1996-03-30|1996-05-16|NONE|AIR|lites. fluffily even de| +1|25|8|5|24|22200.48|0.10|0.04|N|O|1996-03-30|1996-03-14|1996-04-01|NONE|FOB| pending foxes. slyly re| +1|16|3|6|32|29312.32|0.07|0.02|N|O|1996-01-30|1996-02-07|1996-02-03|DELIVER IN PERSON|MAIL|arefully slyly ex| +2|107|2|1|38|38269.80|0.00|0.05|N|O|1997-01-28|1997-01-14|1997-02-02|TAKE BACK RETURN|RAIL|ven requests. deposits breach a| +3|5|2|1|45|40725.00|0.06|0.00|R|F|1994-02-02|1994-01-04|1994-02-23|NONE|AIR|ongside of the furiously brave acco| +3|20|10|2|49|45080.98|0.10|0.00|R|F|1993-11-09|1993-12-20|1993-11-24|TAKE BACK RETURN|RAIL| unusual accounts. eve| +3|129|8|3|27|27786.24|0.06|0.07|A|F|1994-01-16|1993-11-22|1994-01-23|DELIVER IN PERSON|SHIP|nal foxes wake. | +3|30|5|4|2|1860.06|0.01|0.06|A|F|1993-12-04|1994-01-07|1994-01-01|NONE|TRUCK|y. fluffily pending d| +3|184|5|5|28|30357.04|0.04|0.00|R|F|1993-12-14|1994-01-10|1994-01-01|TAKE BACK RETURN|FOB|ages nag slyly pending| +3|63|8|6|26|25039.56|0.10|0.02|A|F|1993-10-29|1993-12-18|1993-11-04|TAKE BACK RETURN|RAIL|ges sleep after the caref| +4|89|10|1|30|29672.40|0.03|0.08|N|O|1996-01-10|1995-12-14|1996-01-18|DELIVER IN PERSON|REG AIR|- quickly regular packages sleep. idly| +5|109|10|1|15|15136.50|0.02|0.04|R|F|1994-10-31|1994-08-31|1994-11-20|NONE|AIR|ts wake furiously | +5|124|5|2|26|26627.12|0.07|0.08|R|F|1994-10-16|1994-09-25|1994-10-19|NONE|FOB|sts use slyly quickly special instruc| +5|38|4|3|50|46901.50|0.08|0.03|A|F|1994-08-08|1994-10-13|1994-08-26|DELIVER IN PERSON|AIR|eodolites. fluffily unusual| +6|140|6|1|37|38485.18|0.08|0.03|A|F|1992-04-27|1992-05-15|1992-05-02|TAKE BACK RETURN|TRUCK|p furiously special foxes| +7|183|4|1|12|12998.16|0.07|0.03|N|O|1996-05-07|1996-03-13|1996-06-03|TAKE BACK RETURN|FOB|ss pinto beans wake against th| +7|146|3|2|9|9415.26|0.08|0.08|N|O|1996-02-01|1996-03-02|1996-02-19|TAKE BACK RETURN|SHIP|es. instructions| +7|95|8|3|46|45774.14|0.10|0.07|N|O|1996-01-15|1996-03-27|1996-02-03|COLLECT COD|MAIL| unusual reques| +7|164|5|4|28|29796.48|0.03|0.04|N|O|1996-03-21|1996-04-08|1996-04-20|NONE|FOB|. slyly special requests haggl| +7|152|4|5|38|39981.70|0.08|0.01|N|O|1996-02-11|1996-02-24|1996-02-18|DELIVER IN PERSON|TRUCK|ns haggle carefully ironic deposits. bl| +7|80|10|6|35|34302.80|0.06|0.03|N|O|1996-01-16|1996-02-23|1996-01-22|TAKE BACK RETURN|FOB|jole. excuses wake carefully alongside of | +7|158|3|7|5|5290.75|0.04|0.02|N|O|1996-02-10|1996-03-26|1996-02-13|NONE|FOB|ithely regula| +32|83|4|1|28|27526.24|0.05|0.08|N|O|1995-10-23|1995-08-27|1995-10-26|TAKE BACK RETURN|TRUCK|sleep quickly. req| +32|198|10|2|32|35142.08|0.02|0.00|N|O|1995-08-14|1995-10-07|1995-08-27|COLLECT COD|AIR|lithely regular deposits. fluffily | +32|45|2|3|2|1890.08|0.09|0.02|N|O|1995-08-07|1995-10-07|1995-08-23|DELIVER IN PERSON|AIR| express accounts wake according to the| +32|3|8|4|4|3612.00|0.09|0.03|N|O|1995-08-04|1995-10-01|1995-09-03|NONE|REG AIR|e slyly final pac| +32|86|7|5|44|43387.52|0.05|0.06|N|O|1995-08-28|1995-08-20|1995-09-14|DELIVER IN PERSON|AIR|symptotes nag according to the ironic depo| +32|12|6|6|6|5472.06|0.04|0.03|N|O|1995-07-21|1995-09-23|1995-07-25|COLLECT COD|RAIL| gifts cajole carefully.| +33|62|7|1|31|29823.86|0.09|0.04|A|F|1993-10-29|1993-12-19|1993-11-08|COLLECT COD|TRUCK|ng to the furiously ironic package| +33|61|8|2|32|30753.92|0.02|0.05|A|F|1993-12-09|1994-01-04|1993-12-28|COLLECT COD|MAIL|gular theodolites| +33|138|4|3|5|5190.65|0.05|0.03|A|F|1993-12-09|1993-12-25|1993-12-23|TAKE BACK RETURN|AIR|. stealthily bold exc| +33|34|5|4|41|38295.23|0.09|0.00|R|F|1993-11-09|1994-01-24|1993-11-11|TAKE BACK RETURN|MAIL|unusual packages doubt caref| +34|89|10|1|13|12858.04|0.00|0.07|N|O|1998-10-23|1998-09-14|1998-11-06|NONE|REG AIR|nic accounts. deposits are alon| +34|90|1|2|22|21781.98|0.08|0.06|N|O|1998-10-09|1998-10-16|1998-10-12|NONE|FOB|thely slyly p| +34|170|7|3|6|6421.02|0.02|0.06|N|O|1998-10-30|1998-09-20|1998-11-05|NONE|FOB|ar foxes sleep | +35|1|4|1|24|21624.00|0.02|0.00|N|O|1996-02-21|1996-01-03|1996-03-18|TAKE BACK RETURN|FOB|, regular tithe| +35|162|1|2|34|36113.44|0.06|0.08|N|O|1996-01-22|1996-01-06|1996-01-27|DELIVER IN PERSON|RAIL|s are carefully against the f| +
[26/27] asterixdb-site git commit: Add 0.9.4
http://git-wip-us.apache.org/repos/asf/asterixdb-site/blob/d00eca89/content/docs/0.9.4/aql/fulltext.html -- diff --git a/content/docs/0.9.4/aql/fulltext.html b/content/docs/0.9.4/aql/fulltext.html new file mode 100644 index 000..022e124 --- /dev/null +++ b/content/docs/0.9.4/aql/fulltext.html @@ -0,0 +1,208 @@ + + +http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en"> + + + + + +AsterixDB – AsterixDB Support of Full-text search queries + + + + + + + + + + + + + + + + +Last Published: 2018-10-02 + Version: 0.9.4 + Documentation Home + + + + + + + Get Started - Installation +Option 1: using NCService +Option 2: using Ansible +Option 3: using Amazon Web Services + AsterixDB Primer +Option 1: using SQL++ +Option 2: using AQL + Data Model +The Asterix Data Model + Queries - SQL++ +The SQL++ Query Language +Builtin Functions + Queries - AQL +The Asterix Query Language (AQL) +Builtin Functions + API/SDK +HTTP API +CSV Output + Advanced Features +Support of Full-text Queries +Accessing External Data +Support for Data Ingestion +User Defined Functions +Filter-Based LSM Index Acceleration +Support of Similarity Queries + + + + + + + + + + + + + +AsterixDB Support of Full-text search queries + +Table of Contents + + +Motivation +Syntax +Creating and utilizing a Full-text index + + +Motivation [Back to TOC] +Full-Text Search (FTS) queries are widely used in applications where users need to find records that satisfy an FTS predicate, i.e., where simple string-based matching is not sufficient. These queries are important when finding documents that contain a certain keyword is crucial. FTS queries are different from substring matching queries in that FTS queries find their query predicates as exact keywords in the given string, rather than treating a query predicate as a sequence of characters. For example, an FTS query that finds “rain” correctly returns a document when it contains “rain” as a word. However, a substring-matching query returns a document whenever it contains “rain” as a substring, for instance, a document with “brain” or “training” would be returned as well. + +Syntax [Back to TOC] +The syntax of AsterixDB FTS follows a portion of the XQuery FullText Search syntax. Two basic forms are as follows: + + + +ftcontains(Expression1, Expression2, {FullTextOption}) +ftcontains(Expression1, Expression2) + + +For example, we can execute the following query to find tweet messages where the message-text field includes “voice” as a word. Please note that an FTS search is case-insensitive. Thus, “Voice” or “voice” will be evaluated as the same word. + + + +use dataverse TinySocial; + +for $msg in dataset TweetMessages +where ftcontains($msg.message-text, "voice", {"mode":"any"}) +return {"id": $msg.id} + + +The DDL and DML of TinySocial can be found in ADM: Modeling Semistructed Data in AsterixDB. +The same query can be also expressed in the SQL++. + + + +use TinySocial; + +select element {"id":msg.id} +from TweetMessages as msg +where TinySocial.ftcontains(msg.`message-text`, "voice", {"mode":"any"}) + + +The Expression1 is an expression that should be evaluable as a string at runtime as in the above example where $msg.message-text is a string field. The Expression2 can be a string, an (un)ordered list of string value(s), or an expression. In the last case, the given expression should be evaluable into one of the first two types, i.e., into a string value or an (un)ordered list of string value(s). +The following examples are all valid expressions. + + + + ... where ftcontains($msg.message-text, "sound") + ... where ftcontains($msg.message-text, "sound", {"mode":"any"}) + ... where ftcontains($msg.message-text, ["sound", "system"], {"mode":"any"}) + ... where ftcontains($msg.message-text, {{"speed", "stand", "customization"}}, {"mode":"all"}) + ... where ftcontains($msg.message-text, let $keyword_list := ["voice", "system"] return $keyword_list, {"mode":"all"}) + ... where ftcontains($msg.message-text, $keyword_list, {"mode":"any"}) + + +In the last example above, $keyword_list should evaluate to a string or an (un)ordered list of string value(s). +The last FullTextOption parameter clarifies the given FTS request. If you omit the FullTextOption parameter, then the default value will be set for each possible option. Currently, we only have one option named mode. And as we extend the FTS feature, more options will be added. Please note that the format of FullTextOption is a record, thus
[05/27] asterixdb-site git commit: Add 0.9.4
http://git-wip-us.apache.org/repos/asf/asterixdb-site/blob/d00eca89/docs/0.9.4/fonts/glyphicons-halflings-regular.svg -- diff --git a/docs/0.9.4/fonts/glyphicons-halflings-regular.svg b/docs/0.9.4/fonts/glyphicons-halflings-regular.svg new file mode 100644 index 000..4469488 --- /dev/null +++ b/docs/0.9.4/fonts/glyphicons-halflings-regular.svg @@ -0,0 +1,229 @@ + +http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"; > +http://www.w3.org/2000/svg";> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file http://git-wip-us.apache.org/repos/asf/asterixdb-site/blob/d00eca89/docs/0.9.4/fonts/glyphicons-halflings-regular.ttf -- diff --git a/docs/0.9.4/fonts/glyphicons-halflings-regular.ttf b/docs/0.9.4/fonts/glyphicons-halflings-regular.ttf new file mode 100644 index 000..2824015 Binary files /dev/null and b/docs/0.9.4/fonts/glyphicons-halflings-regular.ttf differ http://git-wip-us.apache.org/repos/asf/asterixdb-site/blob/d00eca89/docs/0.9.4/fonts/glyphicons-halflings-regular.woff -- diff --git a/docs/0.9.4/fonts/glyphicons-halflings-regular.woff b/docs/0.9.4/fonts/glyphicons-halflings-regular.woff new file mode 100644 index 000..f824ac1 Binary files /dev/null and b/docs/0.9.4/fonts/glyphicons-halflings-regular.woff differ http://git-wip-us.apache.org/repos/asf/asterixdb-site/blob/d00eca89/docs/0.9.4/images/AsterixCluster.png -- diff --git a/docs/0.9.4/images/AsterixCluster.png b/docs/0.9.4/images/AsterixCluster.png new file mode 100644 index 000..a16ee26 Binary files /dev/null and b/docs/0.9.4/images/AsterixCluster.png differ http://git-wip-us.apache.org/repos/asf/asterixdb-site/blob/d00eca89/docs/0.9.4/images/accessories-text-editor.png -- diff --git a/docs/0.9.4/images/accessories-text-editor.png b/docs/0.9.4/images/accessories-text-editor.png new file mode 100644 index 000..abc3366 Binary files /dev/null and b/docs/0.9.4/images/accessories-text-editor.png differ http://git-wip-us.apache.org/repos/asf/asterixdb-site/blob/d00eca89/docs/0.9.4/images/add.gif -- diff --git a/docs/0.9.4/images/add.gif b/docs/0.9.4/images/add.gif new file mode 100644 index 000..1cb3dbf Binary files /dev/null and b/docs/0.9.4/images/add.gif differ http://git-wip-us.apache.org/repos/asf/asterixdb-site/blob/d00eca89/docs/0.9.4/images/apache-maven-project-2.png -- diff --git a/docs/0.9.4/images/apache-maven-project-2.png b/docs/0.9.4/images/apache-maven-project-2.png new file mode 100644 index 000..a44db6e Binary files /dev/null and b/docs/0.9.4/images/apache-maven-project-2.png differ http://git-wip-us.apache.org/repos/asf/asterixdb-site/blob/d00eca89/docs/0.9.4/images/application-certificate.png -- diff --git a/docs/0.9.4/images/application-certificate.png b/docs/0.9.4/images/application-certificate.png new file mode 100644 index 000..cc6aff6 Binary files /dev/null and b/docs/0.9.4/images/application-certificate.png differ http://git-wip-us.apache.org/repos/asf/asterixdb-site/blob/d00eca89/docs/0.9.4/images/asf_logo_wide.png -- diff --git a/docs/0.9.4/images/asf_logo_wide.png b/docs/0.9.4/images/asf_logo_wide.png new file mode 100644 index 000..56a4369 Binary files /dev/null and b/docs/0.9.4/images/asf_logo_wide.png differ http://git-wip-us.apache.org/repos/asf/asterixdb-site/blob/d00eca89/docs/0.9.4/images/asterix_webui.png -- diff --git a/docs/0.9.4/images/asterix_webui.png b/docs/0.9.4/images/asterix_webui.png new file mode 100644 index 000..27522c4 Binary files /dev/null and b/docs/0.9.4/images/asterix_webui.png differ http://git-wip-us.apache.org/repos/asf/asterixdb-site/blob/d00eca89/docs/0.9.4/images/asterixdb_interface.png -- diff --git a/docs/0.9.4/images/asterixdb_interface.png b/docs/0.9.4/images/asterixdb_interface.png new file mode 100644 index 000..e963b90 Binary files /dev/null and b/docs/0.9.4/images/as
[16/27] asterixdb-site git commit: Add 0.9.4
http://git-wip-us.apache.org/repos/asf/asterixdb-site/blob/d00eca89/content/docs/0.9.4/ncservice.html -- diff --git a/content/docs/0.9.4/ncservice.html b/content/docs/0.9.4/ncservice.html new file mode 100644 index 000..f65561d --- /dev/null +++ b/content/docs/0.9.4/ncservice.html @@ -0,0 +1,918 @@ + + +http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en"> + + + + + +AsterixDB – Table of Contents + + + + + + + + + + + + + + + + +Last Published: 2018-10-02 + Version: 0.9.4 + Documentation Home + + + + + + + Get Started - Installation +Option 1: using NCService +Option 2: using Ansible +Option 3: using Amazon Web Services + AsterixDB Primer +Option 1: using SQL++ +Option 2: using AQL + Data Model +The Asterix Data Model + Queries - SQL++ +The SQL++ Query Language +Builtin Functions + Queries - AQL +The Asterix Query Language (AQL) +Builtin Functions + API/SDK +HTTP API +CSV Output + Advanced Features +Support of Full-text Queries +Accessing External Data +Support for Data Ingestion +User Defined Functions +Filter-Based LSM Index Acceleration +Support of Similarity Queries + + + + + + + + + + + + + + +Table of Contents + + +Quick Start +Starting a small single-machine cluster using the NCService +Deploying AsterixDB via NCService in a multi-machine setup +Available Configuration Parameters + +Quick Start +The fastest way to get set up with a single-machine sample instance of AsterixDB is to use the included sample helper scripts. To do so, in the extracted asterix-server directory, navigate to opt/local/bin/ + + + +user@localhost:~/ +$cd asterix-server/ +user@localhost:~/asterix-server +$cd opt/local/bin + + +This folder should contain 4 scripts, two pairs of .sh and .bat files respectively. start-sample-cluster.sh will simply start a basic sample cluster using the configuration files located in opt/local/conf/. + + + +user@localhost:~/a/o/l/bin +$./start-sample-cluster.sh +CLUSTERDIR=/home/user/asterix-server/opt/local +INSTALLDIR=/home/user/asterix-server +LOGSDIR=/home/user/asterix-server/samples/opt/logs + +INFO: Starting sample cluster... +INFO: Waiting up to 30 seconds for cluster 127.0.0.1:19002 to be available. +INFO: Cluster started and is ACTIVE. +user@localhost:~/a/o/l/bin +$ + + +Now, there should be a running AsterixDB cluster on the machine. To go to the Web Interface, visit http://localhost:19001";>http://localhost:19001 + + + + + +Fig. 1: The AsterixDB Web Interface + + + +Starting a small single-machine cluster using NCService +The above cluster was started using a script, but below is a description in detail of how precisely this was achieved. The config files here are analagous to the ones within samples/local/conf. +When running a cluster using the NCService there are 3 different kinds of processes involved: + + +NCDriver, also known as the Node Controller or NC for short. This is the process that does the actual work of queries and data management within the AsterixDB cluster +NCService configures and starts the NCDriver process. It is a simple daemon whose only purpose is to wait for the CCDriver process to call upon it to initiate cluster bootup. +CCDriver, which is the Cluster Controller process, also known as the CC. This process manages the distribution of tasks to all NCs, as well as providing the parameters of each NC to the NCService upon cluster startup. It also hosts the Web interface and query compiler and optimizer. + +The cluster startup follows a particular sequence, which is as follows: + + +Each host on which an NC is desired and is mentioned in the configuration, the NCService daemon is started first. It will listen and wait for the CC to contact it. +The one host on which the CC is to be placed is started with an appropriate configuration file. +The CC contacts all NCService daemons and the NCService subsequently starts and NCDriver process with the configration supplied by the CC +Each NCDriver then contacts the CC to register itself as started + +This process is briefly illustrated in the diagram below: + + + + + +Fig. 2: NCService startup sequence + + + +To start a small cluster consisting of 2 NodeControllers (red and blue) and 1 ClusterController (cc) on a single machine only 2 configuration files are required. The first one is +blue.conf: + + + +[ncservice] +port=9091 + + +It is a configuration file for the second NCService. This contains only the port that the NCService of the second NodeControllers listens to as it is non-standard. The first NCService does not need a configuration file, as it
[12/27] asterixdb-site git commit: Add 0.9.4
http://git-wip-us.apache.org/repos/asf/asterixdb-site/blob/d00eca89/docs/0.9.4/aql/manual.html -- diff --git a/docs/0.9.4/aql/manual.html b/docs/0.9.4/aql/manual.html new file mode 100644 index 000..7a45391 --- /dev/null +++ b/docs/0.9.4/aql/manual.html @@ -0,0 +1,997 @@ + + +http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en"> + + + + + +AsterixDB – The Asterix Query Language, Version 1.0 + + + + + + + + + + + + + + + + +Last Published: 2018-10-02 + Version: 0.9.4 + Documentation Home + + + + + + + Get Started - Installation +Option 1: using NCService +Option 2: using Ansible +Option 3: using Amazon Web Services + AsterixDB Primer +Option 1: using SQL++ +Option 2: using AQL + Data Model +The Asterix Data Model + Queries - SQL++ +The SQL++ Query Language +Builtin Functions + Queries - AQL +The Asterix Query Language (AQL) +Builtin Functions + API/SDK +HTTP API +CSV Output + Advanced Features +Support of Full-text Queries +Accessing External Data +Support for Data Ingestion +User Defined Functions +Filter-Based LSM Index Acceleration +Support of Similarity Queries + + + + + + + + + + + + + +The Asterix Query Language, Version 1.0 + +Table of Contents + + +1. Introduction +2. Expressions +3. Statements + + +1. Introduction [Back to TOC] +This document is intended as a reference guide to the full syntax and semantics of the Asterix Query Language (AQL), the language for talking to AsterixDB. This guide covers both the data manipulation language (DML) aspects of AQL, including its support for queries and data modification, as well as its data definition language (DDL) aspects. New AsterixDB users are encouraged to read and work through the (friendlier) guide “AsterixDB 101: An ADM and AQL Primer” before attempting to make use of this document. In addition, readers are advised to read and understand the Asterix Data Model (ADM) reference guide since a basic understanding of ADM concepts is a prerequisite to understanding AQL. In what follows, we detail the features of the AQL language in a grammar-guided manner: We list and briefly explain each of the productions in the AQL grammar, offering examples for clarity in cases where doing so seems needed or helpful. + +2. Expressions [Back to TOC] + + + +Query ::= Expression + + +An AQL query can be any legal AQL expression. + + + +Expression ::= ( OperatorExpr | IfThenElse | FLWOR | QuantifiedExpression ) + + +AQL is a fully composable expression language. Each AQL expression returns zero or more Asterix Data Model (ADM) instances. There are four major kinds of expressions in AQL. At the topmost level, an AQL expression can be an OperatorExpr (similar to a mathematical expression), an IfThenElse (to choose between two alternative values), a FLWOR expression (the heart of AQL, pronounced “flower expression”), or a QuantifiedExpression (which yields a boolean value). Each will be detailed as we explore the full AQL grammar. + +Primary Expressions + + + +PrimaryExpr ::= Literal + | VariableRef + | ParenthesizedExpression + | FunctionCallExpr + | DatasetAccessExpression + | ListConstructor + | ObjectConstructor + + +The most basic building block for any AQL expression is the PrimaryExpr. This can be a simple literal (constant) value, a reference to a query variable that is in scope, a parenthesized expression, a function call, an expression accessing the ADM contents of a dataset, a newly constructed list of ADM instances, or a newly constructed ADM object. + +Literals + + + +Literal::= StringLiteral + | IntegerLiteral + | FloatLiteral + | DoubleLiteral + | "null" + | "true" + | "false" +StringLiteral ::= ("\"" (| ~["\""])* "\"") + | ("\'" ( | ~["\'"])* "\'") + ::= "\\\"" + ::= "\\\'" +IntegerLiteral ::= + ::= ["0" - "9"]+ +FloatLiteral ::= ( "f" | "F" ) + | ( "." ( "f" | "F" ) )? + | "." ( "f" | "F" ) +DoubleLiteral ::= + | ( "." )? + | "." + + +Literals (constants) in AQL can be strings, integers, floating point values, double values, boolean constants, or the constant value null. The null value in AQL has “unknown” or “missing” value semantics, similar to (though not identical to) nulls
[01/27] asterixdb-site git commit: Add 0.9.4
Repository: asterixdb-site Updated Branches: refs/heads/asf-site 9c40a66dc -> d00eca894 http://git-wip-us.apache.org/repos/asf/asterixdb-site/blob/d00eca89/docs/0.9.4/udf.html -- diff --git a/docs/0.9.4/udf.html b/docs/0.9.4/udf.html new file mode 100644 index 000..83f7114 --- /dev/null +++ b/docs/0.9.4/udf.html @@ -0,0 +1,266 @@ + + +http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en"> + + + + + +AsterixDB – Support for User Defined Functions in AsterixDB + + + + + + + + + + + + + + + + +Last Published: 2018-10-02 + Version: 0.9.4 + Documentation Home + + + + + + + Get Started - Installation +Option 1: using NCService +Option 2: using Ansible +Option 3: using Amazon Web Services + AsterixDB Primer +Option 1: using SQL++ +Option 2: using AQL + Data Model +The Asterix Data Model + Queries - SQL++ +The SQL++ Query Language +Builtin Functions + Queries - AQL +The Asterix Query Language (AQL) +Builtin Functions + API/SDK +HTTP API +CSV Output + Advanced Features +Support of Full-text Queries +Accessing External Data +Support for Data Ingestion +User Defined Functions +Filter-Based LSM Index Acceleration +Support of Similarity Queries + + + + + + + + + + + + + +Support for User Defined Functions in AsterixDB + +Table of Contents + + +Using UDF to preprocess feed-collected data +Writing an External UDF +Creating an AsterixDB Library +Installing an AsterixDB Library + +In this document, we describe the support for implementing, using, and installing user-defined functions (UDF) in AsterixDB. We will explain how we can use UDFs to preprocess, e.g., data collected using feeds (see the feeds tutorial). + +Installing an AsterixDB Library +We assume you have followed the installation instructions to set up a running AsterixDB instance. Let us refer your AsterixDB instance by the name “my_asterix”. + + + + +Step 1: Stop the AsterixDB instance if it is in the ACTIVE state. + + + +$ managix stop -n my_asterix + + + + +Step 2: Install the library using Managix install command. Just to illustrate, we use the help command to look up the syntax + + + +$ managix help -cmd install +Installs a library to an asterix instance. +Options +n Name of Asterix Instance +d Name of the dataverse under which the library will be installed +l Name of the library +p Path to library zip bundle + + + +Above is a sample output and explains the usage and the required parameters. Each library has a name and is installed under a dataverse. Recall that we had created a dataverse by the name - “feeds” prior to creating our datatypes and dataset. We shall name our library - “testlib”. +We assume you have a library zip bundle that needs to be installed. To install the library, use the Managix install command. An example is shown below. + + + +$ managix install -n my_asterix -d feeds -l testlib -p extlibs/asterix-external-data-0.8.7-binary-assembly.zip + + +You should see the following message: + + + +INFO: Installed library testlib + + +We shall next start our AsterixDB instance using the start command as shown below. + + + +$ managix start -n my_asterix + + +You may now use the AsterixDB library in AQL statements and queries. To look at the installed artifacts, you may execute the following query at the AsterixDB web-console. + + + +for $x in dataset Metadata.Function +return $x + +for $x in dataset Metadata.Library +return $x + + +Our library is now installed and is ready to be used. + +Preprocessing Collected Data +In the following we assume that you already created the TwitterFeed and its corresponding data types and dataset following the instruction explained in the feeds tutorial. +A feed definition may optionally include the specification of a user-defined function that is to be applied to each feed object prior to persistence. Examples of pre-processing might include adding attributes, filtering out objects, sampling, sentiment analysis, feature extraction, etc. We can express a UDF, which can be defined in AQL or in a programming language such as Java, to perform such pre-processing. An AQL UDF is a good fit when pre-processing a object requires the result of a query (join or aggregate) over data contained in AsterixDB datasets. More sophisticated processing such as sentiment analysis of text is better handled by providing a Java UDF. A Java UDF has an initialization phase that allows the UDF to access any resources it may need to initialize itself prior to being used in a data flow. It is assumed by the AsterixDB compiler to be sta
[02/27] asterixdb-site git commit: Add 0.9.4
http://git-wip-us.apache.org/repos/asf/asterixdb-site/blob/d00eca89/docs/0.9.4/sqlpp/primer-sqlpp.html -- diff --git a/docs/0.9.4/sqlpp/primer-sqlpp.html b/docs/0.9.4/sqlpp/primer-sqlpp.html new file mode 100644 index 000..d0f6ca5 --- /dev/null +++ b/docs/0.9.4/sqlpp/primer-sqlpp.html @@ -0,0 +1,852 @@ + + +http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en"> + + + + + +AsterixDB – AsterixDB 101: An ADM and SQL++ Primer + + + + + + + + + + + + + + + + +Last Published: 2018-10-02 + Version: 0.9.4 + Documentation Home + + + + + + + Get Started - Installation +Option 1: using NCService +Option 2: using Ansible +Option 3: using Amazon Web Services + AsterixDB Primer +Option 1: using SQL++ +Option 2: using AQL + Data Model +The Asterix Data Model + Queries - SQL++ +The SQL++ Query Language +Builtin Functions + Queries - AQL +The Asterix Query Language (AQL) +Builtin Functions + API/SDK +HTTP API +CSV Output + Advanced Features +Support of Full-text Queries +Accessing External Data +Support for Data Ingestion +User Defined Functions +Filter-Based LSM Index Acceleration +Support of Similarity Queries + + + + + + + + + + + + + +AsterixDB 101: An ADM and SQL++ Primer + +Welcome to AsterixDB! +This document introduces the main features of AsterixDB’s data model (ADM) and its new SQL-like query language (SQL++) by example. The example is a simple scenario involving (synthetic) sample data modeled after data from the social domain. This document describes a set of sample datasets, together with a set of illustrative queries, to introduce you to the “AsterixDB user experience”. The complete set of steps required to create and load a handful of sample datasets, along with runnable queries and the expected results for each query, are included. +This document assumes that you are at least vaguely familiar with AsterixDB and why you might want to use it. Most importantly, it assumes you already have a running instance of AsterixDB and that you know how to query it using AsterixDB’s basic web interface. For more information on these topics, you should go through the steps in Installing Asterix Using Managix before reading this document and make sure that you have a running AsterixDB instance ready to go. To get your feet wet, you should probably start with a simple local installation of AsterixDB on your favorite machine, accepting all of the default settings that Managix offers. Later you can graduate to trying AsterixDB on a cluster, its real intended home (since it targets Big Data). (Note: With the exception of specifying the correct locations where you put the source data for this example, there should no changes needed in the SQL++ statements to run the examples locally and/or to run them on a cluster when you are ready to take that step.) +As you read through this document, you should try each step for yourself on your own AsterixDB instance. You will use the AsterixDB web interface to do this, and for SQL++ you will need to select SQL++ instead of AQL as your language of choice in the Query Language box that sits underneath the UI’s query entry area. Once you have reached the end of this tutorial, you will be fully armed and dangerous, with all the basic AsterixDB knowledge that you’ll need to start down the path of modeling, storing, and querying your own semistructured data. + +ADM: Modeling Semistructed Data in AsterixDB +In this section you will learn all about modeling Big Data using ADM, the data model of the AsterixDB BDMS. + +Dataverses, Datatypes, and Datasets +The top-level organizing concept in the AsterixDB world is the dataverse. A dataverse—short for “data universe”—is a place (similar to a database in a relational DBMS) in which to create and manage the types, datasets, functions, and other artifacts for a given AsterixDB application. When you start using an AsterixDB instance for the first time, it starts out “empty”; it contains no data other than the AsterixDB system catalogs (which live in a special dataverse called the Metadata dataverse). To store your data in AsterixDB, you will first create a dataverse and then you use it for the datatypes and datasets for managing your own data. A datatype tells AsterixDB what you know (or more accurately, what you want it to know) a priori about one of the kinds of data instances that you want AsterixDB to hold for you. A dataset is a collection of data instances of a datatype, and AsterixDB makes sure that the data instances that you put in it conform to its specified typ
[08/27] asterixdb-site git commit: Add 0.9.4
http://git-wip-us.apache.org/repos/asf/asterixdb-site/blob/d00eca89/docs/0.9.4/css/print.css -- diff --git a/docs/0.9.4/css/print.css b/docs/0.9.4/css/print.css new file mode 100644 index 000..d4df77f --- /dev/null +++ b/docs/0.9.4/css/print.css @@ -0,0 +1,23 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +/* $Id$ */ + +#banner, #footer, #leftcol, #breadcrumbs, .docs #toc, .docs .courtesylinks, #leftColumn, #navColumn {display: none !important;} +#bodyColumn, body.docs div.docs {margin: 0 !important;border: none !important} http://git-wip-us.apache.org/repos/asf/asterixdb-site/blob/d00eca89/docs/0.9.4/css/site.css -- diff --git a/docs/0.9.4/css/site.css b/docs/0.9.4/css/site.css new file mode 100644 index 000..055e7e2 --- /dev/null +++ b/docs/0.9.4/css/site.css @@ -0,0 +1 @@ +/* You can override this file with your own styles */ \ No newline at end of file http://git-wip-us.apache.org/repos/asf/asterixdb-site/blob/d00eca89/docs/0.9.4/csv.html -- diff --git a/docs/0.9.4/csv.html b/docs/0.9.4/csv.html new file mode 100644 index 000..036c1ef --- /dev/null +++ b/docs/0.9.4/csv.html @@ -0,0 +1,294 @@ + + +http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en"> + + + + + +AsterixDB – CSV Support in AsterixDB + + + + + + + + + + + + + + + + +Last Published: 2018-10-02 + Version: 0.9.4 + Documentation Home + + + + + + + Get Started - Installation +Option 1: using NCService +Option 2: using Ansible +Option 3: using Amazon Web Services + AsterixDB Primer +Option 1: using SQL++ +Option 2: using AQL + Data Model +The Asterix Data Model + Queries - SQL++ +The SQL++ Query Language +Builtin Functions + Queries - AQL +The Asterix Query Language (AQL) +Builtin Functions + API/SDK +HTTP API +CSV Output + Advanced Features +Support of Full-text Queries +Accessing External Data +Support for Data Ingestion +User Defined Functions +Filter-Based LSM Index Acceleration +Support of Similarity Queries + + + + + + + + + + + + + +CSV Support in AsterixDB + +Introduction - Defining a datatype for CSV +AsterixDB supports the CSV format for both data input and query result output. In both cases, the structure of the CSV data must be defined using a named ADM object datatype. The CSV format, limitations, and MIME type are defined by https://tools.ietf.org/html/rfc4180";>RFC 4180. +CSV is not as expressive as the full Asterix Data Model, meaning that not all data which can be represented in ADM can also be represented as CSV. So the form of this datatype is limited. First, obviously it may not contain any nested objects or lists, as CSV has no way to represent nested data structures. All fields in the object type must be primitive. Second, the set of supported primitive types is limited to numerics (int8, int16, int32, int64, float, double) and string. On output, a few additional primitive types (boolean, datetime types) are supported and will be represented as strings. +For the purposes of this document, we will use the following dataverse and datatype definitions: + + + +drop dataverse csv if exists; +create dataverse csv; +use dataverse csv; + +create type "csv_type" as closed { +"id": int32, +"money": float, +"name": string +}; + +create dataset "csv_set" ("csv_type") primary key "id"; + + +Note: There is no explicit restriction against using an open datatype for CSV purposes, and you may have optional fields in the datatype (eg., id: int32?). However, the CSV format itself is rigid, so using either of these datatype features introduces possible failure modes on output which will be discussed below. + +CSV Input +CSV data may be loaded into a dataset usi
[11/27] asterixdb-site git commit: Add 0.9.4
http://git-wip-us.apache.org/repos/asf/asterixdb-site/blob/d00eca89/docs/0.9.4/aql/primer.html -- diff --git a/docs/0.9.4/aql/primer.html b/docs/0.9.4/aql/primer.html new file mode 100644 index 000..46918a7 --- /dev/null +++ b/docs/0.9.4/aql/primer.html @@ -0,0 +1,863 @@ + + +http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en"> + + + + + +AsterixDB – AsterixDB 101: An ADM and AQL Primer + + + + + + + + + + + + + + + + +Last Published: 2018-10-02 + Version: 0.9.4 + Documentation Home + + + + + + + Get Started - Installation +Option 1: using NCService +Option 2: using Ansible +Option 3: using Amazon Web Services + AsterixDB Primer +Option 1: using SQL++ +Option 2: using AQL + Data Model +The Asterix Data Model + Queries - SQL++ +The SQL++ Query Language +Builtin Functions + Queries - AQL +The Asterix Query Language (AQL) +Builtin Functions + API/SDK +HTTP API +CSV Output + Advanced Features +Support of Full-text Queries +Accessing External Data +Support for Data Ingestion +User Defined Functions +Filter-Based LSM Index Acceleration +Support of Similarity Queries + + + + + + + + + + + + + +AsterixDB 101: An ADM and AQL Primer + +Welcome to AsterixDB! +This document introduces the main features of AsterixDB’s data model (ADM) and query language (AQL) by example. The example is a simple scenario involving (synthetic) sample data modeled after data from the social domain. This document describes a set of sample ADM datasets, together with a set of illustrative AQL queries, to introduce you to the “AsterixDB user experience”. The complete set of steps required to create and load a handful of sample datasets, along with runnable queries and the expected results for each query, are included. +This document assumes that you are at least vaguely familiar with AsterixDB and why you might want to use it. Most importantly, it assumes you already have a running instance of AsterixDB and that you know how to query it using AsterixDB’s basic web interface. For more information on these topics, you should go through the steps in Installing Asterix Using Managix before reading this document and make sure that you have a running AsterixDB instance ready to go. To get your feet wet, you should probably start with a simple local installation of AsterixDB on your favorite machine, accepting all of the default settings that Managix offers. Later you can graduate to trying AsterixDB on a cluster, its real intended home (since it targets Big Data). (Note: With the exception of specifying the correct locations where you put the source data for this example, there should no changes needed in your ADM or AQL statements to run the examples locally and/ or to run them on a cluster when you are ready to take that step.) +As you read through this document, you should try each step for yourself on your own AsterixDB instance. Once you have reached the end, you will be fully armed and dangerous, with all the basic AsterixDB knowledge that you’ll need to start down the path of modeling, storing, and querying your own semistructured data. + +ADM: Modeling Semistructed Data in AsterixDB +In this section you will learn all about modeling Big Data using ADM, the data model of the AsterixDB BDMS. + +Dataverses, Datatypes, and Datasets +The top-level organizing concept in the AsterixDB world is the dataverse. A dataverse—short for “data universe”—is a place (similar to a database in a relational DBMS) in which to create and manage the types, datasets, functions, and other artifacts for a given AsterixDB application. When you start using an AsterixDB instance for the first time, it starts out “empty”; it contains no data other than the AsterixDB system catalogs (which live in a special dataverse called the Metadata dataverse). To store your data in AsterixDB, you will first create a dataverse and then you use it for the datatypes and datasets for managing your own data. A datatype tells AsterixDB what you know (or more accurately, what you want it to know) a priori about one of the kinds of data instances that you want AsterixDB to hold for you. A dataset is a collection of data instances of a datatype, and AsterixDB makes sure that the data instances that you put in it conform to its specified type. Since AsterixDB targets semistructured data, you can use open datatypes and tell it as little or as much as you wish about your data up front; the more you tell it up front, the less information it will have to store repeatedly in the individual data instances that yo
[25/27] asterixdb-site git commit: Add 0.9.4
http://git-wip-us.apache.org/repos/asf/asterixdb-site/blob/d00eca89/content/docs/0.9.4/aql/manual.html -- diff --git a/content/docs/0.9.4/aql/manual.html b/content/docs/0.9.4/aql/manual.html new file mode 100644 index 000..7a45391 --- /dev/null +++ b/content/docs/0.9.4/aql/manual.html @@ -0,0 +1,997 @@ + + +http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en"> + + + + + +AsterixDB – The Asterix Query Language, Version 1.0 + + + + + + + + + + + + + + + + +Last Published: 2018-10-02 + Version: 0.9.4 + Documentation Home + + + + + + + Get Started - Installation +Option 1: using NCService +Option 2: using Ansible +Option 3: using Amazon Web Services + AsterixDB Primer +Option 1: using SQL++ +Option 2: using AQL + Data Model +The Asterix Data Model + Queries - SQL++ +The SQL++ Query Language +Builtin Functions + Queries - AQL +The Asterix Query Language (AQL) +Builtin Functions + API/SDK +HTTP API +CSV Output + Advanced Features +Support of Full-text Queries +Accessing External Data +Support for Data Ingestion +User Defined Functions +Filter-Based LSM Index Acceleration +Support of Similarity Queries + + + + + + + + + + + + + +The Asterix Query Language, Version 1.0 + +Table of Contents + + +1. Introduction +2. Expressions +3. Statements + + +1. Introduction [Back to TOC] +This document is intended as a reference guide to the full syntax and semantics of the Asterix Query Language (AQL), the language for talking to AsterixDB. This guide covers both the data manipulation language (DML) aspects of AQL, including its support for queries and data modification, as well as its data definition language (DDL) aspects. New AsterixDB users are encouraged to read and work through the (friendlier) guide “AsterixDB 101: An ADM and AQL Primer” before attempting to make use of this document. In addition, readers are advised to read and understand the Asterix Data Model (ADM) reference guide since a basic understanding of ADM concepts is a prerequisite to understanding AQL. In what follows, we detail the features of the AQL language in a grammar-guided manner: We list and briefly explain each of the productions in the AQL grammar, offering examples for clarity in cases where doing so seems needed or helpful. + +2. Expressions [Back to TOC] + + + +Query ::= Expression + + +An AQL query can be any legal AQL expression. + + + +Expression ::= ( OperatorExpr | IfThenElse | FLWOR | QuantifiedExpression ) + + +AQL is a fully composable expression language. Each AQL expression returns zero or more Asterix Data Model (ADM) instances. There are four major kinds of expressions in AQL. At the topmost level, an AQL expression can be an OperatorExpr (similar to a mathematical expression), an IfThenElse (to choose between two alternative values), a FLWOR expression (the heart of AQL, pronounced “flower expression”), or a QuantifiedExpression (which yields a boolean value). Each will be detailed as we explore the full AQL grammar. + +Primary Expressions + + + +PrimaryExpr ::= Literal + | VariableRef + | ParenthesizedExpression + | FunctionCallExpr + | DatasetAccessExpression + | ListConstructor + | ObjectConstructor + + +The most basic building block for any AQL expression is the PrimaryExpr. This can be a simple literal (constant) value, a reference to a query variable that is in scope, a parenthesized expression, a function call, an expression accessing the ADM contents of a dataset, a newly constructed list of ADM instances, or a newly constructed ADM object. + +Literals + + + +Literal::= StringLiteral + | IntegerLiteral + | FloatLiteral + | DoubleLiteral + | "null" + | "true" + | "false" +StringLiteral ::= ("\"" (| ~["\""])* "\"") + | ("\'" ( | ~["\'"])* "\'") + ::= "\\\"" + ::= "\\\'" +IntegerLiteral ::= + ::= ["0" - "9"]+ +FloatLiteral ::= ( "f" | "F" ) + | ( "." ( "f" | "F" ) )? + | "." ( "f" | "F" ) +DoubleLiteral ::= + | ( "." )? + | "." + + +Literals (constants) in AQL can be strings, integers, floating point values, double values, boolean constants, or the constant value null. The null value in AQL has “unknown” or “missing” value semantics, similar t
[10/27] asterixdb-site git commit: Add 0.9.4
http://git-wip-us.apache.org/repos/asf/asterixdb-site/blob/d00eca89/docs/0.9.4/aql/similarity.html -- diff --git a/docs/0.9.4/aql/similarity.html b/docs/0.9.4/aql/similarity.html new file mode 100644 index 000..ff71fcf --- /dev/null +++ b/docs/0.9.4/aql/similarity.html @@ -0,0 +1,310 @@ + + +http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en"> + + + + + +AsterixDB – AsterixDB Support of Similarity Queries + + + + + + + + + + + + + + + + +Last Published: 2018-10-02 + Version: 0.9.4 + Documentation Home + + + + + + + Get Started - Installation +Option 1: using NCService +Option 2: using Ansible +Option 3: using Amazon Web Services + AsterixDB Primer +Option 1: using SQL++ +Option 2: using AQL + Data Model +The Asterix Data Model + Queries - SQL++ +The SQL++ Query Language +Builtin Functions + Queries - AQL +The Asterix Query Language (AQL) +Builtin Functions + API/SDK +HTTP API +CSV Output + Advanced Features +Support of Full-text Queries +Accessing External Data +Support for Data Ingestion +User Defined Functions +Filter-Based LSM Index Acceleration +Support of Similarity Queries + + + + + + + + + + + + + +AsterixDB Support of Similarity Queries + +Table of Contents + + +Motivation +Data Types and Similarity Functions +Similarity Selection Queries +Similarity Join Queries +Using Indexes to Support Similarity Queries + + +Motivation [Back to TOC] +Similarity queries are widely used in applications where users need to find objects that satisfy a similarity predicate, while exact matching is not sufficient. These queries are especially important for social and Web applications, where errors, abbreviations, and inconsistencies are common. As an example, we may want to find all the movies starring Schwarzenegger, while we don’t know the exact spelling of his last name (despite his popularity in both the movie industry and politics :-)). As another example, we want to find all the Facebook users who have similar friends. To meet this type of needs, AsterixDB supports similarity queries using efficient indexes and algorithms. + +Data Types and Similarity Functions [Back to TOC] +AsterixDB supports http://en.wikipedia.org/wiki/Levenshtein_distance";>edit distance (on strings) and http://en.wikipedia.org/wiki/Jaccard_index";>Jaccard (on sets). For instance, in our TinySocial example, the friend-ids of a Facebook user forms a set of friends, and we can define a similarity between the sets of friends of two users. We can also convert a string to a set of grams of a length “n” (called “n-grams”) and define the Jaccard similarity between the two gram sets of the two strings. Formally, the “n-grams” of a string are its substrings of length “n”. For instance, the 3-grams of the string schwarzenegger are sch, chw, hwa, …, ger. +AsterixDB provides tokenization functions to convert strings to sets, and the similarity functions. + +Similarity Selection Queries [Back to TOC] +The following query asks for all the Facebook users whose name is similar to Suzanna Tilson, i.e., their edit distance is at most 2. + + + +use dataverse TinySocial; + +for $user in dataset('FacebookUsers') +let $ed := edit-distance($user.name, "Suzanna Tilson") +where $ed <= 2 +return $user + + +The following query asks for all the Facebook users whose set of friend ids is similar to [1,5,9,10], i.e., their Jaccard similarity is at least 0.6. + + + +use dataverse TinySocial; + +for $user in dataset('FacebookUsers') +let $sim := similarity-jaccard($user.friend-ids, [1,5,9,10]) +where $sim >= 0.6f +return $user + + +AsterixDB allows a user to use a similarity operator ~= to express a condition by defining the similarity function and threshold using “set” statements earlier. For instance, the above query can be equivalently written as: + + + +use dataverse TinySocial; + +set simfunction "jaccard"; +set simthreshold "0.6f"; + +for $user in dataset('FacebookUsers') +where $user.friend-ids ~= [1,5,9,10] +return $user + + +In this query, we first declare Jaccard as the similarity function using simfunction and then specify the threshold 0.6f using simthreshold. + +Similarity Join Queries [Back to TOC] +AsterixDB supports fuzzy joins between two sets. The following query finds, for each Facebook user, all Twitter users with names similar to their name based on the edit distance. + + + +use dataverse TinySocial; + +set simfunction "edit-distance"; +set simthreshold "3"; + +for $fbu in dataset FacebookUse
[19/27] asterixdb-site git commit: Add 0.9.4
http://git-wip-us.apache.org/repos/asf/asterixdb-site/blob/d00eca89/content/docs/0.9.4/data/twm.adm -- diff --git a/content/docs/0.9.4/data/twm.adm b/content/docs/0.9.4/data/twm.adm new file mode 100644 index 000..df90ea6 --- /dev/null +++ b/content/docs/0.9.4/data/twm.adm @@ -0,0 +1,12 @@ +{"tweetid":"1","user":{"screen-name":"NathanGiesen@211","lang":"en","friends_count":39339,"statuses_count":473,"name":"Nathan Giesen","followers_count":49416},"sender-location":point("47.44,80.65"),"send-time":datetime("2008-04-26T10:10:00"),"referred-topics":{{"product-z","customization"}},"message-text":" love product-z its customization is good:)"} +{"tweetid":"2","user":{"screen-name":"ColineGeyer@63","lang":"en","friends_count":121,"statuses_count":362,"name":"Coline Geyer","followers_count":17159},"sender-location":point("32.84,67.14"),"send-time":datetime("2010-05-13T10:10:00"),"referred-topics":{{"ccast","shortcut-menu"}},"message-text":" like ccast its shortcut-menu is awesome:)"} +{"tweetid":"3","user":{"screen-name":"NathanGiesen@211","lang":"en","friends_count":39339,"statuses_count":473,"name":"Nathan Giesen","followers_count":49416},"sender-location":point("29.72,75.8"),"send-time":datetime("2006-11-04T10:10:00"),"referred-topics":{{"product-w","speed"}},"message-text":" like product-w the speed is good:)"} +{"tweetid":"4","user":{"screen-name":"NathanGiesen@211","lang":"en","friends_count":39339,"statuses_count":473,"name":"Nathan Giesen","followers_count":49416},"sender-location":point("39.28,70.48"),"send-time":datetime("2011-12-26T10:10:00"),"referred-topics":{{"product-b","voice-command"}},"message-text":" like product-b the voice-command is mind-blowing:)"} +{"tweetid":"5","user":{"screen-name":"NathanGiesen@211","lang":"en","friends_count":39339,"statuses_count":473,"name":"Nathan Giesen","followers_count":49416},"sender-location":point("40.09,92.69"),"send-time":datetime("2006-08-04T10:10:00"),"referred-topics":{{"product-w","speed"}},"message-text":" can't stand product-w its speed is terrible:("} +{"tweetid":"6","user":{"screen-name":"ColineGeyer@63","lang":"en","friends_count":121,"statuses_count":362,"name":"Coline Geyer","followers_count":17159},"sender-location":point("47.51,83.99"),"send-time":datetime("2010-05-07T10:10:00"),"referred-topics":{{"x-phone","voice-clarity"}},"message-text":" like x-phone the voice-clarity is good:)"} +{"tweetid":"7","user":{"screen-name":"ChangEwing_573","lang":"en","friends_count":182,"statuses_count":394,"name":"Chang Ewing","followers_count":32136},"sender-location":point("36.21,72.6"),"send-time":datetime("2011-08-25T10:10:00"),"referred-topics":{{"product-y","platform"}},"message-text":" like product-y the platform is good"} +{"tweetid":"8","user":{"screen-name":"NathanGiesen@211","lang":"en","friends_count":39339,"statuses_count":473,"name":"Nathan Giesen","followers_count":49416},"sender-location":point("46.05,93.34"),"send-time":datetime("2005-10-14T10:10:00"),"referred-topics":{{"product-z","shortcut-menu"}},"message-text":" like product-z the shortcut-menu is awesome:)"} +{"tweetid":"9","user":{"screen-name":"NathanGiesen@211","lang":"en","friends_count":39339,"statuses_count":473,"name":"Nathan Giesen","followers_count":49416},"sender-location":point("36.86,74.62"),"send-time":datetime("2012-07-21T10:10:00"),"referred-topics":{{"ccast","voicemail-service"}},"message-text":" love ccast its voicemail-service is awesome"} +{"tweetid":"10","user":{"screen-name":"ColineGeyer@63","lang":"en","friends_count":121,"statuses_count":362,"name":"Coline Geyer","followers_count":17159},"sender-location":point("29.15,76.53"),"send-time":datetime("2008-01-26T10:10:00"),"referred-topics":{{"ccast","voice-clarity"}},"message-text":" hate ccast its voice-clarity is OMG:("} +{"tweetid":"11","user":{"screen-name":"NilaMilliron_tw","lang":"en","friends_count":445,"statuses_count":164,"name":"Nila Milliron","followers_count":22649},"sender-location":point("37.59,68.42"),"send-time":datetime("2008-03-09T10:10:00"),"referred-topics":{{"x-phone","platform"}},"message-text":" can't stand x-phone its platform is terrible"} +{"tweetid":"12","user":{"screen-name":"OliJackson_512","lang":"en","friends_count":445,"statuses_count":164,"name":"Oli Jackson","followers_count":22649},"sender-location":point("24.82,94.63"),"send-time":datetime("2010-02-13T10:10:00"),"referred-topics":{{"product-y","voice-command"}},"message-text":" like product-y the voice-command is amazing:)"} http://git-wip-us.apache.org/repos/asf/asterixdb-site/blob/d00eca89/content/docs/0.9.4/data/twu.adm -- diff --git a/content/docs/0.9.4/data/twu.adm b/content/docs/0.9.4/data/twu.adm new file mode 100644 index 000..32a1917 --- /dev/null +++ b/content/docs/0.9.4/data/twu.adm @@ -0,0 +1,4 @@ +{"screen-name":"NathanGiesen@211","lang":"en",
[15/27] asterixdb-site git commit: Add 0.9.4
http://git-wip-us.apache.org/repos/asf/asterixdb-site/blob/d00eca89/content/docs/0.9.4/sqlpp/primer-sqlpp.html -- diff --git a/content/docs/0.9.4/sqlpp/primer-sqlpp.html b/content/docs/0.9.4/sqlpp/primer-sqlpp.html new file mode 100644 index 000..d0f6ca5 --- /dev/null +++ b/content/docs/0.9.4/sqlpp/primer-sqlpp.html @@ -0,0 +1,852 @@ + + +http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en"> + + + + + +AsterixDB – AsterixDB 101: An ADM and SQL++ Primer + + + + + + + + + + + + + + + + +Last Published: 2018-10-02 + Version: 0.9.4 + Documentation Home + + + + + + + Get Started - Installation +Option 1: using NCService +Option 2: using Ansible +Option 3: using Amazon Web Services + AsterixDB Primer +Option 1: using SQL++ +Option 2: using AQL + Data Model +The Asterix Data Model + Queries - SQL++ +The SQL++ Query Language +Builtin Functions + Queries - AQL +The Asterix Query Language (AQL) +Builtin Functions + API/SDK +HTTP API +CSV Output + Advanced Features +Support of Full-text Queries +Accessing External Data +Support for Data Ingestion +User Defined Functions +Filter-Based LSM Index Acceleration +Support of Similarity Queries + + + + + + + + + + + + + +AsterixDB 101: An ADM and SQL++ Primer + +Welcome to AsterixDB! +This document introduces the main features of AsterixDB’s data model (ADM) and its new SQL-like query language (SQL++) by example. The example is a simple scenario involving (synthetic) sample data modeled after data from the social domain. This document describes a set of sample datasets, together with a set of illustrative queries, to introduce you to the “AsterixDB user experience”. The complete set of steps required to create and load a handful of sample datasets, along with runnable queries and the expected results for each query, are included. +This document assumes that you are at least vaguely familiar with AsterixDB and why you might want to use it. Most importantly, it assumes you already have a running instance of AsterixDB and that you know how to query it using AsterixDB’s basic web interface. For more information on these topics, you should go through the steps in Installing Asterix Using Managix before reading this document and make sure that you have a running AsterixDB instance ready to go. To get your feet wet, you should probably start with a simple local installation of AsterixDB on your favorite machine, accepting all of the default settings that Managix offers. Later you can graduate to trying AsterixDB on a cluster, its real intended home (since it targets Big Data). (Note: With the exception of specifying the correct locations where you put the source data for this example, there should no changes needed in the SQL++ statements to run the examples locally and/or to run them on a cluster when you are ready to take that step.) +As you read through this document, you should try each step for yourself on your own AsterixDB instance. You will use the AsterixDB web interface to do this, and for SQL++ you will need to select SQL++ instead of AQL as your language of choice in the Query Language box that sits underneath the UI’s query entry area. Once you have reached the end of this tutorial, you will be fully armed and dangerous, with all the basic AsterixDB knowledge that you’ll need to start down the path of modeling, storing, and querying your own semistructured data. + +ADM: Modeling Semistructed Data in AsterixDB +In this section you will learn all about modeling Big Data using ADM, the data model of the AsterixDB BDMS. + +Dataverses, Datatypes, and Datasets +The top-level organizing concept in the AsterixDB world is the dataverse. A dataverse—short for “data universe”—is a place (similar to a database in a relational DBMS) in which to create and manage the types, datasets, functions, and other artifacts for a given AsterixDB application. When you start using an AsterixDB instance for the first time, it starts out “empty”; it contains no data other than the AsterixDB system catalogs (which live in a special dataverse called the Metadata dataverse). To store your data in AsterixDB, you will first create a dataverse and then you use it for the datatypes and datasets for managing your own data. A datatype tells AsterixDB what you know (or more accurately, what you want it to know) a priori about one of the kinds of data instances that you want AsterixDB to hold for you. A dataset is a collection of data instances of a datatype, and AsterixDB makes sure that the data instances that you put in
[13/27] asterixdb-site git commit: Add 0.9.4
http://git-wip-us.apache.org/repos/asf/asterixdb-site/blob/d00eca89/docs/0.9.4/aql/filters.html -- diff --git a/docs/0.9.4/aql/filters.html b/docs/0.9.4/aql/filters.html new file mode 100644 index 000..8c18a52 --- /dev/null +++ b/docs/0.9.4/aql/filters.html @@ -0,0 +1,142 @@ + + +http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en"> + + + + + +AsterixDB – Filter-Based LSM Index Acceleration + + + + + + + + + + + + + + + + +Last Published: 2018-10-02 + Version: 0.9.4 + Documentation Home + + + + + + + Get Started - Installation +Option 1: using NCService +Option 2: using Ansible +Option 3: using Amazon Web Services + AsterixDB Primer +Option 1: using SQL++ +Option 2: using AQL + Data Model +The Asterix Data Model + Queries - SQL++ +The SQL++ Query Language +Builtin Functions + Queries - AQL +The Asterix Query Language (AQL) +Builtin Functions + API/SDK +HTTP API +CSV Output + Advanced Features +Support of Full-text Queries +Accessing External Data +Support for Data Ingestion +User Defined Functions +Filter-Based LSM Index Acceleration +Support of Similarity Queries + + + + + + + + + + + + + +Filter-Based LSM Index Acceleration + +Table of Contents + + +Motivation +Filters in AsterixDB +Filters and Merge Policies + + +Motivation [Back to TOC] +Traditional relational databases usually employ conventional index structures such as B+ trees due to their low read latency. However, such traditional index structures use in-place writes to perform updates, resulting in costly random writes to disk. Today’s emerging applications often involve insert-intensive workloads for which the cost of random writes prohibits efficient ingestion of data. Consequently, popular NoSQL systems such as Cassandra, HBase, LevelDB, BigTable, etc. have adopted Log-Structured Merge (LSM) Trees as their storage structure. LSM-trees avoids the cost of random writes by batching updates into a component of the index that resides in main memory – an in-memory component. When the space occupancy of the in-memory component exceeds a specified threshold, its entries are flushed to disk forming a new component – a disk component. As disk components accumulate on disk, they are periodically merged together subject to a merge policy that decides when and what to merge. The benefit of the LSM-trees comes at the cost of possibly sacrificing read efficiency, but, it has been shown in previous studies that these inefficiencies can be mostly mitigated. +AsterixDB has also embraced LSM-trees, not just by using them as primary indexes, but also by using the same LSM-ification technique for all of its secondary index structures. In particular, AsterixDB adopted a generic framework for converting a class of indexes (that includes conventional B+ trees, R trees, and inverted indexes) into LSM-based secondary indexes, allowing higher data ingestion rates. In fact, for certain index structures, our results have shown that using an LSM-based version of an index can be made to significantly outperform its conventional counterpart for both ingestion and query speed (an example of such an index being the R-tree for spatial data). +Since an LSM-based index naturally partitions data into multiple disk components, it is possible, when answering certain queries, to exploit partitioning to only access some components and safely filter out the remaining components, thus reducing query times. For instance, referring to our TinySocial example, suppose a user always retrieves tweets from the TweetMessages dataset based on the send-time field (e.g., tweets posted in the last 24 hours). Since there is not a secondary index on the send-time field, the only available option for AsterixDB would be to scan the whole TweetMessages dataset and then apply the predicate as a post-processing step. However, if disk components of the primary index were tagged with the minimum and maximum timestamp values of the objects they contain, we could utilize the tagged information to directly access the primary index and prune comp onents that do not match the query predicate. Thus, we could save substantial cost by avoiding scanning the whole dataset and only access the relevant components. We simply call such tagging information that are associated with components, filters. (Note that even if there were a secondary index on send-time field, using filters could save substantial cost by avoiding accessing the secondary index, followed by probing the primary index for every fetched entry.) Moreover, the same fi
[03/27] asterixdb-site git commit: Add 0.9.4
http://git-wip-us.apache.org/repos/asf/asterixdb-site/blob/d00eca89/docs/0.9.4/ncservice.html -- diff --git a/docs/0.9.4/ncservice.html b/docs/0.9.4/ncservice.html new file mode 100644 index 000..f65561d --- /dev/null +++ b/docs/0.9.4/ncservice.html @@ -0,0 +1,918 @@ + + +http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en"> + + + + + +AsterixDB – Table of Contents + + + + + + + + + + + + + + + + +Last Published: 2018-10-02 + Version: 0.9.4 + Documentation Home + + + + + + + Get Started - Installation +Option 1: using NCService +Option 2: using Ansible +Option 3: using Amazon Web Services + AsterixDB Primer +Option 1: using SQL++ +Option 2: using AQL + Data Model +The Asterix Data Model + Queries - SQL++ +The SQL++ Query Language +Builtin Functions + Queries - AQL +The Asterix Query Language (AQL) +Builtin Functions + API/SDK +HTTP API +CSV Output + Advanced Features +Support of Full-text Queries +Accessing External Data +Support for Data Ingestion +User Defined Functions +Filter-Based LSM Index Acceleration +Support of Similarity Queries + + + + + + + + + + + + + + +Table of Contents + + +Quick Start +Starting a small single-machine cluster using the NCService +Deploying AsterixDB via NCService in a multi-machine setup +Available Configuration Parameters + +Quick Start +The fastest way to get set up with a single-machine sample instance of AsterixDB is to use the included sample helper scripts. To do so, in the extracted asterix-server directory, navigate to opt/local/bin/ + + + +user@localhost:~/ +$cd asterix-server/ +user@localhost:~/asterix-server +$cd opt/local/bin + + +This folder should contain 4 scripts, two pairs of .sh and .bat files respectively. start-sample-cluster.sh will simply start a basic sample cluster using the configuration files located in opt/local/conf/. + + + +user@localhost:~/a/o/l/bin +$./start-sample-cluster.sh +CLUSTERDIR=/home/user/asterix-server/opt/local +INSTALLDIR=/home/user/asterix-server +LOGSDIR=/home/user/asterix-server/samples/opt/logs + +INFO: Starting sample cluster... +INFO: Waiting up to 30 seconds for cluster 127.0.0.1:19002 to be available. +INFO: Cluster started and is ACTIVE. +user@localhost:~/a/o/l/bin +$ + + +Now, there should be a running AsterixDB cluster on the machine. To go to the Web Interface, visit http://localhost:19001";>http://localhost:19001 + + + + + +Fig. 1: The AsterixDB Web Interface + + + +Starting a small single-machine cluster using NCService +The above cluster was started using a script, but below is a description in detail of how precisely this was achieved. The config files here are analagous to the ones within samples/local/conf. +When running a cluster using the NCService there are 3 different kinds of processes involved: + + +NCDriver, also known as the Node Controller or NC for short. This is the process that does the actual work of queries and data management within the AsterixDB cluster +NCService configures and starts the NCDriver process. It is a simple daemon whose only purpose is to wait for the CCDriver process to call upon it to initiate cluster bootup. +CCDriver, which is the Cluster Controller process, also known as the CC. This process manages the distribution of tasks to all NCs, as well as providing the parameters of each NC to the NCService upon cluster startup. It also hosts the Web interface and query compiler and optimizer. + +The cluster startup follows a particular sequence, which is as follows: + + +Each host on which an NC is desired and is mentioned in the configuration, the NCService daemon is started first. It will listen and wait for the CC to contact it. +The one host on which the CC is to be placed is started with an appropriate configuration file. +The CC contacts all NCService daemons and the NCService subsequently starts and NCDriver process with the configration supplied by the CC +Each NCDriver then contacts the CC to register itself as started + +This process is briefly illustrated in the diagram below: + + + + + +Fig. 2: NCService startup sequence + + + +To start a small cluster consisting of 2 NodeControllers (red and blue) and 1 ClusterController (cc) on a single machine only 2 configuration files are required. The first one is +blue.conf: + + + +[ncservice] +port=9091 + + +It is a configuration file for the second NCService. This contains only the port that the NCService of the second NodeControllers listens to as it is non-standard. The first NCService does not need a configuration file, as it only uses default parameters. In
[22/27] asterixdb-site git commit: Add 0.9.4
http://git-wip-us.apache.org/repos/asf/asterixdb-site/blob/d00eca89/content/docs/0.9.4/css/apache-maven-fluido-1.7.min.css -- diff --git a/content/docs/0.9.4/css/apache-maven-fluido-1.7.min.css b/content/docs/0.9.4/css/apache-maven-fluido-1.7.min.css new file mode 100644 index 000..b436baf --- /dev/null +++ b/content/docs/0.9.4/css/apache-maven-fluido-1.7.min.css @@ -0,0 +1,17 @@ +/*! + * Bootstrap v2.3.2 + * + * Copyright 2013 Twitter, Inc + * Licensed under the Apache License v2.0 + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Designed and built with all the love in the world by @mdo and @fat. + */.clearfix{*zoom:1}.clearfix:before,.clearfix:after{display:table;line-height:0;content:""}.clearfix:after{clear:both}.hide-text{font:0/0 a;color:transparent;text-shadow:none;background-color:transparent;border:0}.input-block-level{display:block;width:100%;min-height:30px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}article,aside,details,figcaption,figure,footer,header,hgroup,nav,section{display:block}audio,canvas,video{display:inline-block;*display:inline;*zoom:1}audio:not([controls]){display:none}html{font-size:100%;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%}a:focus{outline:thin dotted #333;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}a:hover,a:active{outline:0}sub,sup{position:relative;font-size:75%;line-height:0;vertical-align:baseline}sup{top:-0.5em}sub{bottom:-0.25em}img{width:auto\9;height:auto;max-width:100%;vertical-align:middle;border:0;-ms-interpolation-mode:bicubic}#map_canvas img,.google-maps img{max-widt h:none}button,input,select,textarea{margin:0;font-size:100%;vertical-align:middle}button,input{*overflow:visible;line-height:normal}button::-moz-focus-inner,input::-moz-focus-inner{padding:0;border:0}button,html input[type="button"],input[type="reset"],input[type="submit"]{cursor:pointer;-webkit-appearance:button}label,select,button,input[type="button"],input[type="reset"],input[type="submit"],input[type="radio"],input[type="checkbox"]{cursor:pointer}input[type="search"]{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;-webkit-appearance:textfield}input[type="search"]::-webkit-search-decoration,input[type="search"]::-webkit-search-cancel-button{-webkit-appearance:none}textarea{overflow:auto;vertical-align:top}@media print{*{color:#000!important;text-shadow:none!important;background:transparent!important;box-shadow:none!important}a,a:visited{text-decoration:underline}a[href]:after{content:" (" attr(href) ")"}abbr[title]:after{content:" (" attr(title) ")"}.ir a:after,a[href^="javascript:"]:after,a[href^="#"]:after{content:""}pre,blockquote{border:1px solid #999;page-break-inside:avoid}thead{display:table-header-group}tr,img{page-break-inside:avoid}img{max-width:100%!important}@page{margin:.5cm}p,h2,h3{orphans:3;widows:3}h2,h3{page-break-after:avoid}}body{margin:0;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:14px;line-height:20px;color:#333;background-color:#fff}a{color:#08c;text-decoration:none}a:hover,a:focus{color:#005580;text-decoration:underline}.img-rounded{-webkit-border-radius:6px;-moz-border-radius:6px;border-radius:6px}.img-polaroid{padding:4px;background-color:#fff;border:1px solid #ccc;border:1px solid rgba(0,0,0,0.2);-webkit-box-shadow:0 1px 3px rgba(0,0,0,0.1);-moz-box-shadow:0 1px 3px rgba(0,0,0,0.1);box-shadow:0 1px 3px rgba(0,0,0,0.1)}.img-circle{-webkit-border-radius:500px;-moz-border-radius:500px;border-radius:500px}.row{margin-left:-20px;*zoom:1}.row:before,.row:after{display:table;line-hei ght:0;content:""}.row:after{clear:both}[class*="span"]{float:left;min-height:1px;margin-left:20px}.container,.navbar-static-top .container,.navbar-fixed-top .container,.navbar-fixed-bottom .container{width:940px}.span12{width:940px}.span11{width:860px}.span10{width:780px}.span9{width:700px}.span8{width:620px}.span7{width:540px}.span6{width:460px}.span5{width:380px}.span4{width:300px}.span3{width:220px}.span2{width:140px}.span1{width:60px}.offset12{margin-left:980px}.offset11{margin-left:900px}.offset10{margin-left:820px}.offset9{margin-left:740px}.offset8{margin-left:660px}.offset7{margin-left:580px}.offset6{margin-left:500px}.offset5{margin-left:420px}.offset4{margin-left:340px}.offset3{margin-left:260px}.offset2{margin-left:180px}.offset1{margin-left:100px}.row-fluid{width:100%;*zoom:1}.row-fluid:before,.row-fluid:after{display:table;line-height:0;content:""}.row-fluid:after{clear:both}.row-fluid [class*="span"]{display:block;float:left;width:100%;min-height:30px;margin-left:2.127 659574468085%;*margin-left:2.074468085106383%;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.row-fluid [class*="span"]:first-child{margin-left:0}.row-fluid .controls-row [class*="span"]+[class*="span"]{margin-left:2.127659574468085%}.row-fluid .span12{widt
[27/27] asterixdb-site git commit: Add 0.9.4
Add 0.9.4 Change-Id:Ied2b685f015e0f35563ebd0510231a5d663494f2 Reviewed-on: https://asterix-gerrit.ics.uci.edu/2984 Reviewed-by: Ian Maxon Project: http://git-wip-us.apache.org/repos/asf/asterixdb-site/repo Commit: http://git-wip-us.apache.org/repos/asf/asterixdb-site/commit/d00eca89 Tree: http://git-wip-us.apache.org/repos/asf/asterixdb-site/tree/d00eca89 Diff: http://git-wip-us.apache.org/repos/asf/asterixdb-site/diff/d00eca89 Branch: refs/heads/asf-site Commit: d00eca8943db0c3998464456a3b3f2f633b1c333 Parents: 9c40a66 Author: Ian Maxon Authored: Fri Oct 5 17:29:55 2018 -0700 Committer: Ian Maxon Committed: Fri Oct 5 17:32:22 2018 -0700 -- _config.yml | 14 +- content/about.html |4 +- content/community.html |4 +- content/dev-setup.html | 14 +- content/docs/0.9.4/api.html | 312 + content/docs/0.9.4/aql/externaldata.html| 577 ++ content/docs/0.9.4/aql/filters.html | 142 + content/docs/0.9.4/aql/fulltext.html| 208 + content/docs/0.9.4/aql/js-sdk.html | 873 +++ content/docs/0.9.4/aql/manual.html | 997 +++ content/docs/0.9.4/aql/primer.html | 863 +++ content/docs/0.9.4/aql/similarity.html | 310 + .../0.9.4/css/apache-maven-fluido-1.7.min.css | 17 + content/docs/0.9.4/css/print.css| 23 + content/docs/0.9.4/css/site.css |1 + content/docs/0.9.4/csv.html | 294 + content/docs/0.9.4/data/chm.adm | 12 + content/docs/0.9.4/data/chu.adm |4 + content/docs/0.9.4/data/fbm.adm | 15 + content/docs/0.9.4/data/fbu.adm | 10 + content/docs/0.9.4/data/gbm.adm | 15 + content/docs/0.9.4/data/gbu.adm | 10 + content/docs/0.9.4/data/lineitem.tbl| 6005 ++ content/docs/0.9.4/data/twm.adm | 12 + content/docs/0.9.4/data/twu.adm |4 + content/docs/0.9.4/feeds/tutorial.html | 450 ++ .../fonts/glyphicons-halflings-regular.eot | Bin 0 -> 35283 bytes .../fonts/glyphicons-halflings-regular.svg | 229 + .../fonts/glyphicons-halflings-regular.ttf | Bin 0 -> 55016 bytes .../fonts/glyphicons-halflings-regular.woff | Bin 0 -> 41793 bytes content/docs/0.9.4/images/AsterixCluster.png| Bin 0 -> 95355 bytes .../0.9.4/images/accessories-text-editor.png| Bin 0 -> 746 bytes content/docs/0.9.4/images/add.gif | Bin 0 -> 397 bytes .../0.9.4/images/apache-maven-project-2.png | Bin 0 -> 43073 bytes .../0.9.4/images/application-certificate.png| Bin 0 -> 923 bytes content/docs/0.9.4/images/asf_logo_wide.png | Bin 0 -> 14470 bytes content/docs/0.9.4/images/asterix_webui.png | Bin 0 -> 55418 bytes .../docs/0.9.4/images/asterixdb_interface.png | Bin 0 -> 60439 bytes content/docs/0.9.4/images/asterixlogo.png | Bin 0 -> 15334 bytes content/docs/0.9.4/images/contact-new.png | Bin 0 -> 736 bytes .../docs/0.9.4/images/document-properties.png | Bin 0 -> 577 bytes content/docs/0.9.4/images/drive-harddisk.png| Bin 0 -> 700 bytes content/docs/0.9.4/images/egg-logo.png | Bin 0 -> 8626 bytes content/docs/0.9.4/images/fix.gif | Bin 0 -> 366 bytes content/docs/0.9.4/images/hyrax_ts.png | Bin 0 -> 4949 bytes content/docs/0.9.4/images/icon_error_sml.gif| Bin 0 -> 633 bytes content/docs/0.9.4/images/icon_help_sml.gif | Bin 0 -> 1072 bytes content/docs/0.9.4/images/icon_info_sml.gif | Bin 0 -> 638 bytes content/docs/0.9.4/images/icon_success_sml.gif | Bin 0 -> 604 bytes content/docs/0.9.4/images/icon_warning_sml.gif | Bin 0 -> 625 bytes content/docs/0.9.4/images/image-x-generic.png | Bin 0 -> 662 bytes .../docs/0.9.4/images/internet-web-browser.png | Bin 0 -> 1017 bytes .../0.9.4/images/logos/build-by-maven-black.png | Bin 0 -> 2294 bytes .../0.9.4/images/logos/build-by-maven-white.png | Bin 0 -> 2260 bytes .../docs/0.9.4/images/logos/maven-feather.png | Bin 0 -> 3330 bytes content/docs/0.9.4/images/ncservice.png | Bin 0 -> 24205 bytes content/docs/0.9.4/images/network-server.png| Bin 0 -> 536 bytes content/docs/0.9.4/images/package-x-generic.png | Bin 0 -> 717 bytes .../docs/0.9.4/images/profiles/pre-release.png | Bin 0 -> 32607 bytes content/docs/0.9.4/images/profiles/retired.png | Bin 0 -> 22003 bytes content/docs/0.9.4/images/profiles/sandbox.png | Bin 0 -> 33010 bytes content/docs/0.9.4/images/remove.gif| Bin 0 -> 607 bytes content/docs/0.9.4/images/rss.png | Bin 0 -> 474 bytes content/docs/0.9.4/images/running_inst.png | Bin 0 -> 90641 bytes content/docs/0.9
[18/27] asterixdb-site git commit: Add 0.9.4
http://git-wip-us.apache.org/repos/asf/asterixdb-site/blob/d00eca89/content/docs/0.9.4/fonts/glyphicons-halflings-regular.svg -- diff --git a/content/docs/0.9.4/fonts/glyphicons-halflings-regular.svg b/content/docs/0.9.4/fonts/glyphicons-halflings-regular.svg new file mode 100644 index 000..4469488 --- /dev/null +++ b/content/docs/0.9.4/fonts/glyphicons-halflings-regular.svg @@ -0,0 +1,229 @@ + +http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"; > +http://www.w3.org/2000/svg";> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file http://git-wip-us.apache.org/repos/asf/asterixdb-site/blob/d00eca89/content/docs/0.9.4/fonts/glyphicons-halflings-regular.ttf -- diff --git a/content/docs/0.9.4/fonts/glyphicons-halflings-regular.ttf b/content/docs/0.9.4/fonts/glyphicons-halflings-regular.ttf new file mode 100644 index 000..2824015 Binary files /dev/null and b/content/docs/0.9.4/fonts/glyphicons-halflings-regular.ttf differ http://git-wip-us.apache.org/repos/asf/asterixdb-site/blob/d00eca89/content/docs/0.9.4/fonts/glyphicons-halflings-regular.woff -- diff --git a/content/docs/0.9.4/fonts/glyphicons-halflings-regular.woff b/content/docs/0.9.4/fonts/glyphicons-halflings-regular.woff new file mode 100644 index 000..f824ac1 Binary files /dev/null and b/content/docs/0.9.4/fonts/glyphicons-halflings-regular.woff differ http://git-wip-us.apache.org/repos/asf/asterixdb-site/blob/d00eca89/content/docs/0.9.4/images/AsterixCluster.png -- diff --git a/content/docs/0.9.4/images/AsterixCluster.png b/content/docs/0.9.4/images/AsterixCluster.png new file mode 100644 index 000..a16ee26 Binary files /dev/null and b/content/docs/0.9.4/images/AsterixCluster.png differ http://git-wip-us.apache.org/repos/asf/asterixdb-site/blob/d00eca89/content/docs/0.9.4/images/accessories-text-editor.png -- diff --git a/content/docs/0.9.4/images/accessories-text-editor.png b/content/docs/0.9.4/images/accessories-text-editor.png new file mode 100644 index 000..abc3366 Binary files /dev/null and b/content/docs/0.9.4/images/accessories-text-editor.png differ http://git-wip-us.apache.org/repos/asf/asterixdb-site/blob/d00eca89/content/docs/0.9.4/images/add.gif -- diff --git a/content/docs/0.9.4/images/add.gif b/content/docs/0.9.4/images/add.gif new file mode 100644 index 000..1cb3dbf Binary files /dev/null and b/content/docs/0.9.4/images/add.gif differ http://git-wip-us.apache.org/repos/asf/asterixdb-site/blob/d00eca89/content/docs/0.9.4/images/apache-maven-project-2.png -- diff --git a/content/docs/0.9.4/images/apache-maven-project-2.png b/content/docs/0.9.4/images/apache-maven-project-2.png new file mode 100644 index 000..a44db6e Binary files /dev/null and b/content/docs/0.9.4/images/apache-maven-project-2.png differ http://git-wip-us.apache.org/repos/asf/asterixdb-site/blob/d00eca89/content/docs/0.9.4/images/application-certificate.png -- diff --git a/content/docs/0.9.4/images/application-certificate.png b/content/docs/0.9.4/images/application-certificate.png new file mode 100644 index 000..cc6aff6 Binary files /dev/null and b/content/docs/0.9.4/images/application-certificate.png differ http://git-wip-us.apache.org/repos/asf/asterixdb-site/blob/d00eca89/content/docs/0.9.4/images/asf_logo_wide.png -- diff --git a/content/docs/0.9.4/images/asf_logo_wide.png b/content/docs/0.9.4/images/asf_logo_wide.png new file mode 100644 index 000..56a4369 Binary files /dev/null and b/content/docs/0.9.4/images/asf_logo_wide.png differ http://git-wip-us.apache.org/repos/asf/asterixdb-site/blob/d00eca89/content/docs/0.9.4/images/asterix_webui.png -- diff --git a/content/docs/0.9.4/images/asterix_webui.png b/content/docs/0.9.4/images/asterix_webui.png new file mode 100644 index 000..27522c4 Binary files /dev/null and b/content/docs/0.9.4/images/asterix_webui.png differ http://git-wip-us.apache.org/repos/asf/asterixdb-sit
[23/27] asterixdb-site git commit: Add 0.9.4
http://git-wip-us.apache.org/repos/asf/asterixdb-site/blob/d00eca89/content/docs/0.9.4/aql/similarity.html -- diff --git a/content/docs/0.9.4/aql/similarity.html b/content/docs/0.9.4/aql/similarity.html new file mode 100644 index 000..ff71fcf --- /dev/null +++ b/content/docs/0.9.4/aql/similarity.html @@ -0,0 +1,310 @@ + + +http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en"> + + + + + +AsterixDB – AsterixDB Support of Similarity Queries + + + + + + + + + + + + + + + + +Last Published: 2018-10-02 + Version: 0.9.4 + Documentation Home + + + + + + + Get Started - Installation +Option 1: using NCService +Option 2: using Ansible +Option 3: using Amazon Web Services + AsterixDB Primer +Option 1: using SQL++ +Option 2: using AQL + Data Model +The Asterix Data Model + Queries - SQL++ +The SQL++ Query Language +Builtin Functions + Queries - AQL +The Asterix Query Language (AQL) +Builtin Functions + API/SDK +HTTP API +CSV Output + Advanced Features +Support of Full-text Queries +Accessing External Data +Support for Data Ingestion +User Defined Functions +Filter-Based LSM Index Acceleration +Support of Similarity Queries + + + + + + + + + + + + + +AsterixDB Support of Similarity Queries + +Table of Contents + + +Motivation +Data Types and Similarity Functions +Similarity Selection Queries +Similarity Join Queries +Using Indexes to Support Similarity Queries + + +Motivation [Back to TOC] +Similarity queries are widely used in applications where users need to find objects that satisfy a similarity predicate, while exact matching is not sufficient. These queries are especially important for social and Web applications, where errors, abbreviations, and inconsistencies are common. As an example, we may want to find all the movies starring Schwarzenegger, while we don’t know the exact spelling of his last name (despite his popularity in both the movie industry and politics :-)). As another example, we want to find all the Facebook users who have similar friends. To meet this type of needs, AsterixDB supports similarity queries using efficient indexes and algorithms. + +Data Types and Similarity Functions [Back to TOC] +AsterixDB supports http://en.wikipedia.org/wiki/Levenshtein_distance";>edit distance (on strings) and http://en.wikipedia.org/wiki/Jaccard_index";>Jaccard (on sets). For instance, in our TinySocial example, the friend-ids of a Facebook user forms a set of friends, and we can define a similarity between the sets of friends of two users. We can also convert a string to a set of grams of a length “n” (called “n-grams”) and define the Jaccard similarity between the two gram sets of the two strings. Formally, the “n-grams” of a string are its substrings of length “n”. For instance, the 3-grams of the string schwarzenegger are sch, chw, hwa, …, ger. +AsterixDB provides tokenization functions to convert strings to sets, and the similarity functions. + +Similarity Selection Queries [Back to TOC] +The following query asks for all the Facebook users whose name is similar to Suzanna Tilson, i.e., their edit distance is at most 2. + + + +use dataverse TinySocial; + +for $user in dataset('FacebookUsers') +let $ed := edit-distance($user.name, "Suzanna Tilson") +where $ed <= 2 +return $user + + +The following query asks for all the Facebook users whose set of friend ids is similar to [1,5,9,10], i.e., their Jaccard similarity is at least 0.6. + + + +use dataverse TinySocial; + +for $user in dataset('FacebookUsers') +let $sim := similarity-jaccard($user.friend-ids, [1,5,9,10]) +where $sim >= 0.6f +return $user + + +AsterixDB allows a user to use a similarity operator ~= to express a condition by defining the similarity function and threshold using “set” statements earlier. For instance, the above query can be equivalently written as: + + + +use dataverse TinySocial; + +set simfunction "jaccard"; +set simthreshold "0.6f"; + +for $user in dataset('FacebookUsers') +where $user.friend-ids ~= [1,5,9,10] +return $user + + +In this query, we first declare Jaccard as the similarity function using simfunction and then specify the threshold 0.6f using simthreshold. + +Similarity Join Queries [Back to TOC] +AsterixDB supports fuzzy joins between two sets. The following query finds, for each Facebook user, all Twitter users with names similar to their name based on the edit distance. + + + +use dataverse TinySocial; + +set simfunction "edit-distance"; +set simthreshold "3"; + +
[20/27] asterixdb-site git commit: Add 0.9.4
http://git-wip-us.apache.org/repos/asf/asterixdb-site/blob/d00eca89/content/docs/0.9.4/data/lineitem.tbl -- diff --git a/content/docs/0.9.4/data/lineitem.tbl b/content/docs/0.9.4/data/lineitem.tbl new file mode 100644 index 000..58d47c6 --- /dev/null +++ b/content/docs/0.9.4/data/lineitem.tbl @@ -0,0 +1,6005 @@ +1|156|4|1|17|17954.55|0.04|0.02|N|O|1996-03-13|1996-02-12|1996-03-22|DELIVER IN PERSON|TRUCK|egular courts above the| +1|68|9|2|36|34850.16|0.09|0.06|N|O|1996-04-12|1996-02-28|1996-04-20|TAKE BACK RETURN|MAIL|ly final dependencies: slyly bold | +1|64|5|3|8|7712.48|0.10|0.02|N|O|1996-01-29|1996-03-05|1996-01-31|TAKE BACK RETURN|REG AIR|riously. regular, express dep| +1|3|6|4|28|25284.00|0.09|0.06|N|O|1996-04-21|1996-03-30|1996-05-16|NONE|AIR|lites. fluffily even de| +1|25|8|5|24|22200.48|0.10|0.04|N|O|1996-03-30|1996-03-14|1996-04-01|NONE|FOB| pending foxes. slyly re| +1|16|3|6|32|29312.32|0.07|0.02|N|O|1996-01-30|1996-02-07|1996-02-03|DELIVER IN PERSON|MAIL|arefully slyly ex| +2|107|2|1|38|38269.80|0.00|0.05|N|O|1997-01-28|1997-01-14|1997-02-02|TAKE BACK RETURN|RAIL|ven requests. deposits breach a| +3|5|2|1|45|40725.00|0.06|0.00|R|F|1994-02-02|1994-01-04|1994-02-23|NONE|AIR|ongside of the furiously brave acco| +3|20|10|2|49|45080.98|0.10|0.00|R|F|1993-11-09|1993-12-20|1993-11-24|TAKE BACK RETURN|RAIL| unusual accounts. eve| +3|129|8|3|27|27786.24|0.06|0.07|A|F|1994-01-16|1993-11-22|1994-01-23|DELIVER IN PERSON|SHIP|nal foxes wake. | +3|30|5|4|2|1860.06|0.01|0.06|A|F|1993-12-04|1994-01-07|1994-01-01|NONE|TRUCK|y. fluffily pending d| +3|184|5|5|28|30357.04|0.04|0.00|R|F|1993-12-14|1994-01-10|1994-01-01|TAKE BACK RETURN|FOB|ages nag slyly pending| +3|63|8|6|26|25039.56|0.10|0.02|A|F|1993-10-29|1993-12-18|1993-11-04|TAKE BACK RETURN|RAIL|ges sleep after the caref| +4|89|10|1|30|29672.40|0.03|0.08|N|O|1996-01-10|1995-12-14|1996-01-18|DELIVER IN PERSON|REG AIR|- quickly regular packages sleep. idly| +5|109|10|1|15|15136.50|0.02|0.04|R|F|1994-10-31|1994-08-31|1994-11-20|NONE|AIR|ts wake furiously | +5|124|5|2|26|26627.12|0.07|0.08|R|F|1994-10-16|1994-09-25|1994-10-19|NONE|FOB|sts use slyly quickly special instruc| +5|38|4|3|50|46901.50|0.08|0.03|A|F|1994-08-08|1994-10-13|1994-08-26|DELIVER IN PERSON|AIR|eodolites. fluffily unusual| +6|140|6|1|37|38485.18|0.08|0.03|A|F|1992-04-27|1992-05-15|1992-05-02|TAKE BACK RETURN|TRUCK|p furiously special foxes| +7|183|4|1|12|12998.16|0.07|0.03|N|O|1996-05-07|1996-03-13|1996-06-03|TAKE BACK RETURN|FOB|ss pinto beans wake against th| +7|146|3|2|9|9415.26|0.08|0.08|N|O|1996-02-01|1996-03-02|1996-02-19|TAKE BACK RETURN|SHIP|es. instructions| +7|95|8|3|46|45774.14|0.10|0.07|N|O|1996-01-15|1996-03-27|1996-02-03|COLLECT COD|MAIL| unusual reques| +7|164|5|4|28|29796.48|0.03|0.04|N|O|1996-03-21|1996-04-08|1996-04-20|NONE|FOB|. slyly special requests haggl| +7|152|4|5|38|39981.70|0.08|0.01|N|O|1996-02-11|1996-02-24|1996-02-18|DELIVER IN PERSON|TRUCK|ns haggle carefully ironic deposits. bl| +7|80|10|6|35|34302.80|0.06|0.03|N|O|1996-01-16|1996-02-23|1996-01-22|TAKE BACK RETURN|FOB|jole. excuses wake carefully alongside of | +7|158|3|7|5|5290.75|0.04|0.02|N|O|1996-02-10|1996-03-26|1996-02-13|NONE|FOB|ithely regula| +32|83|4|1|28|27526.24|0.05|0.08|N|O|1995-10-23|1995-08-27|1995-10-26|TAKE BACK RETURN|TRUCK|sleep quickly. req| +32|198|10|2|32|35142.08|0.02|0.00|N|O|1995-08-14|1995-10-07|1995-08-27|COLLECT COD|AIR|lithely regular deposits. fluffily | +32|45|2|3|2|1890.08|0.09|0.02|N|O|1995-08-07|1995-10-07|1995-08-23|DELIVER IN PERSON|AIR| express accounts wake according to the| +32|3|8|4|4|3612.00|0.09|0.03|N|O|1995-08-04|1995-10-01|1995-09-03|NONE|REG AIR|e slyly final pac| +32|86|7|5|44|43387.52|0.05|0.06|N|O|1995-08-28|1995-08-20|1995-09-14|DELIVER IN PERSON|AIR|symptotes nag according to the ironic depo| +32|12|6|6|6|5472.06|0.04|0.03|N|O|1995-07-21|1995-09-23|1995-07-25|COLLECT COD|RAIL| gifts cajole carefully.| +33|62|7|1|31|29823.86|0.09|0.04|A|F|1993-10-29|1993-12-19|1993-11-08|COLLECT COD|TRUCK|ng to the furiously ironic package| +33|61|8|2|32|30753.92|0.02|0.05|A|F|1993-12-09|1994-01-04|1993-12-28|COLLECT COD|MAIL|gular theodolites| +33|138|4|3|5|5190.65|0.05|0.03|A|F|1993-12-09|1993-12-25|1993-12-23|TAKE BACK RETURN|AIR|. stealthily bold exc| +33|34|5|4|41|38295.23|0.09|0.00|R|F|1993-11-09|1994-01-24|1993-11-11|TAKE BACK RETURN|MAIL|unusual packages doubt caref| +34|89|10|1|13|12858.04|0.00|0.07|N|O|1998-10-23|1998-09-14|1998-11-06|NONE|REG AIR|nic accounts. deposits are alon| +34|90|1|2|22|21781.98|0.08|0.06|N|O|1998-10-09|1998-10-16|1998-10-12|NONE|FOB|thely slyly p| +34|170|7|3|6|6421.02|0.02|0.06|N|O|1998-10-30|1998-09-20|1998-11-05|NONE|FOB|ar foxes sleep | +35|1|4|1|24|21624.00|0.02|0.00|N|O|1996-02-21|1996-01-03|1996-03-18|TAKE BACK RETURN|FOB|, regular tithe| +35|162|1|2|34|36113.44|0.06|0.08|N|O|1996-01-22|1996-01-06|1996-01-27|DELIVER IN PERSON|RAIL
[14/27] asterixdb-site git commit: Add 0.9.4
http://git-wip-us.apache.org/repos/asf/asterixdb-site/blob/d00eca89/content/docs/0.9.4/udf.html -- diff --git a/content/docs/0.9.4/udf.html b/content/docs/0.9.4/udf.html new file mode 100644 index 000..83f7114 --- /dev/null +++ b/content/docs/0.9.4/udf.html @@ -0,0 +1,266 @@ + + +http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en"> + + + + + +AsterixDB – Support for User Defined Functions in AsterixDB + + + + + + + + + + + + + + + + +Last Published: 2018-10-02 + Version: 0.9.4 + Documentation Home + + + + + + + Get Started - Installation +Option 1: using NCService +Option 2: using Ansible +Option 3: using Amazon Web Services + AsterixDB Primer +Option 1: using SQL++ +Option 2: using AQL + Data Model +The Asterix Data Model + Queries - SQL++ +The SQL++ Query Language +Builtin Functions + Queries - AQL +The Asterix Query Language (AQL) +Builtin Functions + API/SDK +HTTP API +CSV Output + Advanced Features +Support of Full-text Queries +Accessing External Data +Support for Data Ingestion +User Defined Functions +Filter-Based LSM Index Acceleration +Support of Similarity Queries + + + + + + + + + + + + + +Support for User Defined Functions in AsterixDB + +Table of Contents + + +Using UDF to preprocess feed-collected data +Writing an External UDF +Creating an AsterixDB Library +Installing an AsterixDB Library + +In this document, we describe the support for implementing, using, and installing user-defined functions (UDF) in AsterixDB. We will explain how we can use UDFs to preprocess, e.g., data collected using feeds (see the feeds tutorial). + +Installing an AsterixDB Library +We assume you have followed the installation instructions to set up a running AsterixDB instance. Let us refer your AsterixDB instance by the name “my_asterix”. + + + + +Step 1: Stop the AsterixDB instance if it is in the ACTIVE state. + + + +$ managix stop -n my_asterix + + + + +Step 2: Install the library using Managix install command. Just to illustrate, we use the help command to look up the syntax + + + +$ managix help -cmd install +Installs a library to an asterix instance. +Options +n Name of Asterix Instance +d Name of the dataverse under which the library will be installed +l Name of the library +p Path to library zip bundle + + + +Above is a sample output and explains the usage and the required parameters. Each library has a name and is installed under a dataverse. Recall that we had created a dataverse by the name - “feeds” prior to creating our datatypes and dataset. We shall name our library - “testlib”. +We assume you have a library zip bundle that needs to be installed. To install the library, use the Managix install command. An example is shown below. + + + +$ managix install -n my_asterix -d feeds -l testlib -p extlibs/asterix-external-data-0.8.7-binary-assembly.zip + + +You should see the following message: + + + +INFO: Installed library testlib + + +We shall next start our AsterixDB instance using the start command as shown below. + + + +$ managix start -n my_asterix + + +You may now use the AsterixDB library in AQL statements and queries. To look at the installed artifacts, you may execute the following query at the AsterixDB web-console. + + + +for $x in dataset Metadata.Function +return $x + +for $x in dataset Metadata.Library +return $x + + +Our library is now installed and is ready to be used. + +Preprocessing Collected Data +In the following we assume that you already created the TwitterFeed and its corresponding data types and dataset following the instruction explained in the feeds tutorial. +A feed definition may optionally include the specification of a user-defined function that is to be applied to each feed object prior to persistence. Examples of pre-processing might include adding attributes, filtering out objects, sampling, sentiment analysis, feature extraction, etc. We can express a UDF, which can be defined in AQL or in a programming language such as Java, to perform such pre-processing. An AQL UDF is a good fit when pre-processing a object requires the result of a query (join or aggregate) over data contained in AsterixDB datasets. More sophisticated processing such as sentiment analysis of text is better handled by providing a Java UDF. A Java UDF has an initialization phase that allows the UDF to access any resources it may need to initialize itself prior to being used in a data flow. It is assumed by the AsterixDB compiler to be stateless and thus usable as an embarrassingly parallel black
[17/27] asterixdb-site git commit: Add 0.9.4
http://git-wip-us.apache.org/repos/asf/asterixdb-site/blob/d00eca89/content/docs/0.9.4/js/apache-maven-fluido-1.7.min.js -- diff --git a/content/docs/0.9.4/js/apache-maven-fluido-1.7.min.js b/content/docs/0.9.4/js/apache-maven-fluido-1.7.min.js new file mode 100644 index 000..1324fb4 --- /dev/null +++ b/content/docs/0.9.4/js/apache-maven-fluido-1.7.min.js @@ -0,0 +1,25 @@ +/*! + * jQuery JavaScript Library v1.11.2 + * http://jquery.com/ + * + * Includes Sizzle.js + * http://sizzlejs.com/ + * + * Copyright 2005, 2014 jQuery Foundation, Inc. and other contributors + * Released under the MIT license + * http://jquery.org/license + * + * Date: 2014-12-17T15:27Z + */ +(function(b,a){if(typeof module==="object"&&typeof module.exports==="object"){module.exports=b.document?a(b,true):function(c){if(!c.document){throw new Error("jQuery requires a window with a document")}return a(c)}}else{a(b)}}(typeof window!=="undefined"?window:this,function(a5,av){var aP=[];var P=aP.slice;var az=aP.concat;var x=aP.push;var bU=aP.indexOf;var ac={};var y=ac.toString;var K=ac.hasOwnProperty;var D={};var ai="1.11.2",bI=function(e,i){return new bI.fn.init(e,i)},E=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,bS=/^-ms-/,aW=/-([\da-z])/gi,O=function(e,i){return i.toUpperCase()};bI.fn=bI.prototype={jquery:ai,constructor:bI,selector:"",length:0,toArray:function(){return P.call(this)},get:function(e){return e!=null?(e<0?this[e+this.length]:this[e]):P.call(this)},pushStack:function(e){var i=bI.merge(this.constructor(),e);i.prevObject=this;i.context=this.context;return i},each:function(i,e){return bI.each(this,i,e)},map:function(e){return this.pushStack(bI.map(this,function(b7,b6){retu rn e.call(b7,b6,b7)}))},slice:function(){return this.pushStack(P.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(b7){var e=this.length,b6=+b7+(b7<0?e:0);return this.pushStack(b6>=0&&b6=0},isEmptyObject:function(i){var e;for(e in i){return false}return true},isPlainObject:function(b7){var i;if(!b7||bI.type(b7)!=="object"||b7.nodeType||bI.isWindow(b7)){return false}try{if(b7.constructor&&!K.call(b7,"constructor")&&!K.call(b7.constructor.prototype,"isPrototypeOf")){return false}}catch(b6){return false}if(D.ownLast){for(i in b7){return K.call(b7,i)}}for(i in b7){}return i===undefined||K.call(b7,i)},type:function(e){if(e==null){return e+""}return typeof e==="object"||typeof e==="function"?ac[y.call(e)]||"object":typeof e},globalEval:function(e){if(e&&bI.trim(e)){(a5.execScript||function(i){a5["eval"].call(a5,i)})(e)}},camelCase:function(e){return e.replace(bS,"ms-").replace(aW,O)},nodeN ame:function(i,e){return i.nodeName&&i.nodeName.toLowerCase()===e.toLowerCase()},each:function(ca,cb,b6){var b9,b7=0,b8=ca.length,e=ad(ca);if(b6){if(e){for(;b70&&(i-1) in b6}var m= +/*! + * Sizzle CSS Selector Engine v2.2.0-pre + * http://sizzlejs.com/ + * + * Copyright 2008, 2014 jQuery Foundation, Inc. and other contributors + * Released under the MIT license + * http://jquery.org/license + * + * Date: 2014-12-16 + */ +(function(de){var cy,dh,cn,cH,cK,ci,cW,dg,dm,cI,cX,cZ,cC,co,c8,c3,df,ce,cF,da="sizzle"+1*new Date(),cJ=de.document,di=0,c4=0,b9=cA(),c9=cA(),cG=cA(),cE=function(i,e){if(i===e){cX=true}return 0},cQ=1<<31,cO=({}).hasOwnProperty,dc=[],dd=dc.pop,cM=dc.push,b7=dc.push,cm=dc.slice,cd=function(dq,dp){var dn=0,e=dq.length;for(;dn+~]|"+cp+")"+cp+" *"),ct=new RegExp("="+cp+"*([^\\]'\"]*?)"+cp+"*\\]","g"),cS=new RegExp(ck),cU=new RegExp("^"+cL+"$"),c2={ID:new RegExp("^#("+b6+")"),CLASS:new RegExp("^\\.("+b6+")"),TAG:new RegExp("^("+b6.replace("w","w*")+")"),ATTR:new RegExp("^"+c6),PSEUDO:new RegExp("^"+ck),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+cp+"*(even|odd|(([+-]|)(\\d*)n|)"+cp+"*(?:([+-]|)"+cp+"*(\\d+)|))"+cp+"*\\)|)","i"),bool:new RegExp("^(?:"+b8+")$","i"),needsContext:new RegExp("^"+cp+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+cp+"*((?:-\\d)?\\d*)"+cp+"*\\)|)(?=[^-]|$)","i")},cc=/^(?:input|select|textarea|button)$/i,cl=/^h\d$/i,cP=/^[^{]+\{\s*\[native \w/,cR=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,c1=/[+~]/,cN=/'|\\/g,cs=new RegExp("([\\da-f]{1,6}"+cp+"?|("+cp+")|.)","ig"),c5=function(e,dp,i){var dn="0x"+dp-65536;return dn!==dn||i?dp:dn<0?String.fromCharCode(dn+65536):String.fromCharCode(dn>>10|55296,dn&1023|56320)},dl=function(){cZ()};try{b7.apply((dc=cm.call(cJ.childNodes)),cJ .childNodes);dc[cJ.childNodes.length].nodeType}catch(cD){b7={apply:dc.length?function(i,e){cM.apply(i,cm.call(e))}:function(dq,dp){var e=dq.length,dn=0;while((dq[e++]=dp[dn++])){}dq.length=e-1}}}function cw(dv,dn,dz,dB){var dA,ds,dt,dx,dy,dr,dq,e,dp,dw;if((dn?dn.ownerDocument||dn:cJ)!==cC){cZ(dn)}dn=dn||cC;dz=dz||[];dx=dn.nodeType;if(typeof dv!=="string"||!dv||dx!==1&&dx!==9&&dx!==11){return dz}if(!dB&&c8){if(dx!==11&&(dA=cR.exec(dv))){if((dt=dA[1])){if(dx===9){ds=dn.getElemen
[09/17] asterixdb-site git commit: fix missing docs and url
http://git-wip-us.apache.org/repos/asf/asterixdb-site/blob/b2f1d3e6/content/docs/0.9.4/sqlpp/primer-sqlpp.html -- diff --git a/content/docs/0.9.4/sqlpp/primer-sqlpp.html b/content/docs/0.9.4/sqlpp/primer-sqlpp.html index d0f6ca5..1a935a1 100644 --- a/content/docs/0.9.4/sqlpp/primer-sqlpp.html +++ b/content/docs/0.9.4/sqlpp/primer-sqlpp.html @@ -1,13 +1,13 @@ http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en"> - + AsterixDB – AsterixDB 101: An ADM and SQL++ Primer @@ -26,7 +26,7 @@ -Last Published: 2018-10-02 +Last Published: 2018-10-12 Version: 0.9.4 Documentation Home @@ -40,26 +40,26 @@ Option 2: using Ansible Option 3: using Amazon Web Services AsterixDB Primer -Option 1: using SQL++ -Option 2: using AQL +Using SQL++ Data Model The Asterix Data Model - Queries - SQL++ + Queries The SQL++ Query Language Builtin Functions - Queries - AQL -The Asterix Query Language (AQL) -Builtin Functions API/SDK HTTP API CSV Output Advanced Features -Support of Full-text Queries Accessing External Data -Support for Data Ingestion +Data Ingestion with Feeds User Defined Functions -Filter-Based LSM Index Acceleration -Support of Similarity Queries +Filter-Based LSM Index Acceleration +Support of Full-text Queries +Support of Similarity Queries + Deprecated +AsterixDB Primer: Using AQL +Queries: The Asterix Query Language (AQL) +Queries: Builtin Functions (AQL) http://git-wip-us.apache.org/repos/asf/asterixdb-site/blob/b2f1d3e6/content/docs/0.9.4/sqlpp/similarity.html -- diff --git a/content/docs/0.9.4/sqlpp/similarity.html b/content/docs/0.9.4/sqlpp/similarity.html new file mode 100644 index 000..6f100ae --- /dev/null +++ b/content/docs/0.9.4/sqlpp/similarity.html @@ -0,0 +1,310 @@ + + +http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en"> + + + + + +AsterixDB – AsterixDB Support of Similarity Queries + + + + + + + + + + + + + + + + +Last Published: 2018-10-12 + Version: 0.9.4 + Documentation Home + + + + + + + Get Started - Installation +Option 1: using NCService +Option 2: using Ansible +Option 3: using Amazon Web Services + AsterixDB Primer +Using SQL++ + Data Model +The Asterix Data Model + Queries +The SQL++ Query Language +Builtin Functions + API/SDK +HTTP API +CSV Output + Advanced Features +Accessing External Data +Data Ingestion with Feeds +User Defined Functions +Filter-Based LSM Index Acceleration +Support of Full-text Queries +Support of Similarity Queries + Deprecated +AsterixDB Primer: Using AQL +Queries: The Asterix Query Language (AQL) +Queries: Builtin Functions (AQL) + + + + + + + + + + + + + +AsterixDB Support of Similarity Queries + +Table of Contents + + +Motivation +Data Types and Similarity Functions +Similarity Selection Queries +Similarity Join Queries +Using Indexes to Support Similarity Queries + + +Motivation [Back to TOC] +Similarity queries are widely used in applications where users need to find objects that satisfy a similarity predicate, while exact matching is not sufficient. These queries are especially important for social and Web applications, where errors, abbreviations, and inconsistencies are common. As an example, we may want to find all the movies starring Schwarzenegger, while we don’t know the exact spelling of his last name (despite his popularity in both the movie industry and politics :-)). As another example, we want to find all the Facebook users who have similar friends. To meet this type of needs, AsterixDB supports similarity queries using efficient indexes and algorithms. + +Data Types and Similarity Functions [Back to TOC] +AsterixDB supports http://en.wikipedia.org/wiki/Levenshtein_distance";>edit distance (on strings) and http://en.wikipedia.org/wiki/Jaccard_index";>Jaccard (on sets). For instance, in our TinySocial example, the friend-ids of a Facebook user forms a set of friends, and we can define a similarity between the sets of friends of two users. We can also convert a string to a set of grams of a length “n” (called “n-grams”) and define the Jaccard similarity between the two gram sets of the two strings. Formally, the “n-grams” of a string are its substrings of length “n”. For instance, the 3-grams of the string schwarzenegger ar
[03/17] asterixdb-site git commit: fix missing docs and url
http://git-wip-us.apache.org/repos/asf/asterixdb-site/blob/b2f1d3e6/docs/0.9.4/sqlpp/filters.html -- diff --git a/docs/0.9.4/sqlpp/filters.html b/docs/0.9.4/sqlpp/filters.html new file mode 100644 index 000..89dd619 --- /dev/null +++ b/docs/0.9.4/sqlpp/filters.html @@ -0,0 +1,142 @@ + + +http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en"> + + + + + +AsterixDB – Filter-Based LSM Index Acceleration + + + + + + + + + + + + + + + + +Last Published: 2018-10-12 + Version: 0.9.4 + Documentation Home + + + + + + + Get Started - Installation +Option 1: using NCService +Option 2: using Ansible +Option 3: using Amazon Web Services + AsterixDB Primer +Using SQL++ + Data Model +The Asterix Data Model + Queries +The SQL++ Query Language +Builtin Functions + API/SDK +HTTP API +CSV Output + Advanced Features +Accessing External Data +Data Ingestion with Feeds +User Defined Functions +Filter-Based LSM Index Acceleration +Support of Full-text Queries +Support of Similarity Queries + Deprecated +AsterixDB Primer: Using AQL +Queries: The Asterix Query Language (AQL) +Queries: Builtin Functions (AQL) + + + + + + + + + + + + + +Filter-Based LSM Index Acceleration + +Table of Contents + + +Motivation +Filters in AsterixDB +Filters and Merge Policies + + +Motivation [Back to TOC] +Traditional relational databases usually employ conventional index structures such as B+ trees due to their low read latency. However, such traditional index structures use in-place writes to perform updates, resulting in costly random writes to disk. Today’s emerging applications often involve insert-intensive workloads for which the cost of random writes prohibits efficient ingestion of data. Consequently, popular NoSQL systems such as Cassandra, HBase, LevelDB, BigTable, etc. have adopted Log-Structured Merge (LSM) Trees as their storage structure. LSM-trees avoids the cost of random writes by batching updates into a component of the index that resides in main memory – an in-memory component. When the space occupancy of the in-memory component exceeds a specified threshold, its entries are flushed to disk forming a new component – a disk component. As disk components accumulate on disk, they are periodically merged together subject to a merge policy that decides when and what to merge. The benefit of the LSM-trees comes at the cost of possibly sacrificing read efficiency, but, it has been shown in previous studies that these inefficiencies can be mostly mitigated. +AsterixDB has also embraced LSM-trees, not just by using them as primary indexes, but also by using the same LSM-ification technique for all of its secondary index structures. In particular, AsterixDB adopted a generic framework for converting a class of indexes (that includes conventional B+ trees, R trees, and inverted indexes) into LSM-based secondary indexes, allowing higher data ingestion rates. In fact, for certain index structures, our results have shown that using an LSM-based version of an index can be made to significantly outperform its conventional counterpart for both ingestion and query speed (an example of such an index being the R-tree for spatial data). +Since an LSM-based index naturally partitions data into multiple disk components, it is possible, when answering certain queries, to exploit partitioning to only access some components and safely filter out the remaining components, thus reducing query times. For instance, referring to our TinySocial example, suppose a user always retrieves tweets from the TweetMessages dataset based on the send-time field (e.g., tweets posted in the last 24 hours). Since there is not a secondary index on the send-time field, the only available option for AsterixDB would be to scan the whole TweetMessages dataset and then apply the predicate as a post-processing step. However, if disk components of the primary index were tagged with the minimum and maximum timestamp values of the objects they contain, we could utilize the tagged information to directly access the primary index and prune comp onents that do not match the query predicate. Thus, we could save substantial cost by avoiding scanning the whole dataset and only access the relevant components. We simply call such tagging information that are associated with components, filters. (Note that even if there were a secondary index on send-time field, using filters could save substantial cost by avoiding accessing the secondary index, followed by probing the primary index for every fetched entry.) Mo
[04/17] asterixdb-site git commit: fix missing docs and url
http://git-wip-us.apache.org/repos/asf/asterixdb-site/blob/b2f1d3e6/docs/0.9.4/sqlpp/builtins.html -- diff --git a/docs/0.9.4/sqlpp/builtins.html b/docs/0.9.4/sqlpp/builtins.html new file mode 100644 index 000..2ace95a --- /dev/null +++ b/docs/0.9.4/sqlpp/builtins.html @@ -0,0 +1,8927 @@ + + +http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en"> + + + + + +AsterixDB – Builtin Functions + + + + + + + + + + + + + + + + +Last Published: 2018-10-12 + Version: 0.9.4 + Documentation Home + + + + + + + Get Started - Installation +Option 1: using NCService +Option 2: using Ansible +Option 3: using Amazon Web Services + AsterixDB Primer +Using SQL++ + Data Model +The Asterix Data Model + Queries +The SQL++ Query Language +Builtin Functions + API/SDK +HTTP API +CSV Output + Advanced Features +Accessing External Data +Data Ingestion with Feeds +User Defined Functions +Filter-Based LSM Index Acceleration +Support of Full-text Queries +Support of Similarity Queries + Deprecated +AsterixDB Primer: Using AQL +Queries: The Asterix Query Language (AQL) +Queries: Builtin Functions (AQL) + + + + + + + + + + + + + +Builtin Functions + +Table of Contents + + +Numeric Functions +String Functions +Binary Functions +Spatial Functions +Similarity Functions +Tokenizing Functions +Temporal Functions +Object Functions +Aggregate Functions (Array Functions) +Comparison Functions +Type Functions +Conditional Functions +Miscellaneous Functions + +The system provides various classes of functions to support operations on numeric, string, spatial, and temporal data. This document explains how to use these functions. + + +Numeric Functions + +abs + + + + +Syntax: + + + +abs(numeric_value) + + + + +Computes the absolute value of the argument. + +Arguments: + + +numeric_value: a tinyint/smallint/integer/bigint/float/double value. + + +Return Value: + + +The absolute value of the argument with the same type as the input argument, +missing if the argument is a missing value, +null if the argument is a null value, +any other non-numeric input value will cause a type error. + + + + +Example: + + + +{ "v1": abs(2013), "v2": abs(-4036), "v3": abs(0), "v4": abs(float("-2013.5")), "v5": abs(double("-2013.593823748327284")) }; + + + + +The expected result is: + + + +{ "v1": 2013, "v2": 4036, "v3": 0, "v4": 2013.5, "v5": 2013.5938237483274 } + + + + +acos + + + + +Syntax: + + + +acos(numeric_value) + + + + +Computes the arc cosine value of the argument. + +Arguments: + + +numeric_value: a tinyint/smallint/integer/bigint/float/double value. + + +Return Value: + + +the double arc cosine in radians for the argument, if the argument is in the range of -1 (inclusive) to 1 (inclusive), +missing if the argument is a missing value, +null if the argument is a null value, +any other non-numeric input value will cause a type error, +“NaN” for other legitimate numeric values. + + + + +Example: + + + +{ "v1": acos(1), "v2": acos(2), "v3": acos(0), "v4": acos(float("0.5")), "v5": acos(double("-0.5")) }; + + + + +The expected result is: + + + +{ "v1": 0.0, "v2": "NaN", "v3": 1.5707963267948966, "v4": 1.0471975511965979, "v5": 2.0943951023931957 } + + + + +asin + + + + +Syntax: + + + +asin(numeric_value) + + + + +Computes the arc sine value of the argument. + +Arguments: + + +numeric_value: a tinyint/smallint/integer/bigint/float/double value. + + +Return Value: + + +the double arc sin in radians for the argument, if the argument is in the range of -1 (inclusive) to 1 (inclusive), +missing if the argument is a missing value, +null if the argument is a null value, +any other non-numeric input value will cause a type error, +“NaN” for other legitimate numeric values. + + + + +Example: + + + +{ "v1": asin(1), "v2": asin(2), "v3": asin(0), "v4": asin(float("0.5")), "v5": asin(double("-0.5")) }; + + + + +The expected result is: + + + +{ "v1": 1.5707963267948966, "v2": "NaN", "v3": 0.0, "v4": 0.5235987755982989, "v5": -0.5235987755982989 } + + + + +atan + + + + +Syntax: + + + +atan(numeric_value) + + + + +Computes the arc tangent value of the argument. + +Arguments: + + +numeric_value: a tinyint/smallint/integer/bigint/float/double value. + + +Return Value: + + +the double arc tangent in radians for the argument, +missing if the argument is a missing value, +null if the argument is a null value, +any other non-numeric input value will cause a type error. + + + + +Example: + + + +{ "v1": atan(1), "v2": atan(2), "v3": atan(0), "v4": atan(float("0.5")), "v5": atan(double("1000")) }; + + + + +The expected resul
[02/17] asterixdb-site git commit: fix missing docs and url
http://git-wip-us.apache.org/repos/asf/asterixdb-site/blob/b2f1d3e6/docs/0.9.4/sqlpp/manual.html -- diff --git a/docs/0.9.4/sqlpp/manual.html b/docs/0.9.4/sqlpp/manual.html new file mode 100644 index 000..8d8b5df --- /dev/null +++ b/docs/0.9.4/sqlpp/manual.html @@ -0,0 +1,4215 @@ + + +http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en"> + + + + + +AsterixDB – The SQL++ Query Language + + + + + + + + + + + + + + + + +Last Published: 2018-10-12 + Version: 0.9.4 + Documentation Home + + + + + + + Get Started - Installation +Option 1: using NCService +Option 2: using Ansible +Option 3: using Amazon Web Services + AsterixDB Primer +Using SQL++ + Data Model +The Asterix Data Model + Queries +The SQL++ Query Language +Builtin Functions + API/SDK +HTTP API +CSV Output + Advanced Features +Accessing External Data +Data Ingestion with Feeds +User Defined Functions +Filter-Based LSM Index Acceleration +Support of Full-text Queries +Support of Similarity Queries + Deprecated +AsterixDB Primer: Using AQL +Queries: The Asterix Query Language (AQL) +Queries: Builtin Functions (AQL) + + + + + + + + + + + + + +The SQL++ Query Language + + +1. Introduction +2. Expressions + + +Operator Expressions + + +Arithmetic Operators +Collection Operators +Comparison Operators +Logical Operators + + +Case Expressions +Quantified Expressions +Path Expressions +Primary Expressions + + +Literals +Variable References +Parenthesized Expressions +Function call Expressions +Constructors + + + + +3. Queries + + +Declarations +SELECT Statements +SELECT Clauses + + +Select Element/Value/Raw +SQL-style Select +Select * +Select Distinct +Unnamed Projections +Abbreviated Field Access Expressions + + +UNNEST Clauses + + +Inner Unnests +Left Outer Unnests +Expressing Joins Using Unnests + + +FROM clauses + + +Binding Expressions +Multiple From Terms +Expressing Joins Using From Terms +Implicit Binding Variables + + +JOIN Clauses + + +Inner Joins +Left Outer Joins + + +GROUP BY Clauses + + +Group Variables +Implicit Group Key Variables +Implicit Group Variables +Aggregation Functions +SQL-92 Aggregation Functions +SQL-92 Compliant GROUP BY Aggregations +Column Aliases + + +WHERE Clauses and HAVING Clauses +ORDER BY Clauses +LIMIT Clauses +WITH Clauses +LET Clauses +UNION ALL +SQL++ Vs. SQL-92 + + +4. Errors + + +Syntax Errors +Identifier Resolution Errors +Type Errors +Resource Errors + + +5. DDL and DML Statements + + +Lifecycle Management Statements + + +Dataverses +Types +Datasets +Indices +Functions +Removal +Load Statement + + +Modification Statements + + +Inserts +Upserts +Deletes + + + + +Appendix 1. Reserved Keywords +Appendix 2. Performance Tuning + + +Parallelism Parameter +Memory Parameters + + +Appendix 3. Variable Bindings and Name Resolution + + +1. Introduction +This document is intended as a reference guide to the full syntax and semantics of the SQL++ Query Language, a SQL-inspired language for working with semistructured data. SQL++ has much in common with SQL, but some differences do exist due to the different data models that the two languages were designed to serve. SQL was designed in the 1970’s for interacting with the flat, schema-ified world of relational databases, while SQL++ is much newer and targets the nested, schema-optional (or even schema-less) world of modern NoSQL systems. +In the context of Apache AsterixDB, SQL++ is intended for working with the Asterix Data Model (ADM),a data model based on a superset of JSON with an enriched and flexible type system. New AsterixDB users are encouraged to read and work through the (much friendlier) guide “AsterixDB 101: An ADM and SQL++ Primer” before attempting to make use of this document. In addition, readers are advised to read through the Asterix Data Model (ADM) reference guide first as well, as an understanding of the data model is a prerequisite to understanding SQL++. +In what follows, we detail the features of the SQL++ language in a grammar-guided manner. We list and briefly explain each of the productions in the SQL++ grammar, offering examples (and results) for clarity. + +2. Expressions + +SQL++ is a highly composable expression language. Each SQL++ expression returns zero or more data model instances. There are three major kinds of expressions in SQL++. At the topmost level, a SQL++ expression can be an OperatorExpression (similar to a mathematical expression), an ConditionalExpression (to choose between alternative values), or a QuantifiedExpression (which yields a boolean value). Each will be
[16/17] asterixdb-site git commit: fix missing docs and url
http://git-wip-us.apache.org/repos/asf/asterixdb-site/blob/b2f1d3e6/content/docs/0.9.4/aql/builtins.html -- diff --git a/content/docs/0.9.4/aql/builtins.html b/content/docs/0.9.4/aql/builtins.html new file mode 100644 index 000..43116f4 --- /dev/null +++ b/content/docs/0.9.4/aql/builtins.html @@ -0,0 +1,8927 @@ + + +http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en"> + + + + + +AsterixDB – Builtin Functions + + + + + + + + + + + + + + + + +Last Published: 2018-10-12 + Version: 0.9.4 + Documentation Home + + + + + + + Get Started - Installation +Option 1: using NCService +Option 2: using Ansible +Option 3: using Amazon Web Services + AsterixDB Primer +Using SQL++ + Data Model +The Asterix Data Model + Queries +The SQL++ Query Language +Builtin Functions + API/SDK +HTTP API +CSV Output + Advanced Features +Accessing External Data +Data Ingestion with Feeds +User Defined Functions +Filter-Based LSM Index Acceleration +Support of Full-text Queries +Support of Similarity Queries + Deprecated +AsterixDB Primer: Using AQL +Queries: The Asterix Query Language (AQL) +Queries: Builtin Functions (AQL) + + + + + + + + + + + + + +Builtin Functions + +Table of Contents + + +Numeric Functions +String Functions +Binary Functions +Spatial Functions +Similarity Functions +Tokenizing Functions +Temporal Functions +Object Functions +Aggregate Functions (Array Functions) +Comparison Functions +Type Functions +Conditional Functions +Miscellaneous Functions + +The system provides various classes of functions to support operations on numeric, string, spatial, and temporal data. This document explains how to use these functions. + + +Numeric Functions + +abs + + + + +Syntax: + + + +abs(numeric_value) + + + + +Computes the absolute value of the argument. + +Arguments: + + +numeric_value: a tinyint/smallint/integer/bigint/float/double value. + + +Return Value: + + +The absolute value of the argument with the same type as the input argument, +missing if the argument is a missing value, +null if the argument is a null value, +any other non-numeric input value will cause a type error. + + + + +Example: + + + +{ "v1": abs(2013), "v2": abs(-4036), "v3": abs(0), "v4": abs(float("-2013.5")), "v5": abs(double("-2013.593823748327284")) }; + + + + +The expected result is: + + + +{ "v1": 2013, "v2": 4036, "v3": 0, "v4": 2013.5, "v5": 2013.5938237483274 } + + + + +acos + + + + +Syntax: + + + +acos(numeric_value) + + + + +Computes the arc cosine value of the argument. + +Arguments: + + +numeric_value: a tinyint/smallint/integer/bigint/float/double value. + + +Return Value: + + +the double arc cosine in radians for the argument, if the argument is in the range of -1 (inclusive) to 1 (inclusive), +missing if the argument is a missing value, +null if the argument is a null value, +any other non-numeric input value will cause a type error, +“NaN” for other legitimate numeric values. + + + + +Example: + + + +{ "v1": acos(1), "v2": acos(2), "v3": acos(0), "v4": acos(float("0.5")), "v5": acos(double("-0.5")) }; + + + + +The expected result is: + + + +{ "v1": 0.0, "v2": "NaN", "v3": 1.5707963267948966, "v4": 1.0471975511965979, "v5": 2.0943951023931957 } + + + + +asin + + + + +Syntax: + + + +asin(numeric_value) + + + + +Computes the arc sine value of the argument. + +Arguments: + + +numeric_value: a tinyint/smallint/integer/bigint/float/double value. + + +Return Value: + + +the double arc sin in radians for the argument, if the argument is in the range of -1 (inclusive) to 1 (inclusive), +missing if the argument is a missing value, +null if the argument is a null value, +any other non-numeric input value will cause a type error, +“NaN” for other legitimate numeric values. + + + + +Example: + + + +{ "v1": asin(1), "v2": asin(2), "v3": asin(0), "v4": asin(float("0.5")), "v5": asin(double("-0.5")) }; + + + + +The expected result is: + + + +{ "v1": 1.5707963267948966, "v2": "NaN", "v3": 0.0, "v4": 0.5235987755982989, "v5": -0.5235987755982989 } + + + + +atan + + + + +Syntax: + + + +atan(numeric_value) + + + + +Computes the arc tangent value of the argument. + +Arguments: + + +numeric_value: a tinyint/smallint/integer/bigint/float/double value. + + +Return Value: + + +the double arc tangent in radians for the argument, +missing if the argument is a missing value, +null if the argument is a null value, +any other non-numeric input value will cause a type error. + + + + +Example: + + + +{ "v1": atan(1), "v2": atan(2), "v3": atan(0), "v4": atan(float("0.5")), "v5": atan(double("1000")) }; +
[11/17] asterixdb-site git commit: fix missing docs and url
http://git-wip-us.apache.org/repos/asf/asterixdb-site/blob/b2f1d3e6/content/docs/0.9.4/sqlpp/filters.html -- diff --git a/content/docs/0.9.4/sqlpp/filters.html b/content/docs/0.9.4/sqlpp/filters.html new file mode 100644 index 000..89dd619 --- /dev/null +++ b/content/docs/0.9.4/sqlpp/filters.html @@ -0,0 +1,142 @@ + + +http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en"> + + + + + +AsterixDB – Filter-Based LSM Index Acceleration + + + + + + + + + + + + + + + + +Last Published: 2018-10-12 + Version: 0.9.4 + Documentation Home + + + + + + + Get Started - Installation +Option 1: using NCService +Option 2: using Ansible +Option 3: using Amazon Web Services + AsterixDB Primer +Using SQL++ + Data Model +The Asterix Data Model + Queries +The SQL++ Query Language +Builtin Functions + API/SDK +HTTP API +CSV Output + Advanced Features +Accessing External Data +Data Ingestion with Feeds +User Defined Functions +Filter-Based LSM Index Acceleration +Support of Full-text Queries +Support of Similarity Queries + Deprecated +AsterixDB Primer: Using AQL +Queries: The Asterix Query Language (AQL) +Queries: Builtin Functions (AQL) + + + + + + + + + + + + + +Filter-Based LSM Index Acceleration + +Table of Contents + + +Motivation +Filters in AsterixDB +Filters and Merge Policies + + +Motivation [Back to TOC] +Traditional relational databases usually employ conventional index structures such as B+ trees due to their low read latency. However, such traditional index structures use in-place writes to perform updates, resulting in costly random writes to disk. Today’s emerging applications often involve insert-intensive workloads for which the cost of random writes prohibits efficient ingestion of data. Consequently, popular NoSQL systems such as Cassandra, HBase, LevelDB, BigTable, etc. have adopted Log-Structured Merge (LSM) Trees as their storage structure. LSM-trees avoids the cost of random writes by batching updates into a component of the index that resides in main memory – an in-memory component. When the space occupancy of the in-memory component exceeds a specified threshold, its entries are flushed to disk forming a new component – a disk component. As disk components accumulate on disk, they are periodically merged together subject to a merge policy that decides when and what to merge. The benefit of the LSM-trees comes at the cost of possibly sacrificing read efficiency, but, it has been shown in previous studies that these inefficiencies can be mostly mitigated. +AsterixDB has also embraced LSM-trees, not just by using them as primary indexes, but also by using the same LSM-ification technique for all of its secondary index structures. In particular, AsterixDB adopted a generic framework for converting a class of indexes (that includes conventional B+ trees, R trees, and inverted indexes) into LSM-based secondary indexes, allowing higher data ingestion rates. In fact, for certain index structures, our results have shown that using an LSM-based version of an index can be made to significantly outperform its conventional counterpart for both ingestion and query speed (an example of such an index being the R-tree for spatial data). +Since an LSM-based index naturally partitions data into multiple disk components, it is possible, when answering certain queries, to exploit partitioning to only access some components and safely filter out the remaining components, thus reducing query times. For instance, referring to our TinySocial example, suppose a user always retrieves tweets from the TweetMessages dataset based on the send-time field (e.g., tweets posted in the last 24 hours). Since there is not a secondary index on the send-time field, the only available option for AsterixDB would be to scan the whole TweetMessages dataset and then apply the predicate as a post-processing step. However, if disk components of the primary index were tagged with the minimum and maximum timestamp values of the objects they contain, we could utilize the tagged information to directly access the primary index and prune comp onents that do not match the query predicate. Thus, we could save substantial cost by avoiding scanning the whole dataset and only access the relevant components. We simply call such tagging information that are associated with components, filters. (Note that even if there were a secondary index on send-time field, using filters could save substantial cost by avoiding accessing the secondary index, followed by probing the primary in
[01/17] asterixdb-site git commit: fix missing docs and url
Repository: asterixdb-site Updated Branches: refs/heads/asf-site d00eca894 -> b2f1d3e6d http://git-wip-us.apache.org/repos/asf/asterixdb-site/blob/b2f1d3e6/docs/0.9.4/sqlpp/primer-sqlpp.html -- diff --git a/docs/0.9.4/sqlpp/primer-sqlpp.html b/docs/0.9.4/sqlpp/primer-sqlpp.html index d0f6ca5..1a935a1 100644 --- a/docs/0.9.4/sqlpp/primer-sqlpp.html +++ b/docs/0.9.4/sqlpp/primer-sqlpp.html @@ -1,13 +1,13 @@ http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en"> - + AsterixDB – AsterixDB 101: An ADM and SQL++ Primer @@ -26,7 +26,7 @@ -Last Published: 2018-10-02 +Last Published: 2018-10-12 Version: 0.9.4 Documentation Home @@ -40,26 +40,26 @@ Option 2: using Ansible Option 3: using Amazon Web Services AsterixDB Primer -Option 1: using SQL++ -Option 2: using AQL +Using SQL++ Data Model The Asterix Data Model - Queries - SQL++ + Queries The SQL++ Query Language Builtin Functions - Queries - AQL -The Asterix Query Language (AQL) -Builtin Functions API/SDK HTTP API CSV Output Advanced Features -Support of Full-text Queries Accessing External Data -Support for Data Ingestion +Data Ingestion with Feeds User Defined Functions -Filter-Based LSM Index Acceleration -Support of Similarity Queries +Filter-Based LSM Index Acceleration +Support of Full-text Queries +Support of Similarity Queries + Deprecated +AsterixDB Primer: Using AQL +Queries: The Asterix Query Language (AQL) +Queries: Builtin Functions (AQL) http://git-wip-us.apache.org/repos/asf/asterixdb-site/blob/b2f1d3e6/docs/0.9.4/sqlpp/similarity.html -- diff --git a/docs/0.9.4/sqlpp/similarity.html b/docs/0.9.4/sqlpp/similarity.html new file mode 100644 index 000..6f100ae --- /dev/null +++ b/docs/0.9.4/sqlpp/similarity.html @@ -0,0 +1,310 @@ + + +http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en"> + + + + + +AsterixDB – AsterixDB Support of Similarity Queries + + + + + + + + + + + + + + + + +Last Published: 2018-10-12 + Version: 0.9.4 + Documentation Home + + + + + + + Get Started - Installation +Option 1: using NCService +Option 2: using Ansible +Option 3: using Amazon Web Services + AsterixDB Primer +Using SQL++ + Data Model +The Asterix Data Model + Queries +The SQL++ Query Language +Builtin Functions + API/SDK +HTTP API +CSV Output + Advanced Features +Accessing External Data +Data Ingestion with Feeds +User Defined Functions +Filter-Based LSM Index Acceleration +Support of Full-text Queries +Support of Similarity Queries + Deprecated +AsterixDB Primer: Using AQL +Queries: The Asterix Query Language (AQL) +Queries: Builtin Functions (AQL) + + + + + + + + + + + + + +AsterixDB Support of Similarity Queries + +Table of Contents + + +Motivation +Data Types and Similarity Functions +Similarity Selection Queries +Similarity Join Queries +Using Indexes to Support Similarity Queries + + +Motivation [Back to TOC] +Similarity queries are widely used in applications where users need to find objects that satisfy a similarity predicate, while exact matching is not sufficient. These queries are especially important for social and Web applications, where errors, abbreviations, and inconsistencies are common. As an example, we may want to find all the movies starring Schwarzenegger, while we don’t know the exact spelling of his last name (despite his popularity in both the movie industry and politics :-)). As another example, we want to find all the Facebook users who have similar friends. To meet this type of needs, AsterixDB supports similarity queries using efficient indexes and algorithms. + +Data Types and Similarity Functions [Back to TOC] +AsterixDB supports http://en.wikipedia.org/wiki/Levenshtein_distance";>edit distance (on strings) and http://en.wikipedia.org/wiki/Jaccard_index";>Jaccard (on sets). For instance, in our TinySocial example, the friend-ids of a Facebook user forms a set of friends, and we can define a similarity between the sets of friends of two users. We can also convert a string to a set of grams of a length “n” (called “n-grams”) and define the Jaccard similarity between the two gram sets of the two strings. Formally, the “n-grams” of a string are its substrings of length “n”. For instance, the 3-grams of the strin
[10/17] asterixdb-site git commit: fix missing docs and url
http://git-wip-us.apache.org/repos/asf/asterixdb-site/blob/b2f1d3e6/content/docs/0.9.4/sqlpp/manual.html -- diff --git a/content/docs/0.9.4/sqlpp/manual.html b/content/docs/0.9.4/sqlpp/manual.html new file mode 100644 index 000..8d8b5df --- /dev/null +++ b/content/docs/0.9.4/sqlpp/manual.html @@ -0,0 +1,4215 @@ + + +http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en"> + + + + + +AsterixDB – The SQL++ Query Language + + + + + + + + + + + + + + + + +Last Published: 2018-10-12 + Version: 0.9.4 + Documentation Home + + + + + + + Get Started - Installation +Option 1: using NCService +Option 2: using Ansible +Option 3: using Amazon Web Services + AsterixDB Primer +Using SQL++ + Data Model +The Asterix Data Model + Queries +The SQL++ Query Language +Builtin Functions + API/SDK +HTTP API +CSV Output + Advanced Features +Accessing External Data +Data Ingestion with Feeds +User Defined Functions +Filter-Based LSM Index Acceleration +Support of Full-text Queries +Support of Similarity Queries + Deprecated +AsterixDB Primer: Using AQL +Queries: The Asterix Query Language (AQL) +Queries: Builtin Functions (AQL) + + + + + + + + + + + + + +The SQL++ Query Language + + +1. Introduction +2. Expressions + + +Operator Expressions + + +Arithmetic Operators +Collection Operators +Comparison Operators +Logical Operators + + +Case Expressions +Quantified Expressions +Path Expressions +Primary Expressions + + +Literals +Variable References +Parenthesized Expressions +Function call Expressions +Constructors + + + + +3. Queries + + +Declarations +SELECT Statements +SELECT Clauses + + +Select Element/Value/Raw +SQL-style Select +Select * +Select Distinct +Unnamed Projections +Abbreviated Field Access Expressions + + +UNNEST Clauses + + +Inner Unnests +Left Outer Unnests +Expressing Joins Using Unnests + + +FROM clauses + + +Binding Expressions +Multiple From Terms +Expressing Joins Using From Terms +Implicit Binding Variables + + +JOIN Clauses + + +Inner Joins +Left Outer Joins + + +GROUP BY Clauses + + +Group Variables +Implicit Group Key Variables +Implicit Group Variables +Aggregation Functions +SQL-92 Aggregation Functions +SQL-92 Compliant GROUP BY Aggregations +Column Aliases + + +WHERE Clauses and HAVING Clauses +ORDER BY Clauses +LIMIT Clauses +WITH Clauses +LET Clauses +UNION ALL +SQL++ Vs. SQL-92 + + +4. Errors + + +Syntax Errors +Identifier Resolution Errors +Type Errors +Resource Errors + + +5. DDL and DML Statements + + +Lifecycle Management Statements + + +Dataverses +Types +Datasets +Indices +Functions +Removal +Load Statement + + +Modification Statements + + +Inserts +Upserts +Deletes + + + + +Appendix 1. Reserved Keywords +Appendix 2. Performance Tuning + + +Parallelism Parameter +Memory Parameters + + +Appendix 3. Variable Bindings and Name Resolution + + +1. Introduction +This document is intended as a reference guide to the full syntax and semantics of the SQL++ Query Language, a SQL-inspired language for working with semistructured data. SQL++ has much in common with SQL, but some differences do exist due to the different data models that the two languages were designed to serve. SQL was designed in the 1970’s for interacting with the flat, schema-ified world of relational databases, while SQL++ is much newer and targets the nested, schema-optional (or even schema-less) world of modern NoSQL systems. +In the context of Apache AsterixDB, SQL++ is intended for working with the Asterix Data Model (ADM),a data model based on a superset of JSON with an enriched and flexible type system. New AsterixDB users are encouraged to read and work through the (much friendlier) guide “AsterixDB 101: An ADM and SQL++ Primer” before attempting to make use of this document. In addition, readers are advised to read through the Asterix Data Model (ADM) reference guide first as well, as an understanding of the data model is a prerequisite to understanding SQL++. +In what follows, we detail the features of the SQL++ language in a grammar-guided manner. We list and briefly explain each of the productions in the SQL++ grammar, offering examples (and results) for clarity. + +2. Expressions + +SQL++ is a highly composable expression language. Each SQL++ expression returns zero or more data model instances. There are three major kinds of expressions in SQL++. At the topmost level, a SQL++ expression can be an OperatorExpression (similar to a mathematical expression), an ConditionalExpression (to choose between alternative values), or a QuantifiedExpression (which yiel
[05/17] asterixdb-site git commit: fix missing docs and url
http://git-wip-us.apache.org/repos/asf/asterixdb-site/blob/b2f1d3e6/docs/0.9.4/feeds/tutorial.html -- diff --git a/docs/0.9.4/feeds/tutorial.html b/docs/0.9.4/feeds/tutorial.html deleted file mode 100644 index d870a25..000 --- a/docs/0.9.4/feeds/tutorial.html +++ /dev/null @@ -1,450 +0,0 @@ - - -http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en"> - - - - - -AsterixDB – Support for Data Ingestion in AsterixDB - - - - - - - - - - - - - - - - -Last Published: 2018-10-02 - Version: 0.9.4 - Documentation Home - - - - - - - Get Started - Installation -Option 1: using NCService -Option 2: using Ansible -Option 3: using Amazon Web Services - AsterixDB Primer -Option 1: using SQL++ -Option 2: using AQL - Data Model -The Asterix Data Model - Queries - SQL++ -The SQL++ Query Language -Builtin Functions - Queries - AQL -The Asterix Query Language (AQL) -Builtin Functions - API/SDK -HTTP API -CSV Output - Advanced Features -Support of Full-text Queries -Accessing External Data -Support for Data Ingestion -User Defined Functions -Filter-Based LSM Index Acceleration -Support of Similarity Queries - - - - - - - - - - - - - -Support for Data Ingestion in AsterixDB - -Table of Contents - - -Introduction -Feed Adapters - - - -Introduction -In this document, we describe the support for data ingestion in AsterixDB. Data feeds are a new mechanism for having continuous data arrive into a BDMS from external sources and incrementally populate a persisted dataset and associated indexes. We add a new BDMS architectural component, called a data feed, that makes a Big Data system the caretaker for functionality that used to live outside, and we show how it improves users’ lives and system performance. - -Feed Adapters -The functionality of establishing a connection with a data source and receiving, parsing and translating its data into ADM objects (for storage inside AsterixDB) is contained in a feed adapter. A feed adapter is an implementation of an interface and its details are specific to a given data source. An adapter may optionally be given parameters to configure its runtime behavior. Depending upon the data transfer protocol/APIs offered by the data source, a feed adapter may operate in a push or a pull mode. Push mode involves just one initial request by the adapter to the data source for setting up the connection. Once a connection is authorized, the data source “pushes” data to the adapter without any subsequent requests by the adapter. In contrast, when operating in a pull mode, the adapter makes a separate request each time to receive data. AsterixDB currently provides built-in adapters for several popular data sources such as Twitter and RSS feeds. AsterixDB addition ally provides a generic socket-based adapter that can be used to ingest data that is directed at a prescribed socket. -In this tutorial, we shall describe building two example data ingestion pipelines that cover the popular scenarios of ingesting data from (a) Twitter (b) RSS (c) Socket Feed source. - - -Ingesting Twitter Stream -We shall use the built-in push-based Twitter adapter. As a pre-requisite, we must define a Tweet using the AsterixDB Data Model (ADM) and the AsterixDB Query Language (AQL). Given below are the type definitions in AQL that create a Tweet datatype which is representative of a real tweet as obtained from Twitter. - - - -create dataverse feeds; -use dataverse feeds; - -create type TwitterUser as closed { -screen_name: string, -lang: string, -friends_count: int32, -statuses_count: int32 -}; - -create type Tweet as open { -id: int64, -user: TwitterUser -} - -create dataset Tweets (Tweet) -primary key id; - - -We also create a dataset that we shall use to persist the tweets in AsterixDB. Next we make use of the create feed AQL statement to define our example data feed. - -Using the “push_twitter” feed adapter -The “push_twitter” adapter requires setting up an application account with Twitter. To retrieve tweets, Twitter requires registering an application. Registration involves providing a name and a brief description for the application. Each application has associated OAuth authentication credentials that include OAuth keys and tokens. Accessing the Twitter API requires providing the following. 1. Consumer Key (API Key) 2. Consumer Secret (API Secret) 3. Access Token 4. Access Token Secret -The “push_twitter” adapter takes as configuration the above mentioned parameters. End user
[13/17] asterixdb-site git commit: fix missing docs and url
http://git-wip-us.apache.org/repos/asf/asterixdb-site/blob/b2f1d3e6/content/docs/0.9.4/feeds/tutorial.html -- diff --git a/content/docs/0.9.4/feeds/tutorial.html b/content/docs/0.9.4/feeds/tutorial.html deleted file mode 100644 index d870a25..000 --- a/content/docs/0.9.4/feeds/tutorial.html +++ /dev/null @@ -1,450 +0,0 @@ - - -http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en"> - - - - - -AsterixDB – Support for Data Ingestion in AsterixDB - - - - - - - - - - - - - - - - -Last Published: 2018-10-02 - Version: 0.9.4 - Documentation Home - - - - - - - Get Started - Installation -Option 1: using NCService -Option 2: using Ansible -Option 3: using Amazon Web Services - AsterixDB Primer -Option 1: using SQL++ -Option 2: using AQL - Data Model -The Asterix Data Model - Queries - SQL++ -The SQL++ Query Language -Builtin Functions - Queries - AQL -The Asterix Query Language (AQL) -Builtin Functions - API/SDK -HTTP API -CSV Output - Advanced Features -Support of Full-text Queries -Accessing External Data -Support for Data Ingestion -User Defined Functions -Filter-Based LSM Index Acceleration -Support of Similarity Queries - - - - - - - - - - - - - -Support for Data Ingestion in AsterixDB - -Table of Contents - - -Introduction -Feed Adapters - - - -Introduction -In this document, we describe the support for data ingestion in AsterixDB. Data feeds are a new mechanism for having continuous data arrive into a BDMS from external sources and incrementally populate a persisted dataset and associated indexes. We add a new BDMS architectural component, called a data feed, that makes a Big Data system the caretaker for functionality that used to live outside, and we show how it improves users’ lives and system performance. - -Feed Adapters -The functionality of establishing a connection with a data source and receiving, parsing and translating its data into ADM objects (for storage inside AsterixDB) is contained in a feed adapter. A feed adapter is an implementation of an interface and its details are specific to a given data source. An adapter may optionally be given parameters to configure its runtime behavior. Depending upon the data transfer protocol/APIs offered by the data source, a feed adapter may operate in a push or a pull mode. Push mode involves just one initial request by the adapter to the data source for setting up the connection. Once a connection is authorized, the data source “pushes” data to the adapter without any subsequent requests by the adapter. In contrast, when operating in a pull mode, the adapter makes a separate request each time to receive data. AsterixDB currently provides built-in adapters for several popular data sources such as Twitter and RSS feeds. AsterixDB addition ally provides a generic socket-based adapter that can be used to ingest data that is directed at a prescribed socket. -In this tutorial, we shall describe building two example data ingestion pipelines that cover the popular scenarios of ingesting data from (a) Twitter (b) RSS (c) Socket Feed source. - - -Ingesting Twitter Stream -We shall use the built-in push-based Twitter adapter. As a pre-requisite, we must define a Tweet using the AsterixDB Data Model (ADM) and the AsterixDB Query Language (AQL). Given below are the type definitions in AQL that create a Tweet datatype which is representative of a real tweet as obtained from Twitter. - - - -create dataverse feeds; -use dataverse feeds; - -create type TwitterUser as closed { -screen_name: string, -lang: string, -friends_count: int32, -statuses_count: int32 -}; - -create type Tweet as open { -id: int64, -user: TwitterUser -} - -create dataset Tweets (Tweet) -primary key id; - - -We also create a dataset that we shall use to persist the tweets in AsterixDB. Next we make use of the create feed AQL statement to define our example data feed. - -Using the “push_twitter” feed adapter -The “push_twitter” adapter requires setting up an application account with Twitter. To retrieve tweets, Twitter requires registering an application. Registration involves providing a name and a brief description for the application. Each application has associated OAuth authentication credentials that include OAuth keys and tokens. Accessing the Twitter API requires providing the following. 1. Consumer Key (API Key) 2. Consumer Secret (API Secret) 3. Access Token 4. Access Token Secret -The “push_twitter” adapter takes as configuration the abov
[06/17] asterixdb-site git commit: fix missing docs and url
http://git-wip-us.apache.org/repos/asf/asterixdb-site/blob/b2f1d3e6/docs/0.9.4/csv.html -- diff --git a/docs/0.9.4/csv.html b/docs/0.9.4/csv.html index 036c1ef..02a9830 100644 --- a/docs/0.9.4/csv.html +++ b/docs/0.9.4/csv.html @@ -1,13 +1,13 @@ http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en"> - + AsterixDB – CSV Support in AsterixDB @@ -26,8 +26,8 @@ -Last Published: 2018-10-02 - Version: 0.9.4 +Last Published: 2018-10-11 + Version: 0.9.5-SNAPSHOT Documentation Home @@ -40,26 +40,26 @@ Option 2: using Ansible Option 3: using Amazon Web Services AsterixDB Primer -Option 1: using SQL++ -Option 2: using AQL +Using SQL++ Data Model The Asterix Data Model - Queries - SQL++ + Queries The SQL++ Query Language Builtin Functions - Queries - AQL -The Asterix Query Language (AQL) -Builtin Functions API/SDK HTTP API CSV Output Advanced Features -Support of Full-text Queries Accessing External Data -Support for Data Ingestion +Data Ingestion with Feeds User Defined Functions -Filter-Based LSM Index Acceleration -Support of Similarity Queries +Filter-Based LSM Index Acceleration +Support of Full-text Queries +Support of Similarity Queries + Deprecated +AsterixDB Primer: Using AQL +Queries: The Asterix Query Language (AQL) +Queries: Builtin Functions (AQL) http://git-wip-us.apache.org/repos/asf/asterixdb-site/blob/b2f1d3e6/docs/0.9.4/datamodel.html -- diff --git a/docs/0.9.4/datamodel.html b/docs/0.9.4/datamodel.html new file mode 100644 index 000..4682c66 --- /dev/null +++ b/docs/0.9.4/datamodel.html @@ -0,0 +1,778 @@ + + +http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en"> + + + + + +AsterixDB – The Asterix Data Model (ADM) + + + + + + + + + + + + + + + + +Last Published: 2018-10-12 + Version: 0.9.4 + Documentation Home + + + + + + + Get Started - Installation +Option 1: using NCService +Option 2: using Ansible +Option 3: using Amazon Web Services + AsterixDB Primer +Using SQL++ + Data Model +The Asterix Data Model + Queries +The SQL++ Query Language +Builtin Functions + API/SDK +HTTP API +CSV Output + Advanced Features +Accessing External Data +Data Ingestion with Feeds +User Defined Functions +Filter-Based LSM Index Acceleration +Support of Full-text Queries +Support of Similarity Queries + Deprecated +AsterixDB Primer: Using AQL +Queries: The Asterix Query Language (AQL) +Queries: Builtin Functions (AQL) + + + + + + + + + + + + + +The Asterix Data Model (ADM) + +Table of Contents + + +Primitive Types + + +Boolean +String +Tinyint / Smallint / Integer (Int) / Bigint +Float +Double (Double Precision) +Binary +Point +Line +Rectangle +Circle +Polygon +Date +Time +Datetime (Timestamp) +Duration/Year_month_duration/Day_time_duration +Interval +UUID + + +[Incomplete Information Types] (#IncompleteInformationTypes) + + +Null +Missing + + +Derived Types + + +Object +Array +Multiset + + + +An instance of Asterix data model (ADM) can be a primitive type (boolean, tinyint, smallint, integer, bigint, string, float, double, date, time, datetime, etc.), a special type (null or missing), or a derived type. +The type names are case-insensitive, e.g., both BIGINT and bigint are acceptable. + + +Primitive Types + +Boolean +boolean data type can have one of the two values: true or false. + + + + +Example: + + + +{ "true": true, "false": false }; + + + + +The expected result is: + + + +{ "true": true, "false": false } + + + + +String +string represents a sequence of characters. The total length of the sequence can be up to 2,147,483,648. + + + + +Example: + + + +{ "v1": string("This is a string."), "v2": string("\"This is a quoted string\"") }; + + + + +The expected result is: + + + +{ "v1": "This is a string.", "v2": "\"This is a quoted string\"" } + + + + + +Tinyint / Smallint / Integer (Int) / Bigint +Integer types using 8, 16, 32, or 64 bits. The ranges of these types are: + + +tinyint: -128 to 127 +smallint: -32768 to 32767 +integer: -2147483648 to 2147483647 +bigint: -9223372036854775808 to 9223372036854775807 + +int is an abbreviated alias for integer. + + + + +Example: + + + +{ "tinyint": tiny("125"), "smallint": smallint("32765"), "integer": 294967295, "bigint": bigint("170")}; +
[08/17] asterixdb-site git commit: fix missing docs and url
http://git-wip-us.apache.org/repos/asf/asterixdb-site/blob/b2f1d3e6/docs/0.9.4/aql/builtins.html -- diff --git a/docs/0.9.4/aql/builtins.html b/docs/0.9.4/aql/builtins.html new file mode 100644 index 000..43116f4 --- /dev/null +++ b/docs/0.9.4/aql/builtins.html @@ -0,0 +1,8927 @@ + + +http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en"> + + + + + +AsterixDB – Builtin Functions + + + + + + + + + + + + + + + + +Last Published: 2018-10-12 + Version: 0.9.4 + Documentation Home + + + + + + + Get Started - Installation +Option 1: using NCService +Option 2: using Ansible +Option 3: using Amazon Web Services + AsterixDB Primer +Using SQL++ + Data Model +The Asterix Data Model + Queries +The SQL++ Query Language +Builtin Functions + API/SDK +HTTP API +CSV Output + Advanced Features +Accessing External Data +Data Ingestion with Feeds +User Defined Functions +Filter-Based LSM Index Acceleration +Support of Full-text Queries +Support of Similarity Queries + Deprecated +AsterixDB Primer: Using AQL +Queries: The Asterix Query Language (AQL) +Queries: Builtin Functions (AQL) + + + + + + + + + + + + + +Builtin Functions + +Table of Contents + + +Numeric Functions +String Functions +Binary Functions +Spatial Functions +Similarity Functions +Tokenizing Functions +Temporal Functions +Object Functions +Aggregate Functions (Array Functions) +Comparison Functions +Type Functions +Conditional Functions +Miscellaneous Functions + +The system provides various classes of functions to support operations on numeric, string, spatial, and temporal data. This document explains how to use these functions. + + +Numeric Functions + +abs + + + + +Syntax: + + + +abs(numeric_value) + + + + +Computes the absolute value of the argument. + +Arguments: + + +numeric_value: a tinyint/smallint/integer/bigint/float/double value. + + +Return Value: + + +The absolute value of the argument with the same type as the input argument, +missing if the argument is a missing value, +null if the argument is a null value, +any other non-numeric input value will cause a type error. + + + + +Example: + + + +{ "v1": abs(2013), "v2": abs(-4036), "v3": abs(0), "v4": abs(float("-2013.5")), "v5": abs(double("-2013.593823748327284")) }; + + + + +The expected result is: + + + +{ "v1": 2013, "v2": 4036, "v3": 0, "v4": 2013.5, "v5": 2013.5938237483274 } + + + + +acos + + + + +Syntax: + + + +acos(numeric_value) + + + + +Computes the arc cosine value of the argument. + +Arguments: + + +numeric_value: a tinyint/smallint/integer/bigint/float/double value. + + +Return Value: + + +the double arc cosine in radians for the argument, if the argument is in the range of -1 (inclusive) to 1 (inclusive), +missing if the argument is a missing value, +null if the argument is a null value, +any other non-numeric input value will cause a type error, +“NaN” for other legitimate numeric values. + + + + +Example: + + + +{ "v1": acos(1), "v2": acos(2), "v3": acos(0), "v4": acos(float("0.5")), "v5": acos(double("-0.5")) }; + + + + +The expected result is: + + + +{ "v1": 0.0, "v2": "NaN", "v3": 1.5707963267948966, "v4": 1.0471975511965979, "v5": 2.0943951023931957 } + + + + +asin + + + + +Syntax: + + + +asin(numeric_value) + + + + +Computes the arc sine value of the argument. + +Arguments: + + +numeric_value: a tinyint/smallint/integer/bigint/float/double value. + + +Return Value: + + +the double arc sin in radians for the argument, if the argument is in the range of -1 (inclusive) to 1 (inclusive), +missing if the argument is a missing value, +null if the argument is a null value, +any other non-numeric input value will cause a type error, +“NaN” for other legitimate numeric values. + + + + +Example: + + + +{ "v1": asin(1), "v2": asin(2), "v3": asin(0), "v4": asin(float("0.5")), "v5": asin(double("-0.5")) }; + + + + +The expected result is: + + + +{ "v1": 1.5707963267948966, "v2": "NaN", "v3": 0.0, "v4": 0.5235987755982989, "v5": -0.5235987755982989 } + + + + +atan + + + + +Syntax: + + + +atan(numeric_value) + + + + +Computes the arc tangent value of the argument. + +Arguments: + + +numeric_value: a tinyint/smallint/integer/bigint/float/double value. + + +Return Value: + + +the double arc tangent in radians for the argument, +missing if the argument is a missing value, +null if the argument is a null value, +any other non-numeric input value will cause a type error. + + + + +Example: + + + +{ "v1": atan(1), "v2": atan(2), "v3": atan(0), "v4": atan(float("0.5")), "v5": atan(double("1000")) }; + + + + +The expected result is: +
[07/17] asterixdb-site git commit: fix missing docs and url
http://git-wip-us.apache.org/repos/asf/asterixdb-site/blob/b2f1d3e6/docs/0.9.4/aql/externaldata.html -- diff --git a/docs/0.9.4/aql/externaldata.html b/docs/0.9.4/aql/externaldata.html index 6c06dc9..5cbe512 100644 --- a/docs/0.9.4/aql/externaldata.html +++ b/docs/0.9.4/aql/externaldata.html @@ -1,13 +1,13 @@ http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en"> - + AsterixDB – Accessing External Data in AsterixDB @@ -26,8 +26,8 @@ -Last Published: 2018-10-02 - Version: 0.9.4 +Last Published: 2018-10-11 + Version: 0.9.5-SNAPSHOT Documentation Home @@ -40,26 +40,26 @@ Option 2: using Ansible Option 3: using Amazon Web Services AsterixDB Primer -Option 1: using SQL++ -Option 2: using AQL +Using SQL++ Data Model The Asterix Data Model - Queries - SQL++ + Queries The SQL++ Query Language Builtin Functions - Queries - AQL -The Asterix Query Language (AQL) -Builtin Functions API/SDK HTTP API CSV Output Advanced Features -Support of Full-text Queries Accessing External Data -Support for Data Ingestion +Data Ingestion with Feeds User Defined Functions -Filter-Based LSM Index Acceleration -Support of Similarity Queries +Filter-Based LSM Index Acceleration +Support of Full-text Queries +Support of Similarity Queries + Deprecated +AsterixDB Primer: Using AQL +Queries: The Asterix Query Language (AQL) +Queries: Builtin Functions (AQL) http://git-wip-us.apache.org/repos/asf/asterixdb-site/blob/b2f1d3e6/docs/0.9.4/aql/filters.html -- diff --git a/docs/0.9.4/aql/filters.html b/docs/0.9.4/aql/filters.html deleted file mode 100644 index 8c18a52..000 --- a/docs/0.9.4/aql/filters.html +++ /dev/null @@ -1,142 +0,0 @@ - - -http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en"> - - - - - -AsterixDB – Filter-Based LSM Index Acceleration - - - - - - - - - - - - - - - - -Last Published: 2018-10-02 - Version: 0.9.4 - Documentation Home - - - - - - - Get Started - Installation -Option 1: using NCService -Option 2: using Ansible -Option 3: using Amazon Web Services - AsterixDB Primer -Option 1: using SQL++ -Option 2: using AQL - Data Model -The Asterix Data Model - Queries - SQL++ -The SQL++ Query Language -Builtin Functions - Queries - AQL -The Asterix Query Language (AQL) -Builtin Functions - API/SDK -HTTP API -CSV Output - Advanced Features -Support of Full-text Queries -Accessing External Data -Support for Data Ingestion -User Defined Functions -Filter-Based LSM Index Acceleration -Support of Similarity Queries - - - - - - - - - - - - - -Filter-Based LSM Index Acceleration - -Table of Contents - - -Motivation -Filters in AsterixDB -Filters and Merge Policies - - -Motivation [Back to TOC] -Traditional relational databases usually employ conventional index structures such as B+ trees due to their low read latency. However, such traditional index structures use in-place writes to perform updates, resulting in costly random writes to disk. Today’s emerging applications often involve insert-intensive workloads for which the cost of random writes prohibits efficient ingestion of data. Consequently, popular NoSQL systems such as Cassandra, HBase, LevelDB, BigTable, etc. have adopted Log-Structured Merge (LSM) Trees as their storage structure. LSM-trees avoids the cost of random writes by batching updates into a component of the index that resides in main memory – an in-memory component. When the space occupancy of the in-memory component exceeds a specified threshold, its entries are flushed to disk forming a new component – a disk component. As disk components accumulate on disk, they are periodically merged together subject to a merge policy that decides when and what to merge. The benefit of the LSM-trees comes at the cost of possibly sacrificing read efficiency, but, it has been shown in previous studies that these inefficiencies can be mostly mitigated. -AsterixDB has also embraced LSM-trees, not just by using them as primary indexes, but also by using the same LSM-ification technique for all of its secondary index structures. In particular, AsterixDB adopted a generic framework for converting a class of indexes (that includes conventional B+ trees, R trees, and inverted indexes) into LSM-based second
[12/17] asterixdb-site git commit: fix missing docs and url
http://git-wip-us.apache.org/repos/asf/asterixdb-site/blob/b2f1d3e6/content/docs/0.9.4/sqlpp/builtins.html -- diff --git a/content/docs/0.9.4/sqlpp/builtins.html b/content/docs/0.9.4/sqlpp/builtins.html new file mode 100644 index 000..2ace95a --- /dev/null +++ b/content/docs/0.9.4/sqlpp/builtins.html @@ -0,0 +1,8927 @@ + + +http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en"> + + + + + +AsterixDB – Builtin Functions + + + + + + + + + + + + + + + + +Last Published: 2018-10-12 + Version: 0.9.4 + Documentation Home + + + + + + + Get Started - Installation +Option 1: using NCService +Option 2: using Ansible +Option 3: using Amazon Web Services + AsterixDB Primer +Using SQL++ + Data Model +The Asterix Data Model + Queries +The SQL++ Query Language +Builtin Functions + API/SDK +HTTP API +CSV Output + Advanced Features +Accessing External Data +Data Ingestion with Feeds +User Defined Functions +Filter-Based LSM Index Acceleration +Support of Full-text Queries +Support of Similarity Queries + Deprecated +AsterixDB Primer: Using AQL +Queries: The Asterix Query Language (AQL) +Queries: Builtin Functions (AQL) + + + + + + + + + + + + + +Builtin Functions + +Table of Contents + + +Numeric Functions +String Functions +Binary Functions +Spatial Functions +Similarity Functions +Tokenizing Functions +Temporal Functions +Object Functions +Aggregate Functions (Array Functions) +Comparison Functions +Type Functions +Conditional Functions +Miscellaneous Functions + +The system provides various classes of functions to support operations on numeric, string, spatial, and temporal data. This document explains how to use these functions. + + +Numeric Functions + +abs + + + + +Syntax: + + + +abs(numeric_value) + + + + +Computes the absolute value of the argument. + +Arguments: + + +numeric_value: a tinyint/smallint/integer/bigint/float/double value. + + +Return Value: + + +The absolute value of the argument with the same type as the input argument, +missing if the argument is a missing value, +null if the argument is a null value, +any other non-numeric input value will cause a type error. + + + + +Example: + + + +{ "v1": abs(2013), "v2": abs(-4036), "v3": abs(0), "v4": abs(float("-2013.5")), "v5": abs(double("-2013.593823748327284")) }; + + + + +The expected result is: + + + +{ "v1": 2013, "v2": 4036, "v3": 0, "v4": 2013.5, "v5": 2013.5938237483274 } + + + + +acos + + + + +Syntax: + + + +acos(numeric_value) + + + + +Computes the arc cosine value of the argument. + +Arguments: + + +numeric_value: a tinyint/smallint/integer/bigint/float/double value. + + +Return Value: + + +the double arc cosine in radians for the argument, if the argument is in the range of -1 (inclusive) to 1 (inclusive), +missing if the argument is a missing value, +null if the argument is a null value, +any other non-numeric input value will cause a type error, +“NaN” for other legitimate numeric values. + + + + +Example: + + + +{ "v1": acos(1), "v2": acos(2), "v3": acos(0), "v4": acos(float("0.5")), "v5": acos(double("-0.5")) }; + + + + +The expected result is: + + + +{ "v1": 0.0, "v2": "NaN", "v3": 1.5707963267948966, "v4": 1.0471975511965979, "v5": 2.0943951023931957 } + + + + +asin + + + + +Syntax: + + + +asin(numeric_value) + + + + +Computes the arc sine value of the argument. + +Arguments: + + +numeric_value: a tinyint/smallint/integer/bigint/float/double value. + + +Return Value: + + +the double arc sin in radians for the argument, if the argument is in the range of -1 (inclusive) to 1 (inclusive), +missing if the argument is a missing value, +null if the argument is a null value, +any other non-numeric input value will cause a type error, +“NaN” for other legitimate numeric values. + + + + +Example: + + + +{ "v1": asin(1), "v2": asin(2), "v3": asin(0), "v4": asin(float("0.5")), "v5": asin(double("-0.5")) }; + + + + +The expected result is: + + + +{ "v1": 1.5707963267948966, "v2": "NaN", "v3": 0.0, "v4": 0.5235987755982989, "v5": -0.5235987755982989 } + + + + +atan + + + + +Syntax: + + + +atan(numeric_value) + + + + +Computes the arc tangent value of the argument. + +Arguments: + + +numeric_value: a tinyint/smallint/integer/bigint/float/double value. + + +Return Value: + + +the double arc tangent in radians for the argument, +missing if the argument is a missing value, +null if the argument is a null value, +any other non-numeric input value will cause a type error. + + + + +Example: + + + +{ "v1": atan(1), "v2": atan(2), "v3": atan(0), "v4": atan(float("0.5")), "v5": atan(double("1000"
[14/17] asterixdb-site git commit: fix missing docs and url
http://git-wip-us.apache.org/repos/asf/asterixdb-site/blob/b2f1d3e6/content/docs/0.9.4/csv.html -- diff --git a/content/docs/0.9.4/csv.html b/content/docs/0.9.4/csv.html index 036c1ef..02a9830 100644 --- a/content/docs/0.9.4/csv.html +++ b/content/docs/0.9.4/csv.html @@ -1,13 +1,13 @@ http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en"> - + AsterixDB – CSV Support in AsterixDB @@ -26,8 +26,8 @@ -Last Published: 2018-10-02 - Version: 0.9.4 +Last Published: 2018-10-11 + Version: 0.9.5-SNAPSHOT Documentation Home @@ -40,26 +40,26 @@ Option 2: using Ansible Option 3: using Amazon Web Services AsterixDB Primer -Option 1: using SQL++ -Option 2: using AQL +Using SQL++ Data Model The Asterix Data Model - Queries - SQL++ + Queries The SQL++ Query Language Builtin Functions - Queries - AQL -The Asterix Query Language (AQL) -Builtin Functions API/SDK HTTP API CSV Output Advanced Features -Support of Full-text Queries Accessing External Data -Support for Data Ingestion +Data Ingestion with Feeds User Defined Functions -Filter-Based LSM Index Acceleration -Support of Similarity Queries +Filter-Based LSM Index Acceleration +Support of Full-text Queries +Support of Similarity Queries + Deprecated +AsterixDB Primer: Using AQL +Queries: The Asterix Query Language (AQL) +Queries: Builtin Functions (AQL) http://git-wip-us.apache.org/repos/asf/asterixdb-site/blob/b2f1d3e6/content/docs/0.9.4/datamodel.html -- diff --git a/content/docs/0.9.4/datamodel.html b/content/docs/0.9.4/datamodel.html new file mode 100644 index 000..4682c66 --- /dev/null +++ b/content/docs/0.9.4/datamodel.html @@ -0,0 +1,778 @@ + + +http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en"> + + + + + +AsterixDB – The Asterix Data Model (ADM) + + + + + + + + + + + + + + + + +Last Published: 2018-10-12 + Version: 0.9.4 + Documentation Home + + + + + + + Get Started - Installation +Option 1: using NCService +Option 2: using Ansible +Option 3: using Amazon Web Services + AsterixDB Primer +Using SQL++ + Data Model +The Asterix Data Model + Queries +The SQL++ Query Language +Builtin Functions + API/SDK +HTTP API +CSV Output + Advanced Features +Accessing External Data +Data Ingestion with Feeds +User Defined Functions +Filter-Based LSM Index Acceleration +Support of Full-text Queries +Support of Similarity Queries + Deprecated +AsterixDB Primer: Using AQL +Queries: The Asterix Query Language (AQL) +Queries: Builtin Functions (AQL) + + + + + + + + + + + + + +The Asterix Data Model (ADM) + +Table of Contents + + +Primitive Types + + +Boolean +String +Tinyint / Smallint / Integer (Int) / Bigint +Float +Double (Double Precision) +Binary +Point +Line +Rectangle +Circle +Polygon +Date +Time +Datetime (Timestamp) +Duration/Year_month_duration/Day_time_duration +Interval +UUID + + +[Incomplete Information Types] (#IncompleteInformationTypes) + + +Null +Missing + + +Derived Types + + +Object +Array +Multiset + + + +An instance of Asterix data model (ADM) can be a primitive type (boolean, tinyint, smallint, integer, bigint, string, float, double, date, time, datetime, etc.), a special type (null or missing), or a derived type. +The type names are case-insensitive, e.g., both BIGINT and bigint are acceptable. + + +Primitive Types + +Boolean +boolean data type can have one of the two values: true or false. + + + + +Example: + + + +{ "true": true, "false": false }; + + + + +The expected result is: + + + +{ "true": true, "false": false } + + + + +String +string represents a sequence of characters. The total length of the sequence can be up to 2,147,483,648. + + + + +Example: + + + +{ "v1": string("This is a string."), "v2": string("\"This is a quoted string\"") }; + + + + +The expected result is: + + + +{ "v1": "This is a string.", "v2": "\"This is a quoted string\"" } + + + + + +Tinyint / Smallint / Integer (Int) / Bigint +Integer types using 8, 16, 32, or 64 bits. The ranges of these types are: + + +tinyint: -128 to 127 +smallint: -32768 to 32767 +integer: -2147483648 to 2147483647 +bigint: -9223372036854775808 to 9223372036854775807 + +int is an abbreviated alias for integer. + + + + +Example: + + + +{ "tinyint": tiny("125"), "smallint": smallint("327
[17/17] asterixdb-site git commit: fix missing docs and url
fix missing docs and url Change-Id:Ied2b685f015e0f35563ebd0510231a5d663494f5 Reviewed-on: https://asterix-gerrit.ics.uci.edu/2995 Reviewed-by: Ian Maxon Project: http://git-wip-us.apache.org/repos/asf/asterixdb-site/repo Commit: http://git-wip-us.apache.org/repos/asf/asterixdb-site/commit/b2f1d3e6 Tree: http://git-wip-us.apache.org/repos/asf/asterixdb-site/tree/b2f1d3e6 Diff: http://git-wip-us.apache.org/repos/asf/asterixdb-site/diff/b2f1d3e6 Branch: refs/heads/asf-site Commit: b2f1d3e6d45bdf38351b1dedd8781f5c4fb3e9ce Parents: d00eca8 Author: Ian Maxon Authored: Fri Oct 12 14:42:34 2018 -0700 Committer: Ian Maxon Committed: Fri Oct 12 14:47:02 2018 -0700 -- _config.yml|2 +- content/dev-setup.html |2 +- content/docs/0.9.4/ansible.html| 293 + content/docs/0.9.4/api.html| 28 +- content/docs/0.9.4/aql/builtins.html | 8927 +++ content/docs/0.9.4/aql/externaldata.html | 28 +- content/docs/0.9.4/aql/filters.html| 142 - content/docs/0.9.4/aql/fulltext.html | 208 - content/docs/0.9.4/aql/js-sdk.html | 28 +- content/docs/0.9.4/aql/manual.html | 28 +- content/docs/0.9.4/aql/primer.html | 28 +- content/docs/0.9.4/aql/similarity.html | 310 - content/docs/0.9.4/aws.html| 384 + content/docs/0.9.4/csv.html| 28 +- content/docs/0.9.4/datamodel.html | 778 ++ content/docs/0.9.4/feeds.html | 468 ++ content/docs/0.9.4/feeds/tutorial.html | 450 -- content/docs/0.9.4/index.html | 28 +- content/docs/0.9.4/ncservice.html | 29 +- content/docs/0.9.4/overview.html | 28 +- content/docs/0.9.4/sqlpp/builtins.html | 8927 +++ content/docs/0.9.4/sqlpp/filters.html | 142 + content/docs/0.9.4/sqlpp/fulltext.html | 208 + content/docs/0.9.4/sqlpp/manual.html | 4215 +++ content/docs/0.9.4/sqlpp/primer-sqlpp.html | 26 +- content/docs/0.9.4/sqlpp/similarity.html | 310 + content/docs/0.9.4/udf.html| 213 +- docs/0.9.4/ansible.html| 293 + docs/0.9.4/api.html| 28 +- docs/0.9.4/aql/builtins.html | 8927 +++ docs/0.9.4/aql/externaldata.html | 28 +- docs/0.9.4/aql/filters.html| 142 - docs/0.9.4/aql/fulltext.html | 208 - docs/0.9.4/aql/js-sdk.html | 28 +- docs/0.9.4/aql/manual.html | 28 +- docs/0.9.4/aql/primer.html | 28 +- docs/0.9.4/aql/similarity.html | 310 - docs/0.9.4/aws.html| 384 + docs/0.9.4/csv.html| 28 +- docs/0.9.4/datamodel.html | 778 ++ docs/0.9.4/feeds.html | 468 ++ docs/0.9.4/feeds/tutorial.html | 450 -- docs/0.9.4/index.html | 28 +- docs/0.9.4/ncservice.html | 29 +- docs/0.9.4/overview.html | 28 +- docs/0.9.4/sqlpp/builtins.html | 8927 +++ docs/0.9.4/sqlpp/filters.html | 142 + docs/0.9.4/sqlpp/fulltext.html | 208 + docs/0.9.4/sqlpp/manual.html | 4215 +++ docs/0.9.4/sqlpp/primer-sqlpp.html | 26 +- docs/0.9.4/sqlpp/similarity.html | 310 + docs/0.9.4/udf.html| 213 +- 52 files changed, 49812 insertions(+), 2700 deletions(-) -- http://git-wip-us.apache.org/repos/asf/asterixdb-site/blob/b2f1d3e6/_config.yml -- diff --git a/_config.yml b/_config.yml index e1eb181..0d595ce 100644 --- a/_config.yml +++ b/_config.yml @@ -4,7 +4,7 @@ name: "Apache AsterixDB" STABLE_VERSION: 0.9.4 UNSTABLE_VERSION: 0.9.5-SNAPSHOT STABLE_NCSERVICE_URL: "http://www.apache.org/dyn/closer.lua/asterixdb/asterixdb-0.9.4/apache-asterixdb-0.9.4.zip"; -UNSTABLE_NCSERVICE_URL: "https://asterix-jenkins.ics.uci.edu/job/asterix-integration-tests/lastSuccessfulBuild/org.apache.asterix$asterix-server/artifact/org.apache.asterix/asterix-server/0.9.5-SNAPSHOT/apache-asterixdb-0.9.5-SNAPSHOT.zip"; +UNSTABLE_NCSERVICE_URL: "https://asterix-jenkins.ics.uci.edu/job/asterix-integration-tests/lastSuccessfulBuild/org.apache.asterix$asterix-server/artifact/org.apache.asterix/asterix-server/0.9.5-SNAPSHOT/asterix-server-0.9.5-SNAPSHOT-binary-assembly.zip"; DOCS_BASE_URL: "docs" UNSTABLE_DOCS_BASE_URL: "https://ci.apache.org/projects/asterixdb/"; http://git-wip-us.apache.org/repos/asf/asterixdb-site/blob/b2f1d3e6/content/dev-setup.html -- dif
[15/17] asterixdb-site git commit: fix missing docs and url
http://git-wip-us.apache.org/repos/asf/asterixdb-site/blob/b2f1d3e6/content/docs/0.9.4/aql/externaldata.html -- diff --git a/content/docs/0.9.4/aql/externaldata.html b/content/docs/0.9.4/aql/externaldata.html index 6c06dc9..5cbe512 100644 --- a/content/docs/0.9.4/aql/externaldata.html +++ b/content/docs/0.9.4/aql/externaldata.html @@ -1,13 +1,13 @@ http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en"> - + AsterixDB – Accessing External Data in AsterixDB @@ -26,8 +26,8 @@ -Last Published: 2018-10-02 - Version: 0.9.4 +Last Published: 2018-10-11 + Version: 0.9.5-SNAPSHOT Documentation Home @@ -40,26 +40,26 @@ Option 2: using Ansible Option 3: using Amazon Web Services AsterixDB Primer -Option 1: using SQL++ -Option 2: using AQL +Using SQL++ Data Model The Asterix Data Model - Queries - SQL++ + Queries The SQL++ Query Language Builtin Functions - Queries - AQL -The Asterix Query Language (AQL) -Builtin Functions API/SDK HTTP API CSV Output Advanced Features -Support of Full-text Queries Accessing External Data -Support for Data Ingestion +Data Ingestion with Feeds User Defined Functions -Filter-Based LSM Index Acceleration -Support of Similarity Queries +Filter-Based LSM Index Acceleration +Support of Full-text Queries +Support of Similarity Queries + Deprecated +AsterixDB Primer: Using AQL +Queries: The Asterix Query Language (AQL) +Queries: Builtin Functions (AQL) http://git-wip-us.apache.org/repos/asf/asterixdb-site/blob/b2f1d3e6/content/docs/0.9.4/aql/filters.html -- diff --git a/content/docs/0.9.4/aql/filters.html b/content/docs/0.9.4/aql/filters.html deleted file mode 100644 index 8c18a52..000 --- a/content/docs/0.9.4/aql/filters.html +++ /dev/null @@ -1,142 +0,0 @@ - - -http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en"> - - - - - -AsterixDB – Filter-Based LSM Index Acceleration - - - - - - - - - - - - - - - - -Last Published: 2018-10-02 - Version: 0.9.4 - Documentation Home - - - - - - - Get Started - Installation -Option 1: using NCService -Option 2: using Ansible -Option 3: using Amazon Web Services - AsterixDB Primer -Option 1: using SQL++ -Option 2: using AQL - Data Model -The Asterix Data Model - Queries - SQL++ -The SQL++ Query Language -Builtin Functions - Queries - AQL -The Asterix Query Language (AQL) -Builtin Functions - API/SDK -HTTP API -CSV Output - Advanced Features -Support of Full-text Queries -Accessing External Data -Support for Data Ingestion -User Defined Functions -Filter-Based LSM Index Acceleration -Support of Similarity Queries - - - - - - - - - - - - - -Filter-Based LSM Index Acceleration - -Table of Contents - - -Motivation -Filters in AsterixDB -Filters and Merge Policies - - -Motivation [Back to TOC] -Traditional relational databases usually employ conventional index structures such as B+ trees due to their low read latency. However, such traditional index structures use in-place writes to perform updates, resulting in costly random writes to disk. Today’s emerging applications often involve insert-intensive workloads for which the cost of random writes prohibits efficient ingestion of data. Consequently, popular NoSQL systems such as Cassandra, HBase, LevelDB, BigTable, etc. have adopted Log-Structured Merge (LSM) Trees as their storage structure. LSM-trees avoids the cost of random writes by batching updates into a component of the index that resides in main memory – an in-memory component. When the space occupancy of the in-memory component exceeds a specified threshold, its entries are flushed to disk forming a new component – a disk component. As disk components accumulate on disk, they are periodically merged together subject to a merge policy that decides when and what to merge. The benefit of the LSM-trees comes at the cost of possibly sacrificing read efficiency, but, it has been shown in previous studies that these inefficiencies can be mostly mitigated. -AsterixDB has also embraced LSM-trees, not just by using them as primary indexes, but also by using the same LSM-ification technique for all of its secondary index structures. In particular, AsterixDB adopted a generic framework for converting a class of indexes (that includes co
[01/51] [partial] asterixdb git commit: [ASTERIXDB-2454] Remove non-unique AQL tests
Repository: asterixdb Updated Branches: refs/heads/master 80225e2c2 -> f372c96dd http://git-wip-us.apache.org/repos/asf/asterixdb/blob/f372c96d/asterixdb/asterix-app/src/test/resources/runtimets/queries/inverted-index-join/word-jaccard/word-jaccard.4.query.aql -- diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries/inverted-index-join/word-jaccard/word-jaccard.4.query.aql b/asterixdb/asterix-app/src/test/resources/runtimets/queries/inverted-index-join/word-jaccard/word-jaccard.4.query.aql deleted file mode 100644 index ddf10b1..000 --- a/asterixdb/asterix-app/src/test/resources/runtimets/queries/inverted-index-join/word-jaccard/word-jaccard.4.query.aql +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -/* - * Description: Fuzzy joins two datasets, DBLP and CSX, based on the similarity-jaccard function of their titles' word tokens. - * DBLP has a keyword index on title, and we expect the join to be transformed into an indexed nested-loop join. - * Success: Yes - */ - -use dataverse test; - -for $a in dataset('DBLP') -for $b in dataset('CSX') -where similarity-jaccard(word-tokens($a.title), word-tokens($b.title)) >= 0.5f - and $a.id < $b.id -order by $a.id, $b.id -return { "arec": $a, "brec": $b }
[29/51] [partial] asterixdb git commit: [ASTERIXDB-2454] Remove non-unique AQL tests
http://git-wip-us.apache.org/repos/asf/asterixdb/blob/f372c96d/asterixdb/asterix-app/src/test/resources/runtimets/queries/cross-dataverse/cross-dv07/cross-dv07.2.update.aql -- diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries/cross-dataverse/cross-dv07/cross-dv07.2.update.aql b/asterixdb/asterix-app/src/test/resources/runtimets/queries/cross-dataverse/cross-dv07/cross-dv07.2.update.aql deleted file mode 100644 index 1045f9c..000 --- a/asterixdb/asterix-app/src/test/resources/runtimets/queries/cross-dataverse/cross-dv07/cross-dv07.2.update.aql +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -/* - * Description : Use fully qualified name to create dataset, type and index - * : and to access dataset - * Expected Result : Success - * Date: 29th August 2012 - */ - -use dataverse test; - -load dataset test.employee -using localfs -(("path"="asterix_nc1://data/names.adm"),("format"="delimited-text"),("delimiter"="|")); - - http://git-wip-us.apache.org/repos/asf/asterixdb/blob/f372c96d/asterixdb/asterix-app/src/test/resources/runtimets/queries/cross-dataverse/cross-dv07/cross-dv07.3.query.aql -- diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries/cross-dataverse/cross-dv07/cross-dv07.3.query.aql b/asterixdb/asterix-app/src/test/resources/runtimets/queries/cross-dataverse/cross-dv07/cross-dv07.3.query.aql deleted file mode 100644 index 5fc8cce..000 --- a/asterixdb/asterix-app/src/test/resources/runtimets/queries/cross-dataverse/cross-dv07/cross-dv07.3.query.aql +++ /dev/null @@ -1,29 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -/* - * Description : Use fully qualified name to create dataset, type and index - * : and to access dataset - * Expected Result : Success - * Date: 29th August 2012 - */ - -for $l in dataset('test.employee') -where $l.fname="Julio" and $l.lname="Isa" -return $l - http://git-wip-us.apache.org/repos/asf/asterixdb/blob/f372c96d/asterixdb/asterix-app/src/test/resources/runtimets/queries/cross-dataverse/cross-dv08/cross-dv08.1.ddl.aql -- diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries/cross-dataverse/cross-dv08/cross-dv08.1.ddl.aql b/asterixdb/asterix-app/src/test/resources/runtimets/queries/cross-dataverse/cross-dv08/cross-dv08.1.ddl.aql deleted file mode 100644 index a630a31..000 --- a/asterixdb/asterix-app/src/test/resources/runtimets/queries/cross-dataverse/cross-dv08/cross-dv08.1.ddl.aql +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITI
[18/51] [partial] asterixdb git commit: [ASTERIXDB-2454] Remove non-unique AQL tests
http://git-wip-us.apache.org/repos/asf/asterixdb/blob/f372c96d/asterixdb/asterix-app/src/test/resources/runtimets/queries/external-indexing/leftouterjoin/leftouterjoin.1.ddl.aql -- diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries/external-indexing/leftouterjoin/leftouterjoin.1.ddl.aql b/asterixdb/asterix-app/src/test/resources/runtimets/queries/external-indexing/leftouterjoin/leftouterjoin.1.ddl.aql deleted file mode 100644 index 0c40cba..000 --- a/asterixdb/asterix-app/src/test/resources/runtimets/queries/external-indexing/leftouterjoin/leftouterjoin.1.ddl.aql +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -/* - * Description : Test that left-outer-join may use two available indexes, one for primary index in prob subtree and another for secondary btree index in index subtree. - * Issue: 730, 741 - * Expected Res : Success - * Date : 8th May 2014 - */ - -drop dataverse test if exists; -create dataverse test; -use dataverse test; - -create type TwitterUserType as closed { -screen-name: string, -lang: string, -friends-count: int64, -statuses-count: int64, -name: string, -followers-count: int64 -} - -create type TweetMessageType as closed { -tweetid: int64, -user: TwitterUserType, -sender-location: point, -send-time: datetime, -referred-topics: {{ string }}, -message-text: string, -countA: int64, -countB: int64 -} - -create external dataset TweetMessages(TweetMessageType) using hdfs(("hdfs"="hdfs://127.0.0.1:31888"),("path"="/asterix/tw_for_indexleftouterjoin.adm"),("input-format"="text-input-format"),("format"="adm")); - -create index IdIx on TweetMessages(tweetid) type btree; -create index msgCountAIx on TweetMessages(countA) type btree; -create index msgCountBIx on TweetMessages(countB) type btree; http://git-wip-us.apache.org/repos/asf/asterixdb/blob/f372c96d/asterixdb/asterix-app/src/test/resources/runtimets/queries/external-indexing/leftouterjoin/leftouterjoin.2.update.aql -- diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries/external-indexing/leftouterjoin/leftouterjoin.2.update.aql b/asterixdb/asterix-app/src/test/resources/runtimets/queries/external-indexing/leftouterjoin/leftouterjoin.2.update.aql deleted file mode 100644 index 2af88b4..000 --- a/asterixdb/asterix-app/src/test/resources/runtimets/queries/external-indexing/leftouterjoin/leftouterjoin.2.update.aql +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -/* - * Description : Test that left-outer-join may use two available indexes, one for primary index in prob subtree and another for secondary btree index in index subtree. - * Issue: 730, 741 - * Expected Res : Success - * Date : 8th May 2014 - */ http://git-wip-us.apache.org/repos/asf/asterixdb/blob/f372c96d/asterixdb/asterix-app/src/test/resources/runtimets/queries/external-indexing/leftouterjoin/leftouterjoin.3.query.aql -- diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries/external-indexing/leftouterjoin/leftouterjoin.3.query.aql b/asterixdb/asterix-app/src/test/resources/runtimets/queries/extern
[07/51] [partial] asterixdb git commit: [ASTERIXDB-2454] Remove non-unique AQL tests
http://git-wip-us.apache.org/repos/asf/asterixdb/blob/f372c96d/asterixdb/asterix-app/src/test/resources/runtimets/queries/index-leftouterjoin/probe-pidx-with-join-rtree-sidx2/probe-pidx-with-join-rtree-sidx2.3.query.aql -- diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries/index-leftouterjoin/probe-pidx-with-join-rtree-sidx2/probe-pidx-with-join-rtree-sidx2.3.query.aql b/asterixdb/asterix-app/src/test/resources/runtimets/queries/index-leftouterjoin/probe-pidx-with-join-rtree-sidx2/probe-pidx-with-join-rtree-sidx2.3.query.aql deleted file mode 100644 index e504545..000 --- a/asterixdb/asterix-app/src/test/resources/runtimets/queries/index-leftouterjoin/probe-pidx-with-join-rtree-sidx2/probe-pidx-with-join-rtree-sidx2.3.query.aql +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -/* - * Description : Test that left-outer-join may use two available indexes, one for primary index in prob subtree and another for secondary rtree index in index subtree. - * Issue: 730, 741 - * Expected Res : Success - * Date : 8th May 2014 - */ - -use dataverse test; - -for $t1 in dataset('TweetMessages') -let $n := create-circle($t1.sender-location, 0.5) -where $t1.tweetid < int64("10") -order by $t1.tweetid -return { -"tweetid1": $t1.tweetid, -"loc1":$t1.sender-location, -"nearby-message": for $t2 in dataset('TweetMessages') - where spatial-intersect($t2.sender-location, $n) and $t1.tweetid != $t2.tweetid - order by $t2.tweetid - return {"tweetid2":$t2.tweetid, "loc2":$t2.sender-location} -}; http://git-wip-us.apache.org/repos/asf/asterixdb/blob/f372c96d/asterixdb/asterix-app/src/test/resources/runtimets/queries/index-leftouterjoin/probe-sidx-btree-idxonly-join-btree-pidx1/probe-sidx-btree-idxonly-join-btree-pidx1.1.ddl.aql -- diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries/index-leftouterjoin/probe-sidx-btree-idxonly-join-btree-pidx1/probe-sidx-btree-idxonly-join-btree-pidx1.1.ddl.aql b/asterixdb/asterix-app/src/test/resources/runtimets/queries/index-leftouterjoin/probe-sidx-btree-idxonly-join-btree-pidx1/probe-sidx-btree-idxonly-join-btree-pidx1.1.ddl.aql deleted file mode 100644 index 8c56ff4..000 --- a/asterixdb/asterix-app/src/test/resources/runtimets/queries/index-leftouterjoin/probe-sidx-btree-idxonly-join-btree-pidx1/probe-sidx-btree-idxonly-join-btree-pidx1.1.ddl.aql +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -/* - * Description : Test that left-outer-join may use an available primary index in the index subtree. - *In the probe side, this is an index-only plan since a secondary index-search - *will fetch all fields that are required for the plan. - * Expected Res : Success - */ - -drop dataverse test if exists; -create dataverse test; -use dataverse test; - -create type TwitterUserType as closed { -screen-name: string, -lang: string, -friends-count: int64, -statuses-count: int64, -name: string, -followers-count: int64 -} - -create type TweetMessageType as closed { -tweetid: int64, -user: TwitterUserType, -sender-location: point, -send-ti
[36/51] [partial] asterixdb git commit: [ASTERIXDB-2454] Remove non-unique AQL tests
http://git-wip-us.apache.org/repos/asf/asterixdb/blob/f372c96d/asterixdb/asterix-app/src/test/resources/runtimets/queries/aggregate/max_empty_01/max_empty_01.2.update.aql -- diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries/aggregate/max_empty_01/max_empty_01.2.update.aql b/asterixdb/asterix-app/src/test/resources/runtimets/queries/aggregate/max_empty_01/max_empty_01.2.update.aql deleted file mode 100644 index c3982a8..000 --- a/asterixdb/asterix-app/src/test/resources/runtimets/queries/aggregate/max_empty_01/max_empty_01.2.update.aql +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -/* - * Description: Tests that max aggregation correctly returns null for an empty stream, - * without an aggregate combiner. - * Success: Yes - */ - -// no inserts/deletes here http://git-wip-us.apache.org/repos/asf/asterixdb/blob/f372c96d/asterixdb/asterix-app/src/test/resources/runtimets/queries/aggregate/max_empty_01/max_empty_01.3.query.aql -- diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries/aggregate/max_empty_01/max_empty_01.3.query.aql b/asterixdb/asterix-app/src/test/resources/runtimets/queries/aggregate/max_empty_01/max_empty_01.3.query.aql deleted file mode 100644 index bccf56c..000 --- a/asterixdb/asterix-app/src/test/resources/runtimets/queries/aggregate/max_empty_01/max_empty_01.3.query.aql +++ /dev/null @@ -1,31 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -/* - * Description: Tests that max aggregation correctly returns null for an empty stream, - * without an aggregate combiner. - * Success: Yes - */ - -use dataverse test; - -max( - for $x in [1, 2, 3] - where $x > 10 - return $x -) http://git-wip-us.apache.org/repos/asf/asterixdb/blob/f372c96d/asterixdb/asterix-app/src/test/resources/runtimets/queries/aggregate/max_empty_02/max_empty_02.1.ddl.aql -- diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries/aggregate/max_empty_02/max_empty_02.1.ddl.aql b/asterixdb/asterix-app/src/test/resources/runtimets/queries/aggregate/max_empty_02/max_empty_02.1.ddl.aql deleted file mode 100644 index 98b0cc0..000 --- a/asterixdb/asterix-app/src/test/resources/runtimets/queries/aggregate/max_empty_02/max_empty_02.1.ddl.aql +++ /dev/null @@ -1,36 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -/* - * Description: Tests that max aggregation c
[31/51] [partial] asterixdb git commit: [ASTERIXDB-2454] Remove non-unique AQL tests
http://git-wip-us.apache.org/repos/asf/asterixdb/blob/f372c96d/asterixdb/asterix-app/src/test/resources/runtimets/queries/comparison/lte_01/lte_01.3.query.aql -- diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries/comparison/lte_01/lte_01.3.query.aql b/asterixdb/asterix-app/src/test/resources/runtimets/queries/comparison/lte_01/lte_01.3.query.aql deleted file mode 100644 index 6537244..000 --- a/asterixdb/asterix-app/src/test/resources/runtimets/queries/comparison/lte_01/lte_01.3.query.aql +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -use dataverse test; - -for $x in [1, 3, 2] -where $x <= 2 -return $x http://git-wip-us.apache.org/repos/asf/asterixdb/blob/f372c96d/asterixdb/asterix-app/src/test/resources/runtimets/queries/comparison/neq_01/neq_01.1.ddl.aql -- diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries/comparison/neq_01/neq_01.1.ddl.aql b/asterixdb/asterix-app/src/test/resources/runtimets/queries/comparison/neq_01/neq_01.1.ddl.aql deleted file mode 100644 index cbc5458..000 --- a/asterixdb/asterix-app/src/test/resources/runtimets/queries/comparison/neq_01/neq_01.1.ddl.aql +++ /dev/null @@ -1,20 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -drop dataverse test if exists; -create dataverse test; http://git-wip-us.apache.org/repos/asf/asterixdb/blob/f372c96d/asterixdb/asterix-app/src/test/resources/runtimets/queries/comparison/neq_01/neq_01.2.update.aql -- diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries/comparison/neq_01/neq_01.2.update.aql b/asterixdb/asterix-app/src/test/resources/runtimets/queries/comparison/neq_01/neq_01.2.update.aql deleted file mode 100644 index 042f3ce..000 --- a/asterixdb/asterix-app/src/test/resources/runtimets/queries/comparison/neq_01/neq_01.2.update.aql +++ /dev/null @@ -1,18 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ http://git-wip-us.apache.org/repos/asf/asterixdb/blob/f372c96d/asterixdb/asterix-app/src/test/resources/runtimets/queries/comparison/neq_01/neq_01.3.query.aql -- diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries/comparison/neq_01/neq_01.3.query.aql b/asterixdb/asterix-app/src/test/resources/runtimets/queries/comparison/neq_01/neq_01.3.query.aql deleted file mode 100644 index 1cc7943..000 --- a/asterixdb/asterix-app/src/test/reso
[02/51] [partial] asterixdb git commit: [ASTERIXDB-2454] Remove non-unique AQL tests
http://git-wip-us.apache.org/repos/asf/asterixdb/blob/f372c96d/asterixdb/asterix-app/src/test/resources/runtimets/queries/inverted-index-join/ngram-edit-distance/ngram-edit-distance.4.query.aql -- diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries/inverted-index-join/ngram-edit-distance/ngram-edit-distance.4.query.aql b/asterixdb/asterix-app/src/test/resources/runtimets/queries/inverted-index-join/ngram-edit-distance/ngram-edit-distance.4.query.aql deleted file mode 100644 index 490ab4b..000 --- a/asterixdb/asterix-app/src/test/resources/runtimets/queries/inverted-index-join/ngram-edit-distance/ngram-edit-distance.4.query.aql +++ /dev/null @@ -1,31 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -/* - * Description: Fuzzy joins two datasets, Customers and Customers2, based on the edit-distance function of their names. - * Customers has a 3-gram index on name, and we expect the join to be transformed into an indexed nested-loop join. - * Success: Yes - */ - -use dataverse test; - -for $a in dataset('Customers') -for $b in dataset('Customers2') -where edit-distance($a.name, $b.name) <= 4 and $a.cid < $b.cid -order by $a.cid, $b.cid -return { "arec": $a, "brec": $b } http://git-wip-us.apache.org/repos/asf/asterixdb/blob/f372c96d/asterixdb/asterix-app/src/test/resources/runtimets/queries/inverted-index-join/ngram-jaccard-inline/ngram-jaccard-inline.1.ddl.aql -- diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries/inverted-index-join/ngram-jaccard-inline/ngram-jaccard-inline.1.ddl.aql b/asterixdb/asterix-app/src/test/resources/runtimets/queries/inverted-index-join/ngram-jaccard-inline/ngram-jaccard-inline.1.ddl.aql deleted file mode 100644 index c165da7..000 --- a/asterixdb/asterix-app/src/test/resources/runtimets/queries/inverted-index-join/ngram-jaccard-inline/ngram-jaccard-inline.1.ddl.aql +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -/* - * Description: Fuzzy joins two datasets, DBLP and CSX, based on the similarity-jaccard function of their titles' 3-gram tokens. - * DBLP has a 3-gram index on title, and we expect the join to be transformed into an indexed nested-loop join. - * We test the inlining of variables that enable the select to be pushed into the join for subsequent optimization with an index. - * Success: Yes - */ - -drop dataverse test if exists; -create dataverse test; -use dataverse test; - -create type DBLPType as closed { - id: int64, - dblpid: string, - title: string, - authors: string, - misc: string -} - -create type CSXType as closed { - id: int64, - csxid: string, - title: string, - authors: string, - misc: string -} - -create dataset DBLP(DBLPType) primary key id; - -create dataset CSX(CSXType) primary key id; - http://git-wip-us.apache.org/repos/asf/asterixdb/blob/f372c96d/asterixdb/asterix-app/src/test/resources/runtimets/queries/inverted-index-join/ngram-jaccard-inline/ngram-jaccard-inline.2.update.aql -- diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries/inverted-index-join/ngram-jaccard-inline/ngram-jaccard-inline.2.update.aql b/asterixdb/asteri
[05/51] [partial] asterixdb git commit: [ASTERIXDB-2454] Remove non-unique AQL tests
http://git-wip-us.apache.org/repos/asf/asterixdb/blob/f372c96d/asterixdb/asterix-app/src/test/resources/runtimets/queries/index-selection/inverted-index-olist-jaccard/inverted-index-olist-jaccard.3.ddl.aql -- diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries/index-selection/inverted-index-olist-jaccard/inverted-index-olist-jaccard.3.ddl.aql b/asterixdb/asterix-app/src/test/resources/runtimets/queries/index-selection/inverted-index-olist-jaccard/inverted-index-olist-jaccard.3.ddl.aql deleted file mode 100644 index 92c0ff4..000 --- a/asterixdb/asterix-app/src/test/resources/runtimets/queries/index-selection/inverted-index-olist-jaccard/inverted-index-olist-jaccard.3.ddl.aql +++ /dev/null @@ -1,22 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -use dataverse test; - -create index interests_index on Customers(interests) type keyword; http://git-wip-us.apache.org/repos/asf/asterixdb/blob/f372c96d/asterixdb/asterix-app/src/test/resources/runtimets/queries/index-selection/inverted-index-olist-jaccard/inverted-index-olist-jaccard.4.query.aql -- diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries/index-selection/inverted-index-olist-jaccard/inverted-index-olist-jaccard.4.query.aql b/asterixdb/asterix-app/src/test/resources/runtimets/queries/index-selection/inverted-index-olist-jaccard/inverted-index-olist-jaccard.4.query.aql deleted file mode 100644 index cf4dc92..000 --- a/asterixdb/asterix-app/src/test/resources/runtimets/queries/index-selection/inverted-index-olist-jaccard/inverted-index-olist-jaccard.4.query.aql +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -use dataverse test; - -for $c in dataset('Customers') -let $jacc := similarity-jaccard-check($c.interests, ["databases", "computers", "wine"], 0.7f) -where $jacc[0] -return $c http://git-wip-us.apache.org/repos/asf/asterixdb/blob/f372c96d/asterixdb/asterix-app/src/test/resources/runtimets/queries/index-selection/inverted-index-ulist-jaccard/inverted-index-ulist-jaccard.1.ddl.aql -- diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries/index-selection/inverted-index-ulist-jaccard/inverted-index-ulist-jaccard.1.ddl.aql b/asterixdb/asterix-app/src/test/resources/runtimets/queries/index-selection/inverted-index-ulist-jaccard/inverted-index-ulist-jaccard.1.ddl.aql deleted file mode 100644 index 794065c..000 --- a/asterixdb/asterix-app/src/test/resources/runtimets/queries/index-selection/inverted-index-ulist-jaccard/inverted-index-ulist-jaccard.1.ddl.aql +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS,
[44/51] [partial] asterixdb git commit: [ASTERIXDB-2454] Remove non-unique AQL tests
http://git-wip-us.apache.org/repos/asf/asterixdb/blob/f372c96d/asterixdb/asterix-app/src/test/resources/optimizerts/queries/open-index-enforced/inverted-index-basic/ngram-fuzzyeq-edit-distance.aql -- diff --git a/asterixdb/asterix-app/src/test/resources/optimizerts/queries/open-index-enforced/inverted-index-basic/ngram-fuzzyeq-edit-distance.aql b/asterixdb/asterix-app/src/test/resources/optimizerts/queries/open-index-enforced/inverted-index-basic/ngram-fuzzyeq-edit-distance.aql deleted file mode 100644 index 5392b22..000 --- a/asterixdb/asterix-app/src/test/resources/optimizerts/queries/open-index-enforced/inverted-index-basic/ngram-fuzzyeq-edit-distance.aql +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -/* - * Description: Tests whether an ngram_index is applied to optimize a selection query with ~= using edit-distance on strings. - * The index should be applied. - * Success: Yes - */ - -drop dataverse test if exists; -create dataverse test; -use dataverse test; - -create type DBLPType as open { - id: int32, - dblpid: string, - title: string, - misc: string -} - -create dataset DBLP(DBLPType) primary key id; - -create index ngram_index on DBLP(authors:string?) type ngram(3) enforced; - -write output to asterix_nc1:"rttest/inverted-index-basic_ngram-fuzzyeq-edit-distance.adm"; - -set simfunction 'edit-distance'; -set simthreshold '1'; - -for $o in dataset('DBLP') -where $o.authors ~= "Amihay Motro" -return $o http://git-wip-us.apache.org/repos/asf/asterixdb/blob/f372c96d/asterixdb/asterix-app/src/test/resources/optimizerts/queries/open-index-enforced/inverted-index-basic/ngram-fuzzyeq-jaccard.aql -- diff --git a/asterixdb/asterix-app/src/test/resources/optimizerts/queries/open-index-enforced/inverted-index-basic/ngram-fuzzyeq-jaccard.aql b/asterixdb/asterix-app/src/test/resources/optimizerts/queries/open-index-enforced/inverted-index-basic/ngram-fuzzyeq-jaccard.aql deleted file mode 100644 index fe8b831..000 --- a/asterixdb/asterix-app/src/test/resources/optimizerts/queries/open-index-enforced/inverted-index-basic/ngram-fuzzyeq-jaccard.aql +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -/* - * Description: Tests whether an ngram_index is applied to optimize a selection query with ~= using Jaccard on 3-gram tokens. - * The index should be applied. - * Success: Yes - */ - -drop dataverse test if exists; -create dataverse test; -use dataverse test; -set import-private-functions 'true'; - -create type DBLPType as open { - id: int32, - dblpid: string, - authors: string, - misc: string -} - -create dataset DBLP(DBLPType) primary key id; - -create index ngram_index on DBLP(title:string?) type ngram(3) enforced; - -write output to asterix_nc1:"rttest/inverted-index-basic_ngram-fuzzyeq-jaccard.adm"; - -set simfunction 'jaccard'; -set simthreshold '0.8f'; - -for $o in dataset('DBLP') -where gram-tokens($o.title, 3, false) ~= gram-tokens("Transactions for Cooperative Environments", 3, false) -return $o http://git-wip-us.apache.org/repos/asf/asterixdb/blob/f372c96d/asterixdb/asterix-app/src/test/resources/optimizerts/queries/open-index-enforced/inverted-index-basic/ngram-jaccard-check.aql ---
[23/51] [partial] asterixdb git commit: [ASTERIXDB-2454] Remove non-unique AQL tests
http://git-wip-us.apache.org/repos/asf/asterixdb/blob/f372c96d/asterixdb/asterix-app/src/test/resources/runtimets/queries/dml/load-with-rtree-index-open/load-with-rtree-index-open.2.update.aql -- diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries/dml/load-with-rtree-index-open/load-with-rtree-index-open.2.update.aql b/asterixdb/asterix-app/src/test/resources/runtimets/queries/dml/load-with-rtree-index-open/load-with-rtree-index-open.2.update.aql deleted file mode 100644 index 97602cb..000 --- a/asterixdb/asterix-app/src/test/resources/runtimets/queries/dml/load-with-rtree-index-open/load-with-rtree-index-open.2.update.aql +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -use dataverse test; - -load dataset MyData -using localfs -(("path"="asterix_nc1://data/spatial/spatialData.json"),("format"="adm")) pre-sorted; - -insert into dataset test.MyDataOpen ( -for $x in dataset test.MyData -return $x -); http://git-wip-us.apache.org/repos/asf/asterixdb/blob/f372c96d/asterixdb/asterix-app/src/test/resources/runtimets/queries/dml/load-with-rtree-index-open/load-with-rtree-index-open.3.query.aql -- diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries/dml/load-with-rtree-index-open/load-with-rtree-index-open.3.query.aql b/asterixdb/asterix-app/src/test/resources/runtimets/queries/dml/load-with-rtree-index-open/load-with-rtree-index-open.3.query.aql deleted file mode 100644 index 56648f1..000 --- a/asterixdb/asterix-app/src/test/resources/runtimets/queries/dml/load-with-rtree-index-open/load-with-rtree-index-open.3.query.aql +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -use dataverse test; - -for $o in dataset('MyDataOpen') -where spatial-intersect($o.point, create-polygon([0.0,1.0,0.0,4.0,12.0,4.0,12.0,1.0])) -order by $o.id -return {"id":$o.id} http://git-wip-us.apache.org/repos/asf/asterixdb/blob/f372c96d/asterixdb/asterix-app/src/test/resources/runtimets/queries/dml/load-with-rtree-index/load-with-rtree-index.1.ddl.aql -- diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries/dml/load-with-rtree-index/load-with-rtree-index.1.ddl.aql b/asterixdb/asterix-app/src/test/resources/runtimets/queries/dml/load-with-rtree-index/load-with-rtree-index.1.ddl.aql deleted file mode 100644 index 8388105..000 --- a/asterixdb/asterix-app/src/test/resources/runtimets/queries/dml/load-with-rtree-index/load-with-rtree-index.1.ddl.aql +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either expres
[49/51] [partial] asterixdb git commit: [ASTERIXDB-2454] Remove non-unique AQL tests
http://git-wip-us.apache.org/repos/asf/asterixdb/blob/f372c96d/asterixdb/asterix-app/src/test/resources/optimizerts/queries/nested-index/btree-index/btree-secondary-58.aql -- diff --git a/asterixdb/asterix-app/src/test/resources/optimizerts/queries/nested-index/btree-index/btree-secondary-58.aql b/asterixdb/asterix-app/src/test/resources/optimizerts/queries/nested-index/btree-index/btree-secondary-58.aql deleted file mode 100644 index 28e321f..000 --- a/asterixdb/asterix-app/src/test/resources/optimizerts/queries/nested-index/btree-index/btree-secondary-58.aql +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -/* - * Description : This test is intended to verify that the primary BTree index is used - * : in the optimized query plan. - * Expected Result : Success - * Date: 13th Aug 2012 - */ - -drop dataverse test if exists; -create dataverse test; -use dataverse test; - -write output to asterix_nc1:"rttest/btree-index_btree-primary-56.adm"; - -create type TestTypetmp as open { -id : int32, -fname : string, -lname : string -} - -create type TestType as open { -nested : TestTypetmp -} - -create dataset testdst(TestType) primary key nested.id; - -create index sec_Idx on testdst(nested.fname); - -for $emp in dataset('testdst') -where $emp.nested.fname > "Neil" and $emp.nested.fname < "Roger" -return $emp http://git-wip-us.apache.org/repos/asf/asterixdb/blob/f372c96d/asterixdb/asterix-app/src/test/resources/optimizerts/queries/nested-index/btree-index/btree-secondary-59.aql -- diff --git a/asterixdb/asterix-app/src/test/resources/optimizerts/queries/nested-index/btree-index/btree-secondary-59.aql b/asterixdb/asterix-app/src/test/resources/optimizerts/queries/nested-index/btree-index/btree-secondary-59.aql deleted file mode 100644 index 9060d83..000 --- a/asterixdb/asterix-app/src/test/resources/optimizerts/queries/nested-index/btree-index/btree-secondary-59.aql +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -/* - * Description : This test is intended to verify that the secondary BTree index is used - * : in the optimized query plan. - * Expected Result : Success - * Date: 13th Aug 2012 - */ - -drop dataverse test if exists; -create dataverse test; -use dataverse test; - -write output to asterix_nc1:"rttest/btree-index_btree-secondary-57.adm"; - -create type TestTypetmp as open { -id : int32, -fname : string, -lname : string -} - -create type TestType as open { -nested : TestTypetmp -} - -create dataset testdst(TestType) primary key nested.id; - -create index sec_Idx on testdst(nested.fname); - -for $emp in dataset('testdst') -where $emp.nested.fname >= "Max" and $emp.nested.fname <= "Roger" -return $emp http://git-wip-us.apache.org/repos/asf/asterixdb/blob/f372c96d/asterixdb/asterix-app/src/test/resources/optimizerts/queries/nested-index/btree-index/btree-secondary-60.aql -- diff --git a/asterixdb/asterix-app/src/test/resources/optimizerts/queries/nested-index/btree-index/btree-secondary-60.aql b/asterixdb/asterix-app/src/test/resources/optimizerts/queries/nested-index/btree-index/btree-secondary-60.a
[13/51] [partial] asterixdb git commit: [ASTERIXDB-2454] Remove non-unique AQL tests
http://git-wip-us.apache.org/repos/asf/asterixdb/blob/f372c96d/asterixdb/asterix-app/src/test/resources/runtimets/queries/flwor/let16/let16.3.query.aql -- diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries/flwor/let16/let16.3.query.aql b/asterixdb/asterix-app/src/test/resources/runtimets/queries/flwor/let16/let16.3.query.aql deleted file mode 100644 index 3256dd9..000 --- a/asterixdb/asterix-app/src/test/resources/runtimets/queries/flwor/let16/let16.3.query.aql +++ /dev/null @@ -1,26 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -/* - * Description : Test let clause - * Expected Result : Success - * Date: 6th July 2012 - */ - -let $a := [[[int64("9222872036854775809"),int64("9222872036854775809"),int64("9222872036854775809"),int64("9222872036854775809"),int64("9222872036854775809"),int64("9222872036854775809"),int64("9222872036854775809"),int64("9222872036854775809"),int64("9222872036854775809"),int64("9222872036854775809"),int64("9222872036854775809"),int64("9222872036854775809"),int64("9222872036854775809"),int64("9222872036854775809"),int64("9222872036854775809"),int64("9222872036854775809"),int64("9222872036854775809"),int64("9222872036854775809"),int64("9222872036854775809"),int64("9222872036854775809"),int64("9222872036854775809"),int64("9222872036854775809")]]] -return $a http://git-wip-us.apache.org/repos/asf/asterixdb/blob/f372c96d/asterixdb/asterix-app/src/test/resources/runtimets/queries/flwor/let17/let17.1.ddl.aql -- diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries/flwor/let17/let17.1.ddl.aql b/asterixdb/asterix-app/src/test/resources/runtimets/queries/flwor/let17/let17.1.ddl.aql deleted file mode 100644 index e159713..000 --- a/asterixdb/asterix-app/src/test/resources/runtimets/queries/flwor/let17/let17.1.ddl.aql +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -/* - * Description : Test let clause - * Expected Result : Success - * Date: 6th July 2012 - */ - http://git-wip-us.apache.org/repos/asf/asterixdb/blob/f372c96d/asterixdb/asterix-app/src/test/resources/runtimets/queries/flwor/let17/let17.2.update.aql -- diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries/flwor/let17/let17.2.update.aql b/asterixdb/asterix-app/src/test/resources/runtimets/queries/flwor/let17/let17.2.update.aql deleted file mode 100644 index d218e02..000 --- a/asterixdb/asterix-app/src/test/resources/runtimets/queries/flwor/let17/let17.2.update.aql +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WA
[24/51] [partial] asterixdb git commit: [ASTERIXDB-2454] Remove non-unique AQL tests
http://git-wip-us.apache.org/repos/asf/asterixdb/blob/f372c96d/asterixdb/asterix-app/src/test/resources/runtimets/queries/dml/insert-with-autogenerated-pk_adm_03/insert-with-autogenerated-pk_adm_03.2.update.aql -- diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries/dml/insert-with-autogenerated-pk_adm_03/insert-with-autogenerated-pk_adm_03.2.update.aql b/asterixdb/asterix-app/src/test/resources/runtimets/queries/dml/insert-with-autogenerated-pk_adm_03/insert-with-autogenerated-pk_adm_03.2.update.aql deleted file mode 100644 index 40b89fc..000 --- a/asterixdb/asterix-app/src/test/resources/runtimets/queries/dml/insert-with-autogenerated-pk_adm_03/insert-with-autogenerated-pk_adm_03.2.update.aql +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -use dataverse test; - -insert into dataset DBLP ({"id": uuid("89fb1567-70f8-4e59-87d9-ace64f73daf1"), -"dblpid": "books/acm/kim95/Blakeley95", -"title": "OQL[C++] Extending C++ with an Object Query Capability.", -"authors": "José A. Blakeley", -"misc": "2002-01-03 69-88 Modern Database Systems db/books/collections/kim95.html#Blakeley95 1995" }); http://git-wip-us.apache.org/repos/asf/asterixdb/blob/f372c96d/asterixdb/asterix-app/src/test/resources/runtimets/queries/dml/insert-with-autogenerated-pk_adm_03/insert-with-autogenerated-pk_adm_03.3.query.aql -- diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries/dml/insert-with-autogenerated-pk_adm_03/insert-with-autogenerated-pk_adm_03.3.query.aql b/asterixdb/asterix-app/src/test/resources/runtimets/queries/dml/insert-with-autogenerated-pk_adm_03/insert-with-autogenerated-pk_adm_03.3.query.aql deleted file mode 100644 index d309fab..000 --- a/asterixdb/asterix-app/src/test/resources/runtimets/queries/dml/insert-with-autogenerated-pk_adm_03/insert-with-autogenerated-pk_adm_03.3.query.aql +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -use dataverse test; - -for $o in dataset('DBLP') -where contains($o.title,"Extending") -return $o; http://git-wip-us.apache.org/repos/asf/asterixdb/blob/f372c96d/asterixdb/asterix-app/src/test/resources/runtimets/queries/dml/insert-with-bad-return/insert-with-bad-return.1.ddl.aql -- diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries/dml/insert-with-bad-return/insert-with-bad-return.1.ddl.aql b/asterixdb/asterix-app/src/test/resources/runtimets/queries/dml/insert-with-bad-return/insert-with-bad-return.1.ddl.aql deleted file mode 100644 index a75f9da..000 --- a/asterixdb/asterix-app/src/test/resources/runtimets/queries/dml/insert-with-bad-return/insert-with-bad-return.1.ddl.aql +++ /dev/null @@ -1,36 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable
[30/51] [partial] asterixdb git commit: [ASTERIXDB-2454] Remove non-unique AQL tests
http://git-wip-us.apache.org/repos/asf/asterixdb/blob/f372c96d/asterixdb/asterix-app/src/test/resources/runtimets/queries/constructor/interval/interval.1.ddl.aql -- diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries/constructor/interval/interval.1.ddl.aql b/asterixdb/asterix-app/src/test/resources/runtimets/queries/constructor/interval/interval.1.ddl.aql deleted file mode 100644 index d17ea60..000 --- a/asterixdb/asterix-app/src/test/resources/runtimets/queries/constructor/interval/interval.1.ddl.aql +++ /dev/null @@ -1,21 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -drop dataverse test if exists; -create dataverse test; - http://git-wip-us.apache.org/repos/asf/asterixdb/blob/f372c96d/asterixdb/asterix-app/src/test/resources/runtimets/queries/constructor/interval/interval.2.update.aql -- diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries/constructor/interval/interval.2.update.aql b/asterixdb/asterix-app/src/test/resources/runtimets/queries/constructor/interval/interval.2.update.aql deleted file mode 100644 index 042f3ce..000 --- a/asterixdb/asterix-app/src/test/resources/runtimets/queries/constructor/interval/interval.2.update.aql +++ /dev/null @@ -1,18 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ http://git-wip-us.apache.org/repos/asf/asterixdb/blob/f372c96d/asterixdb/asterix-app/src/test/resources/runtimets/queries/constructor/interval/interval.3.query.aql -- diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries/constructor/interval/interval.3.query.aql b/asterixdb/asterix-app/src/test/resources/runtimets/queries/constructor/interval/interval.3.query.aql deleted file mode 100644 index b5eb998..000 --- a/asterixdb/asterix-app/src/test/resources/runtimets/queries/constructor/interval/interval.3.query.aql +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -use dataverse test; - -let $itv41 := interval-start-from-date(date("0001-12-27"), duration("P3Y394DT48H398.483S")) -let $itv42 := interval-start-from-date("0001-12-27", duration("P3Y394DT48H398.483S")) -let $itv43 := interval-start-from-date(date("0001-12-27"), "P3Y394DT48H398.483S") -let $itv44 := interval-start-from-date("0001-12-27", "P3Y394DT48H398.483S") -let $itv45 := interval-start-from-date(null, duration("P3Y394DT48H398.483S")) -let $itv46 := interval-start-from-date(date("0001-12-27"), null) -let $itv51 := interval-st
[19/51] [partial] asterixdb git commit: [ASTERIXDB-2454] Remove non-unique AQL tests
http://git-wip-us.apache.org/repos/asf/asterixdb/blob/f372c96d/asterixdb/asterix-app/src/test/resources/runtimets/queries/dml/scan-insert-rtree-secondary-index-open/scan-insert-rtree-secondary-index-open.1.ddl.aql -- diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries/dml/scan-insert-rtree-secondary-index-open/scan-insert-rtree-secondary-index-open.1.ddl.aql b/asterixdb/asterix-app/src/test/resources/runtimets/queries/dml/scan-insert-rtree-secondary-index-open/scan-insert-rtree-secondary-index-open.1.ddl.aql deleted file mode 100644 index fa82656d..000 --- a/asterixdb/asterix-app/src/test/resources/runtimets/queries/dml/scan-insert-rtree-secondary-index-open/scan-insert-rtree-secondary-index-open.1.ddl.aql +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -/* - * Test case Name : scan-insert-rtree-secondary-index-open.aql - * Description : This test is intended to test insertion from secondary rtree index that is built on open field. - * Expected Result : Success - * Date: Feb 13 2014 - */ - -drop dataverse test if exists; -create dataverse test; - -use dataverse test; - -create type MyRecord as closed { - id: int64, - point: point, - kwds: string, - line1: line, - line2: line, - poly1: polygon, - poly2: polygon, - rec: rectangle, - circle: circle -} - -create type MyOpenRecord as open { - id: int64 -} - -create dataset MyData(MyRecord) - primary key id; - -create dataset MyOpenData(MyOpenRecord) - primary key id; - http://git-wip-us.apache.org/repos/asf/asterixdb/blob/f372c96d/asterixdb/asterix-app/src/test/resources/runtimets/queries/dml/scan-insert-rtree-secondary-index-open/scan-insert-rtree-secondary-index-open.2.update.aql -- diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries/dml/scan-insert-rtree-secondary-index-open/scan-insert-rtree-secondary-index-open.2.update.aql b/asterixdb/asterix-app/src/test/resources/runtimets/queries/dml/scan-insert-rtree-secondary-index-open/scan-insert-rtree-secondary-index-open.2.update.aql deleted file mode 100644 index 25f4356..000 --- a/asterixdb/asterix-app/src/test/resources/runtimets/queries/dml/scan-insert-rtree-secondary-index-open/scan-insert-rtree-secondary-index-open.2.update.aql +++ /dev/null @@ -1,30 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -/* - * Test case Name : scan-insert-rtree-secondary-index-open.aql - * Description : This test is intended to test insertion from secondary rtree index that is built on open field. - * Expected Result : Success - * Date: Feb 13 2014 - */ - - use dataverse test; - -load dataset MyData -using localfs -(("path"="asterix_nc1://data/spatial/spatialData.json"),("format"="adm")) pre-sorted; http://git-wip-us.apache.org/repos/asf/asterixdb/blob/f372c96d/asterixdb/asterix-app/src/test/resources/runtimets/queries/dml/scan-insert-rtree-secondary-index-open/scan-insert-rtree-secondary-index-open.3.ddl.aql -- diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries/dml/scan-insert-rtree-secondary-index-open/scan-insert-rtree-secondary-index-open.3.ddl.aql b/asterixdb/asterix-app/src/test/resources/runtimets/queries/dml/scan-insert-rtre
[50/51] [partial] asterixdb git commit: [ASTERIXDB-2454] Remove non-unique AQL tests
http://git-wip-us.apache.org/repos/asf/asterixdb/blob/f372c96d/asterixdb/asterix-app/src/test/resources/optimizerts/queries/inverted-index-join-noeqjoin/ngram-edit-distance.aql -- diff --git a/asterixdb/asterix-app/src/test/resources/optimizerts/queries/inverted-index-join-noeqjoin/ngram-edit-distance.aql b/asterixdb/asterix-app/src/test/resources/optimizerts/queries/inverted-index-join-noeqjoin/ngram-edit-distance.aql deleted file mode 100644 index 6640508..000 --- a/asterixdb/asterix-app/src/test/resources/optimizerts/queries/inverted-index-join-noeqjoin/ngram-edit-distance.aql +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -/* - * Description: Fuzzy joins two datasets, DBLP and CSX, based on the edit-distance function of their authors. - * DBLP has a 3-gram index on authors, and we expect the join to be transformed into an indexed nested-loop join. - * We expect the top-level equi join introduced because of surrogate optimization to be removed, since it is not necessary. - * Success: Yes - */ - -drop dataverse test if exists; -create dataverse test; -use dataverse test; - -create type DBLPType as closed { - id: int32, - dblpid: string, - title: string, - authors: string, - misc: string -} - -create type CSXType as closed { - id: int32, - csxid: string, - title: string, - authors: string, - misc: string -} - -create dataset DBLP(DBLPType) primary key id; - -create dataset CSX(CSXType) primary key id; - -create index ngram_index on DBLP(authors) type ngram(3); - -write output to asterix_nc1:"rttest/inverted-index-join-noeqjoin_ngram-edit-distance.adm"; - -for $b in dataset('CSX') -for $a in dataset('DBLP') -where edit-distance($a.authors, $b.authors) < 3 and $a.id < $b.id -return {"aauthors": $a.authors, "bauthors": $b.authors} http://git-wip-us.apache.org/repos/asf/asterixdb/blob/f372c96d/asterixdb/asterix-app/src/test/resources/optimizerts/queries/inverted-index-join-noeqjoin/ngram-fuzzyeq-jaccard.aql -- diff --git a/asterixdb/asterix-app/src/test/resources/optimizerts/queries/inverted-index-join-noeqjoin/ngram-fuzzyeq-jaccard.aql b/asterixdb/asterix-app/src/test/resources/optimizerts/queries/inverted-index-join-noeqjoin/ngram-fuzzyeq-jaccard.aql deleted file mode 100644 index 72e4b69..000 --- a/asterixdb/asterix-app/src/test/resources/optimizerts/queries/inverted-index-join-noeqjoin/ngram-fuzzyeq-jaccard.aql +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -/* - * Description: Fuzzy joins two datasets, DBLP and CSX, based on ~= using Jaccard of their titles' 3-gram tokens. - * DBLP has a 3-gram index on title, and we expect the join to be transformed into an indexed nested-loop join. - * We expect the top-level equi join introduced because of surrogate optimization to be removed, since it is not necessary. - * Success: Yes - */ - -drop dataverse test if exists; -create dataverse test; -use dataverse test; -set import-private-functions 'true'; - -create type DBLPType as closed { - id: int32, - dblpid: string, - title: string, - authors: string, - misc: string -} - -create type CSXType as closed { - id: int32, - csxid: string, - title: string, - author
[03/51] [partial] asterixdb git commit: [ASTERIXDB-2454] Remove non-unique AQL tests
http://git-wip-us.apache.org/repos/asf/asterixdb/blob/f372c96d/asterixdb/asterix-app/src/test/resources/runtimets/queries/inverted-index-join-noeqjoin/olist-edit-distance-inline/olist-edit-distance-inline.3.ddl.aql -- diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries/inverted-index-join-noeqjoin/olist-edit-distance-inline/olist-edit-distance-inline.3.ddl.aql b/asterixdb/asterix-app/src/test/resources/runtimets/queries/inverted-index-join-noeqjoin/olist-edit-distance-inline/olist-edit-distance-inline.3.ddl.aql deleted file mode 100644 index 7719d30..000 --- a/asterixdb/asterix-app/src/test/resources/runtimets/queries/inverted-index-join-noeqjoin/olist-edit-distance-inline/olist-edit-distance-inline.3.ddl.aql +++ /dev/null @@ -1,30 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -/* - * Description: Fuzzy joins two datasets, Customers and Customers2, based on the edit-distance function of their interest lists. - * Customers has a keyword index on interests, and we expect the join to be transformed into an indexed nested-loop join. - * We test the inlining of variables that enable the select to be pushed into the join for subsequent optimization with an index. - * We expect the top-level equi join introduced because of surrogate optimization to be removed, since it is not necessary. - * Success: Yes - */ - -use dataverse test; - -create index interests_index on Customers(interests) type keyword; - http://git-wip-us.apache.org/repos/asf/asterixdb/blob/f372c96d/asterixdb/asterix-app/src/test/resources/runtimets/queries/inverted-index-join-noeqjoin/olist-edit-distance-inline/olist-edit-distance-inline.4.query.aql -- diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries/inverted-index-join-noeqjoin/olist-edit-distance-inline/olist-edit-distance-inline.4.query.aql b/asterixdb/asterix-app/src/test/resources/runtimets/queries/inverted-index-join-noeqjoin/olist-edit-distance-inline/olist-edit-distance-inline.4.query.aql deleted file mode 100644 index 5fc2a05..000 --- a/asterixdb/asterix-app/src/test/resources/runtimets/queries/inverted-index-join-noeqjoin/olist-edit-distance-inline/olist-edit-distance-inline.4.query.aql +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -/* - * Description: Fuzzy joins two datasets, Customers and Customers2, based on the edit-distance function of their interest lists. - * Customers has a keyword index on interests, and we expect the join to be transformed into an indexed nested-loop join. - * We test the inlining of variables that enable the select to be pushed into the join for subsequent optimization with an index. - * We expect the top-level equi join introduced because of surrogate optimization to be removed, since it is not necessary. - * Success: Yes - */ - -use dataverse test; -set import-private-functions 'true'; - -for $a in dataset('Customers') -for $b in dataset('Customers2') -let $ed := edit-distance($a.interests, $b.interests) -where len($a.interests) > 2 and len($b.interests) > 2 and $ed <= 1 and $a.cid < $b.cid -order by $ed, $a.cid, $b.cid -return { "a": $a.interests, "b": $b.interests
[08/51] [partial] asterixdb git commit: [ASTERIXDB-2454] Remove non-unique AQL tests
http://git-wip-us.apache.org/repos/asf/asterixdb/blob/f372c96d/asterixdb/asterix-app/src/test/resources/runtimets/queries/index-join/rtree-spatial-intersect-point_01/rtree-spatial-intersect-point_01.2.update.aql -- diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries/index-join/rtree-spatial-intersect-point_01/rtree-spatial-intersect-point_01.2.update.aql b/asterixdb/asterix-app/src/test/resources/runtimets/queries/index-join/rtree-spatial-intersect-point_01/rtree-spatial-intersect-point_01.2.update.aql deleted file mode 100644 index 6f43a5b..000 --- a/asterixdb/asterix-app/src/test/resources/runtimets/queries/index-join/rtree-spatial-intersect-point_01/rtree-spatial-intersect-point_01.2.update.aql +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -/* - * Description: Joins two datasets on the intersection of their point attributes. - * The dataset 'MyData1' has an RTree index, and we expect the - * join to be transformed into an indexed nested-loop join. - * Success: Yes - */ - -use dataverse test; - -load dataset MyData1 -using localfs -(("path"="asterix_nc1://data/spatial/spatialData.json"),("format"="adm")) pre-sorted; - -load dataset MyData2 -using localfs -(("path"="asterix_nc1://data/spatial/spatialData.json"),("format"="adm")) pre-sorted; - http://git-wip-us.apache.org/repos/asf/asterixdb/blob/f372c96d/asterixdb/asterix-app/src/test/resources/runtimets/queries/index-join/rtree-spatial-intersect-point_01/rtree-spatial-intersect-point_01.3.ddl.aql -- diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries/index-join/rtree-spatial-intersect-point_01/rtree-spatial-intersect-point_01.3.ddl.aql b/asterixdb/asterix-app/src/test/resources/runtimets/queries/index-join/rtree-spatial-intersect-point_01/rtree-spatial-intersect-point_01.3.ddl.aql deleted file mode 100644 index 6ecdc5e..000 --- a/asterixdb/asterix-app/src/test/resources/runtimets/queries/index-join/rtree-spatial-intersect-point_01/rtree-spatial-intersect-point_01.3.ddl.aql +++ /dev/null @@ -1,29 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -/* - * Description: Joins two datasets on the intersection of their point attributes. - * The dataset 'MyData1' has an RTree index, and we expect the - * join to be transformed into an indexed nested-loop join. - * Success: Yes - */ - -use dataverse test; - -create index rtree_index on MyData1(point) type rtree; - http://git-wip-us.apache.org/repos/asf/asterixdb/blob/f372c96d/asterixdb/asterix-app/src/test/resources/runtimets/queries/index-join/rtree-spatial-intersect-point_01/rtree-spatial-intersect-point_01.4.query.aql -- diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries/index-join/rtree-spatial-intersect-point_01/rtree-spatial-intersect-point_01.4.query.aql b/asterixdb/asterix-app/src/test/resources/runtimets/queries/index-join/rtree-spatial-intersect-point_01/rtree-spatial-intersect-point_01.4.query.aql deleted file mode 100644 index ed7af43..000 --- a/asterixdb/asterix-app/src/test/resources/runtimets/queries/index-join/rtree-spatial-intersect-point_01/rtree-s
[09/51] [partial] asterixdb git commit: [ASTERIXDB-2454] Remove non-unique AQL tests
http://git-wip-us.apache.org/repos/asf/asterixdb/blob/f372c96d/asterixdb/asterix-app/src/test/resources/runtimets/queries/hints/issue_251_dataset_hint_7/issue_251_dataset_hint_7.2.update.aql -- diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries/hints/issue_251_dataset_hint_7/issue_251_dataset_hint_7.2.update.aql b/asterixdb/asterix-app/src/test/resources/runtimets/queries/hints/issue_251_dataset_hint_7/issue_251_dataset_hint_7.2.update.aql deleted file mode 100644 index 92a8e39..000 --- a/asterixdb/asterix-app/src/test/resources/runtimets/queries/hints/issue_251_dataset_hint_7/issue_251_dataset_hint_7.2.update.aql +++ /dev/null @@ -1,33 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -/* - * Description : Create a feed dataset that uses the feed simulator adapter. - Use hint (cardinality) for the feed dataset. - Begin ingestion using a fully qualified name and verify contents of the dataset post completion. - * Expected Res : Success - * Date : 30th Jan 2013 - */ - -use dataverse feeds; - -set wait-for-completion-feed "true"; - -connect feed TweetFeed to dataset Tweets; - -start feed TweetFeed; \ No newline at end of file http://git-wip-us.apache.org/repos/asf/asterixdb/blob/f372c96d/asterixdb/asterix-app/src/test/resources/runtimets/queries/hints/issue_251_dataset_hint_7/issue_251_dataset_hint_7.3.query.aql -- diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries/hints/issue_251_dataset_hint_7/issue_251_dataset_hint_7.3.query.aql b/asterixdb/asterix-app/src/test/resources/runtimets/queries/hints/issue_251_dataset_hint_7/issue_251_dataset_hint_7.3.query.aql deleted file mode 100644 index 3ee7fb1..000 --- a/asterixdb/asterix-app/src/test/resources/runtimets/queries/hints/issue_251_dataset_hint_7/issue_251_dataset_hint_7.3.query.aql +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -/* - * Description : Create a feed dataset that uses the feed simulator adapter. - Use hint (cardinality) for the feed dataset. - Begin ingestion using a fully qualified name and verify contents of the dataset post completion. - * Expected Res : Success - * Date : 30th Jan 2013 - */ - -use dataverse feeds; - -for $x in dataset('Tweets') -order by $x.id -return $x - http://git-wip-us.apache.org/repos/asf/asterixdb/blob/f372c96d/asterixdb/asterix-app/src/test/resources/runtimets/queries/index-join/btree-index-nested-loop-join/btree-index-nested-loop-join.1.ddl.aql -- diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries/index-join/btree-index-nested-loop-join/btree-index-nested-loop-join.1.ddl.aql b/asterixdb/asterix-app/src/test/resources/runtimets/queries/index-join/btree-index-nested-loop-join/btree-index-nested-loop-join.1.ddl.aql deleted file mode 100644 index b254e62..000 --- a/asterixdb/asterix-app/src/test/resources/runtimets/queries/index-join/btree-index-nested-loop-join/btree-index-nested-loop-join.1.ddl.aql +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with
[10/51] [partial] asterixdb git commit: [ASTERIXDB-2454] Remove non-unique AQL tests
http://git-wip-us.apache.org/repos/asf/asterixdb/blob/f372c96d/asterixdb/asterix-app/src/test/resources/runtimets/queries/fulltext/fulltext-02/fulltext-02.1.ddl.aql -- diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries/fulltext/fulltext-02/fulltext-02.1.ddl.aql b/asterixdb/asterix-app/src/test/resources/runtimets/queries/fulltext/fulltext-02/fulltext-02.1.ddl.aql deleted file mode 100644 index e374593..000 --- a/asterixdb/asterix-app/src/test/resources/runtimets/queries/fulltext/fulltext-02/fulltext-02.1.ddl.aql +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -/* - * Description : Full-text search non-index test - * : This test is intended to verify that the full-text search works as expected. - * : query #3 - two string values in [an ordered list] query with "any" option - * :in this case, "any" option that enforces a disjunctive search will be applied. - * : query #4 - the same as query #3, but with a different option - "all" - * :in this case, we explicitly specify "all" option that enforces a conjunctive search. - * : query #5 - two string values in {{an unordered list}} query with "any" option - * :in this case, "any" option that enforces a disjunctive search will be applied. - * : query #6 - the same as query #6, but with a different option - "all" - * :in this case, we explicitly specify "all" option that enforces a conjunctive search. - * : query #7 - the same as query #4, but without any option that is equivalent to "all". - * : query #8 - the same as query #6, but without any option that is equivalent to "all". - * Expected Result : Success - * -*/ - -drop dataverse test if exists; -create dataverse test; -use dataverse test; - -create type MyRecord as closed { - id: int64, - docid: int64, - val1: int64, - title: string, - point: point, - kwds: string, - line1: line, - line2: line, - poly1: polygon, - poly2: polygon, - rec: rectangle, - circle: circle -} - -create dataset MyData(MyRecord) - primary key id; http://git-wip-us.apache.org/repos/asf/asterixdb/blob/f372c96d/asterixdb/asterix-app/src/test/resources/runtimets/queries/fulltext/fulltext-02/fulltext-02.2.update.aql -- diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries/fulltext/fulltext-02/fulltext-02.2.update.aql b/asterixdb/asterix-app/src/test/resources/runtimets/queries/fulltext/fulltext-02/fulltext-02.2.update.aql deleted file mode 100644 index c627cf1..000 --- a/asterixdb/asterix-app/src/test/resources/runtimets/queries/fulltext/fulltext-02/fulltext-02.2.update.aql +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -use dataverse test; - -load dataset MyData -using localfs -(("path"="asterix_nc1://data/spatial/spatialData2.json"),("format"="adm")); http://git-wip-us.apache.org/repos/asf/asterixdb/blob/f372c96d/asterixdb/asterix-app/src/test/resources/runtimets/queries/fulltext/fulltext-02/fulltext-02.3.query.aql -- diff --git a/
[27/51] [partial] asterixdb git commit: [ASTERIXDB-2454] Remove non-unique AQL tests
http://git-wip-us.apache.org/repos/asf/asterixdb/blob/f372c96d/asterixdb/asterix-app/src/test/resources/runtimets/queries/custord/join_q_03/join_q_03.1.ddl.aql -- diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries/custord/join_q_03/join_q_03.1.ddl.aql b/asterixdb/asterix-app/src/test/resources/runtimets/queries/custord/join_q_03/join_q_03.1.ddl.aql deleted file mode 100644 index 9d0afab..000 --- a/asterixdb/asterix-app/src/test/resources/runtimets/queries/custord/join_q_03/join_q_03.1.ddl.aql +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -drop dataverse test if exists; - -create dataverse test; - -use dataverse test; - -create type AddressType as open { - number: int64, - street: string, - city: string -} - -create type CustomerType as closed { - cid: int64, - name: string, - cashBack: int64, - age: int64?, - address: AddressType?, - lastorder: { -oid: int64, -total: float - } -} - - -create type OrderType as open { - oid: int64, - cid: int64, - orderstatus: string, - orderpriority: string, - clerk: string, - total: float, - items: [int64] -} - -create external dataset Customers(CustomerType) -using localfs -(("path"="asterix_nc1://data/nontagged/customerData.json"),("format"="adm")); - -create external dataset Orders(OrderType) -using localfs -(("path"="asterix_nc1://data/nontagged/orderData.json"),("format"="adm")); http://git-wip-us.apache.org/repos/asf/asterixdb/blob/f372c96d/asterixdb/asterix-app/src/test/resources/runtimets/queries/custord/join_q_03/join_q_03.2.update.aql -- diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries/custord/join_q_03/join_q_03.2.update.aql b/asterixdb/asterix-app/src/test/resources/runtimets/queries/custord/join_q_03/join_q_03.2.update.aql deleted file mode 100644 index 042f3ce..000 --- a/asterixdb/asterix-app/src/test/resources/runtimets/queries/custord/join_q_03/join_q_03.2.update.aql +++ /dev/null @@ -1,18 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ http://git-wip-us.apache.org/repos/asf/asterixdb/blob/f372c96d/asterixdb/asterix-app/src/test/resources/runtimets/queries/custord/join_q_03/join_q_03.3.query.aql -- diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries/custord/join_q_03/join_q_03.3.query.aql b/asterixdb/asterix-app/src/test/resources/runtimets/queries/custord/join_q_03/join_q_03.3.query.aql deleted file mode 100644 index 5279794..000 --- a/asterixdb/asterix-app/src/test/resources/runtimets/queries/custord/join_q_03/join_q_03.3.query.aql +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS I
[28/51] [partial] asterixdb git commit: [ASTERIXDB-2454] Remove non-unique AQL tests
http://git-wip-us.apache.org/repos/asf/asterixdb/blob/f372c96d/asterixdb/asterix-app/src/test/resources/runtimets/queries/cross-dataverse/metadata_dataset/metadata_dataset.3.query.aql -- diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries/cross-dataverse/metadata_dataset/metadata_dataset.3.query.aql b/asterixdb/asterix-app/src/test/resources/runtimets/queries/cross-dataverse/metadata_dataset/metadata_dataset.3.query.aql deleted file mode 100644 index 83b2c4e..000 --- a/asterixdb/asterix-app/src/test/resources/runtimets/queries/cross-dataverse/metadata_dataset/metadata_dataset.3.query.aql +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -//Query metadata dataset - -for $c in dataset('Metadata.Dataset') -where $c.DataverseName='Metadata' -return $c - http://git-wip-us.apache.org/repos/asf/asterixdb/blob/f372c96d/asterixdb/asterix-app/src/test/resources/runtimets/queries/csv/basic-types/basic-types.1.ddl.aql -- diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries/csv/basic-types/basic-types.1.ddl.aql b/asterixdb/asterix-app/src/test/resources/runtimets/queries/csv/basic-types/basic-types.1.ddl.aql deleted file mode 100644 index 6af0413..000 --- a/asterixdb/asterix-app/src/test/resources/runtimets/queries/csv/basic-types/basic-types.1.ddl.aql +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -drop dataverse test if exists; -create dataverse test; - -use dataverse test; - -create type AllType as open { - id: int64, - string: string, - float: float, - double: double, - boolean: boolean, - int8: int8, - int16: int16, - int32: int32, - int64: int64, - date: date, - time: time, - datetime: datetime, - duration: duration, - point: point, - point3d: point3d, - line: line, - rectangle: rectangle, - polygon: polygon, - circle: circle, - binary: binary, - uuid: uuid - // union -} http://git-wip-us.apache.org/repos/asf/asterixdb/blob/f372c96d/asterixdb/asterix-app/src/test/resources/runtimets/queries/csv/basic-types/basic-types.2.query.aql -- diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries/csv/basic-types/basic-types.2.query.aql b/asterixdb/asterix-app/src/test/resources/runtimets/queries/csv/basic-types/basic-types.2.query.aql deleted file mode 100644 index f3c44ea..000 --- a/asterixdb/asterix-app/src/test/resources/runtimets/queries/csv/basic-types/basic-types.2.query.aql +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the
[06/51] [partial] asterixdb git commit: [ASTERIXDB-2454] Remove non-unique AQL tests
http://git-wip-us.apache.org/repos/asf/asterixdb/blob/f372c96d/asterixdb/asterix-app/src/test/resources/runtimets/queries/index-selection/btree-sidx-idxonly-01/btree-sidx-idxonly-01.7.query.aql -- diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries/index-selection/btree-sidx-idxonly-01/btree-sidx-idxonly-01.7.query.aql b/asterixdb/asterix-app/src/test/resources/runtimets/queries/index-selection/btree-sidx-idxonly-01/btree-sidx-idxonly-01.7.query.aql deleted file mode 100644 index 0eaa1ea..000 --- a/asterixdb/asterix-app/src/test/resources/runtimets/queries/index-selection/btree-sidx-idxonly-01/btree-sidx-idxonly-01.7.query.aql +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -use dataverse test; - -count( -for $o in dataset('MyData') -where $o.docid < 3 -order by $o.id -return {"pk":$o.id} -); - http://git-wip-us.apache.org/repos/asf/asterixdb/blob/f372c96d/asterixdb/asterix-app/src/test/resources/runtimets/queries/index-selection/btree-sidx-idxonly-01/btree-sidx-idxonly-01.8.query.aql -- diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries/index-selection/btree-sidx-idxonly-01/btree-sidx-idxonly-01.8.query.aql b/asterixdb/asterix-app/src/test/resources/runtimets/queries/index-selection/btree-sidx-idxonly-01/btree-sidx-idxonly-01.8.query.aql deleted file mode 100644 index d42794f..000 --- a/asterixdb/asterix-app/src/test/resources/runtimets/queries/index-selection/btree-sidx-idxonly-01/btree-sidx-idxonly-01.8.query.aql +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -use dataverse test; - -count( -for $o in dataset('MyData') -where $o.docid < 3 -order by $o.id -return {"sk":$o.docid} -); - http://git-wip-us.apache.org/repos/asf/asterixdb/blob/f372c96d/asterixdb/asterix-app/src/test/resources/runtimets/queries/index-selection/btree-sidx-idxonly-01/btree-sidx-idxonly-01.9.query.aql -- diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries/index-selection/btree-sidx-idxonly-01/btree-sidx-idxonly-01.9.query.aql b/asterixdb/asterix-app/src/test/resources/runtimets/queries/index-selection/btree-sidx-idxonly-01/btree-sidx-idxonly-01.9.query.aql deleted file mode 100644 index 50fd514..000 --- a/asterixdb/asterix-app/src/test/resources/runtimets/queries/index-selection/btree-sidx-idxonly-01/btree-sidx-idxonly-01.9.query.aql +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * unde
[04/51] [partial] asterixdb git commit: [ASTERIXDB-2454] Remove non-unique AQL tests
http://git-wip-us.apache.org/repos/asf/asterixdb/blob/f372c96d/asterixdb/asterix-app/src/test/resources/runtimets/queries/index-selection/rtree-secondary-index-open/rtree-secondary-index-open.4.query.aql -- diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries/index-selection/rtree-secondary-index-open/rtree-secondary-index-open.4.query.aql b/asterixdb/asterix-app/src/test/resources/runtimets/queries/index-selection/rtree-secondary-index-open/rtree-secondary-index-open.4.query.aql deleted file mode 100644 index 0616802..000 --- a/asterixdb/asterix-app/src/test/resources/runtimets/queries/index-selection/rtree-secondary-index-open/rtree-secondary-index-open.4.query.aql +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -use dataverse test; - -for $o in dataset('MyData') -where spatial-intersect($o.point, create-polygon([4.0,1.0,4.0,4.0,12.0,4.0,12.0,1.0])) -order by $o.id -return {"id":$o.id} http://git-wip-us.apache.org/repos/asf/asterixdb/blob/f372c96d/asterixdb/asterix-app/src/test/resources/runtimets/queries/index-selection/rtree-secondary-index/rtree-secondary-index.1.ddl.aql -- diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries/index-selection/rtree-secondary-index/rtree-secondary-index.1.ddl.aql b/asterixdb/asterix-app/src/test/resources/runtimets/queries/index-selection/rtree-secondary-index/rtree-secondary-index.1.ddl.aql deleted file mode 100644 index 1df9596..000 --- a/asterixdb/asterix-app/src/test/resources/runtimets/queries/index-selection/rtree-secondary-index/rtree-secondary-index.1.ddl.aql +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -drop dataverse test if exists; -create dataverse test; -use dataverse test; - -create type MyRecord as closed { - id: int64, - point: point, - kwds: string, - line1: line, - line2: line, - poly1: polygon, - poly2: polygon, - rec: rectangle, - circle: circle -} - -create dataset MyData(MyRecord) - primary key id; - http://git-wip-us.apache.org/repos/asf/asterixdb/blob/f372c96d/asterixdb/asterix-app/src/test/resources/runtimets/queries/index-selection/rtree-secondary-index/rtree-secondary-index.2.update.aql -- diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries/index-selection/rtree-secondary-index/rtree-secondary-index.2.update.aql b/asterixdb/asterix-app/src/test/resources/runtimets/queries/index-selection/rtree-secondary-index/rtree-secondary-index.2.update.aql deleted file mode 100644 index 825fdd7..000 --- a/asterixdb/asterix-app/src/test/resources/runtimets/queries/index-selection/rtree-secondary-index/rtree-secondary-index.2.update.aql +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by appli
[48/51] [partial] asterixdb git commit: [ASTERIXDB-2454] Remove non-unique AQL tests
http://git-wip-us.apache.org/repos/asf/asterixdb/blob/f372c96d/asterixdb/asterix-app/src/test/resources/optimizerts/queries/nested-index/inverted-index-complex/olist-edit-distance-check-let-panic.aql -- diff --git a/asterixdb/asterix-app/src/test/resources/optimizerts/queries/nested-index/inverted-index-complex/olist-edit-distance-check-let-panic.aql b/asterixdb/asterix-app/src/test/resources/optimizerts/queries/nested-index/inverted-index-complex/olist-edit-distance-check-let-panic.aql deleted file mode 100644 index ea22e19..000 --- a/asterixdb/asterix-app/src/test/resources/optimizerts/queries/nested-index/inverted-index-complex/olist-edit-distance-check-let-panic.aql +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -/* - * Description: Tests whether an ngram_index is applied to optimize a selection query using the edit-distance-check function on lists. - * Tests that the optimizer rule correctly drills through the let clauses. - * The index should *not* be applied (see below). - * Success: Yes - */ - -drop dataverse test if exists; -create dataverse test; -use dataverse test; - -create type AddressType as closed { - number: int32, - street: string, - city: string -} - -create type CustomerTypetmp as closed { - cid: int32, - name: string, - age: int32?, - address: AddressType?, - interests: [string], - children: [ { name: string, age: int32? } ] -} - -create type CustomerType as closed { - nested : CustomerTypetmp -} - -create dataset Customers(CustomerType) primary key nested.cid; - -create dataset Customers2(CustomerType) primary key nested.cid; - -create index interests_index on Customers(nested.interests) type keyword; - -write output to asterix_nc1:"rttest/inverted-index-complex_olist-edit-distance-check-let-panic.adm"; - -for $c in dataset('Customers') -let $ed := edit-distance-check($c.nested.interests, ["computers", "wine", "walking"], 3) -where $ed[0] -order by $c.nested.cid -return $c http://git-wip-us.apache.org/repos/asf/asterixdb/blob/f372c96d/asterixdb/asterix-app/src/test/resources/optimizerts/queries/nested-index/inverted-index-complex/olist-edit-distance-check-let.aql -- diff --git a/asterixdb/asterix-app/src/test/resources/optimizerts/queries/nested-index/inverted-index-complex/olist-edit-distance-check-let.aql b/asterixdb/asterix-app/src/test/resources/optimizerts/queries/nested-index/inverted-index-complex/olist-edit-distance-check-let.aql deleted file mode 100644 index e88a673..000 --- a/asterixdb/asterix-app/src/test/resources/optimizerts/queries/nested-index/inverted-index-complex/olist-edit-distance-check-let.aql +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -/* - * Description: Tests whether an ngram_index is applied to optimize a selection query using the edit-distance-check function on lists. - * Tests that the optimizer rule correctly drills through the let clauses. - * The index should be applied. - * Success: Yes - */ - -drop dataverse test if exists; -create dataverse test; -use dataverse test; - -create type AddressType as closed { - number: int32, - street: string, - city: string -} - -create type CustomerTypetmp as closed {
[11/51] [partial] asterixdb git commit: [ASTERIXDB-2454] Remove non-unique AQL tests
http://git-wip-us.apache.org/repos/asf/asterixdb/blob/f372c96d/asterixdb/asterix-app/src/test/resources/runtimets/queries/flwor/ret-04/ret-04.2.update.aql -- diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries/flwor/ret-04/ret-04.2.update.aql b/asterixdb/asterix-app/src/test/resources/runtimets/queries/flwor/ret-04/ret-04.2.update.aql deleted file mode 100644 index 79fa584..000 --- a/asterixdb/asterix-app/src/test/resources/runtimets/queries/flwor/ret-04/ret-04.2.update.aql +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -/* - * Description : Test return clause of the FLWOR expression - * : Tes if expression then expression else expression in the return clause - * Expected Result : Success - * Date : 26th July 2012 - */ - http://git-wip-us.apache.org/repos/asf/asterixdb/blob/f372c96d/asterixdb/asterix-app/src/test/resources/runtimets/queries/flwor/ret-04/ret-04.3.query.aql -- diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries/flwor/ret-04/ret-04.3.query.aql b/asterixdb/asterix-app/src/test/resources/runtimets/queries/flwor/ret-04/ret-04.3.query.aql deleted file mode 100644 index 66973c2..000 --- a/asterixdb/asterix-app/src/test/resources/runtimets/queries/flwor/ret-04/ret-04.3.query.aql +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -/* - * Description : Test return clause of the FLWOR expression - * : Tes if expression then expression else expression in the return clause - * Expected Result : Success - * Date : 26th July 2012 - */ - -let $a := 12345 -return (if($a > 999) then "GREATER" else "LESSER") http://git-wip-us.apache.org/repos/asf/asterixdb/blob/f372c96d/asterixdb/asterix-app/src/test/resources/runtimets/queries/flwor/ret-05/ret-05.1.ddl.aql -- diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries/flwor/ret-05/ret-05.1.ddl.aql b/asterixdb/asterix-app/src/test/resources/runtimets/queries/flwor/ret-05/ret-05.1.ddl.aql deleted file mode 100644 index 6a14faf..000 --- a/asterixdb/asterix-app/src/test/resources/runtimets/queries/flwor/ret-05/ret-05.1.ddl.aql +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -/* - * Description : Test return clause of the FLWOR expression - * : For + Return within return clause - * Expected Result : Succ
[14/51] [partial] asterixdb git commit: [ASTERIXDB-2454] Remove non-unique AQL tests
http://git-wip-us.apache.org/repos/asf/asterixdb/blob/f372c96d/asterixdb/asterix-app/src/test/resources/runtimets/queries/flwor/for19/for19.1.ddl.aql -- diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries/flwor/for19/for19.1.ddl.aql b/asterixdb/asterix-app/src/test/resources/runtimets/queries/flwor/for19/for19.1.ddl.aql deleted file mode 100644 index 06bd87e..000 --- a/asterixdb/asterix-app/src/test/resources/runtimets/queries/flwor/for19/for19.1.ddl.aql +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -/* - * Description : Test for clause of the FLWOR expression - * Expected Result : Success - * Date : 7th July 2012 - */ - http://git-wip-us.apache.org/repos/asf/asterixdb/blob/f372c96d/asterixdb/asterix-app/src/test/resources/runtimets/queries/flwor/for19/for19.2.update.aql -- diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries/flwor/for19/for19.2.update.aql b/asterixdb/asterix-app/src/test/resources/runtimets/queries/flwor/for19/for19.2.update.aql deleted file mode 100644 index 06bd87e..000 --- a/asterixdb/asterix-app/src/test/resources/runtimets/queries/flwor/for19/for19.2.update.aql +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -/* - * Description : Test for clause of the FLWOR expression - * Expected Result : Success - * Date : 7th July 2012 - */ - http://git-wip-us.apache.org/repos/asf/asterixdb/blob/f372c96d/asterixdb/asterix-app/src/test/resources/runtimets/queries/flwor/for19/for19.3.query.aql -- diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries/flwor/for19/for19.3.query.aql b/asterixdb/asterix-app/src/test/resources/runtimets/queries/flwor/for19/for19.3.query.aql deleted file mode 100644 index 54f4b5e..000 --- a/asterixdb/asterix-app/src/test/resources/runtimets/queries/flwor/for19/for19.3.query.aql +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -/* - * Description : Test for clause of the FLWOR expression - * Expected Result : Success - * Date : 7th July 2012 - */ - -for $a in [[1,2,3,4,5,6,7,8,9,0],[11,34,56,78,98,01,12,34,56,76,83]] -where len($a) > 1 -return $a http://git-wip-us.apache.org/repos/asf/asterixdb/blob/f372c96d/asterixdb/asterix-app/src/test/resources/runtimets/queries/flwor/grpby01/grpby01.1.ddl.aql ---
[25/51] [partial] asterixdb git commit: [ASTERIXDB-2454] Remove non-unique AQL tests
http://git-wip-us.apache.org/repos/asf/asterixdb/blob/f372c96d/asterixdb/asterix-app/src/test/resources/runtimets/queries/dml/insert-into-empty-dataset-with-index/insert-into-empty-dataset-with-index.3.query.aql -- diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries/dml/insert-into-empty-dataset-with-index/insert-into-empty-dataset-with-index.3.query.aql b/asterixdb/asterix-app/src/test/resources/runtimets/queries/dml/insert-into-empty-dataset-with-index/insert-into-empty-dataset-with-index.3.query.aql deleted file mode 100644 index db0fe03..000 --- a/asterixdb/asterix-app/src/test/resources/runtimets/queries/dml/insert-into-empty-dataset-with-index/insert-into-empty-dataset-with-index.3.query.aql +++ /dev/null @@ -1,31 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -/* - * Test case Name : insert-into-empty-dataset-with-index.aql - * Description : Check that we can insert into an empty dataset and its empty secondary indexes - * Expected Result : Success - * Date: May 2 2012 - */ - -use dataverse test; - -for $c in dataset('LineID') -where $c.l_suppkey < 100 and $c.l_linenumber<5 -order by $c.l_orderkey, $c.l_linenumber -return $c http://git-wip-us.apache.org/repos/asf/asterixdb/blob/f372c96d/asterixdb/asterix-app/src/test/resources/runtimets/queries/dml/insert-into-empty-dataset/insert-into-empty-dataset.1.ddl.aql -- diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries/dml/insert-into-empty-dataset/insert-into-empty-dataset.1.ddl.aql b/asterixdb/asterix-app/src/test/resources/runtimets/queries/dml/insert-into-empty-dataset/insert-into-empty-dataset.1.ddl.aql deleted file mode 100644 index 4d4cca4..000 --- a/asterixdb/asterix-app/src/test/resources/runtimets/queries/dml/insert-into-empty-dataset/insert-into-empty-dataset.1.ddl.aql +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -/* - * Test case Name : insert-into-empty-dataset.aql - * Description : Check that we can insert into an empty dataset - * Expected Result : Success - * Date: May 2 2012 - */ - -drop dataverse test if exists; -create dataverse test; - -use dataverse test; - -create type LineIDType as closed { - l_orderkey: int64, - l_linenumber: int64, - l_suppkey: int64 -} - -create dataset LineID(LineIDType) - primary key l_orderkey, l_linenumber; - http://git-wip-us.apache.org/repos/asf/asterixdb/blob/f372c96d/asterixdb/asterix-app/src/test/resources/runtimets/queries/dml/insert-into-empty-dataset/insert-into-empty-dataset.2.update.aql -- diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries/dml/insert-into-empty-dataset/insert-into-empty-dataset.2.update.aql b/asterixdb/asterix-app/src/test/resources/runtimets/queries/dml/insert-into-empty-dataset/insert-into-empty-dataset.2.update.aql deleted file mode 100644 index 945ea50..000 --- a/asterixdb/asterix-app/src/test/resources/runtimets/queries/dml/insert-into-empty-dataset/insert-into-empty-dataset.2.update.aql +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work fo
[35/51] [partial] asterixdb git commit: [ASTERIXDB-2454] Remove non-unique AQL tests
http://git-wip-us.apache.org/repos/asf/asterixdb/blob/f372c96d/asterixdb/asterix-app/src/test/resources/runtimets/queries/aggregate/scalar_min_empty/scalar_min_empty.2.update.aql -- diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries/aggregate/scalar_min_empty/scalar_min_empty.2.update.aql b/asterixdb/asterix-app/src/test/resources/runtimets/queries/aggregate/scalar_min_empty/scalar_min_empty.2.update.aql deleted file mode 100644 index 84aa67c..000 --- a/asterixdb/asterix-app/src/test/resources/runtimets/queries/aggregate/scalar_min_empty/scalar_min_empty.2.update.aql +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -/* - * Description: Tests the scalar version of min with an empty list. - * Success: Yes - */ - -// no inserts, deletes here http://git-wip-us.apache.org/repos/asf/asterixdb/blob/f372c96d/asterixdb/asterix-app/src/test/resources/runtimets/queries/aggregate/scalar_min_empty/scalar_min_empty.3.query.aql -- diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries/aggregate/scalar_min_empty/scalar_min_empty.3.query.aql b/asterixdb/asterix-app/src/test/resources/runtimets/queries/aggregate/scalar_min_empty/scalar_min_empty.3.query.aql deleted file mode 100644 index 2444134..000 --- a/asterixdb/asterix-app/src/test/resources/runtimets/queries/aggregate/scalar_min_empty/scalar_min_empty.3.query.aql +++ /dev/null @@ -1,26 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -/* - * Description: Tests the scalar version of min with an empty list. - * Success: Yes - */ - -use dataverse test; - -min([ ]) http://git-wip-us.apache.org/repos/asf/asterixdb/blob/f372c96d/asterixdb/asterix-app/src/test/resources/runtimets/queries/aggregate/scalar_min_null/scalar_min_null.1.ddl.aql -- diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries/aggregate/scalar_min_null/scalar_min_null.1.ddl.aql b/asterixdb/asterix-app/src/test/resources/runtimets/queries/aggregate/scalar_min_null/scalar_min_null.1.ddl.aql deleted file mode 100644 index fb03db0..000 --- a/asterixdb/asterix-app/src/test/resources/runtimets/queries/aggregate/scalar_min_null/scalar_min_null.1.ddl.aql +++ /dev/null @@ -1,26 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -/* - * Description: Tests the scalar version of min with nulls. - * Success: Yes - */ - -drop dataverse test if exists; -create dataverse test;
[26/51] [partial] asterixdb git commit: [ASTERIXDB-2454] Remove non-unique AQL tests
http://git-wip-us.apache.org/repos/asf/asterixdb/blob/f372c96d/asterixdb/asterix-app/src/test/resources/runtimets/queries/dml/delete-from-loaded-dataset-with-index/delete-from-loaded-dataset-with-index.1.ddl.aql -- diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries/dml/delete-from-loaded-dataset-with-index/delete-from-loaded-dataset-with-index.1.ddl.aql b/asterixdb/asterix-app/src/test/resources/runtimets/queries/dml/delete-from-loaded-dataset-with-index/delete-from-loaded-dataset-with-index.1.ddl.aql deleted file mode 100644 index fc8d366..000 --- a/asterixdb/asterix-app/src/test/resources/runtimets/queries/dml/delete-from-loaded-dataset-with-index/delete-from-loaded-dataset-with-index.1.ddl.aql +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -drop dataverse test if exists; -create dataverse test; - -use dataverse test; - -create type LineItemType as closed { - l_orderkey: int64, - l_partkey: int64, - l_suppkey: int64, - l_linenumber: int64, - l_quantity: int64, - l_extendedprice: double, - l_discount: double, - l_tax: double, - l_returnflag: string, - l_linestatus: string, - l_shipdate: string, - l_commitdate: string, - l_receiptdate: string, - l_shipinstruct: string, - l_shipmode: string, - l_comment: string -} - -create dataset LineItem(LineItemType) - primary key l_orderkey, l_linenumber; - http://git-wip-us.apache.org/repos/asf/asterixdb/blob/f372c96d/asterixdb/asterix-app/src/test/resources/runtimets/queries/dml/delete-from-loaded-dataset-with-index/delete-from-loaded-dataset-with-index.2.update.aql -- diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries/dml/delete-from-loaded-dataset-with-index/delete-from-loaded-dataset-with-index.2.update.aql b/asterixdb/asterix-app/src/test/resources/runtimets/queries/dml/delete-from-loaded-dataset-with-index/delete-from-loaded-dataset-with-index.2.update.aql deleted file mode 100644 index 7884380..000 --- a/asterixdb/asterix-app/src/test/resources/runtimets/queries/dml/delete-from-loaded-dataset-with-index/delete-from-loaded-dataset-with-index.2.update.aql +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -use dataverse test; - -load dataset LineItem -using localfs -(("path"="asterix_nc1://data/tpch0.001/lineitem.tbl"),("format"="delimited-text"),("delimiter"="|")) pre-sorted; - http://git-wip-us.apache.org/repos/asf/asterixdb/blob/f372c96d/asterixdb/asterix-app/src/test/resources/runtimets/queries/dml/delete-from-loaded-dataset-with-index/delete-from-loaded-dataset-with-index.3.ddl.aql -- diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries/dml/delete-from-loaded-dataset-with-index/delete-from-loaded-dataset-with-index.3.ddl.aql b/asterixdb/asterix-app/src/test/resources/runtimets/queries/dml/delete-from-loaded-dataset-with-index/delete-from-loaded-dataset-with-index.3.ddl.aql deleted file mode 100644 index 4b88cc7..000 --- a/asterixdb/asterix-app/src/test/resources/runtimets/queries/dml/delete-from-loaded-dataset-with-index/delete-from-loaded-dataset-with-index.3.ddl.aql +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * o
[15/51] [partial] asterixdb git commit: [ASTERIXDB-2454] Remove non-unique AQL tests
http://git-wip-us.apache.org/repos/asf/asterixdb/blob/f372c96d/asterixdb/asterix-app/src/test/resources/runtimets/queries/flwor/at06/at06.3.query.aql -- diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries/flwor/at06/at06.3.query.aql b/asterixdb/asterix-app/src/test/resources/runtimets/queries/flwor/at06/at06.3.query.aql deleted file mode 100644 index ecac052..000 --- a/asterixdb/asterix-app/src/test/resources/runtimets/queries/flwor/at06/at06.3.query.aql +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -/* - * Description : Test for clause of the position variable in FLWOR expression - * Expected Result : Success - * Date : 09/17/2013 - */ - -use dataverse test; - -for $i in dataset LineItem -group by $partkey := $i.l_partkey with $i -for $j at $p in (for $ii in $i order by $ii.l_shipdate, $ii.l_orderkey return $ii) -where $p < 4 -order by $partkey, $j.l_shipdate, $j.l_orderkey -return { "partkey": $partkey, "pid": $p, "shipdate": $j.l_shipdate, "orderkey": $j.l_orderkey } http://git-wip-us.apache.org/repos/asf/asterixdb/blob/f372c96d/asterixdb/asterix-app/src/test/resources/runtimets/queries/flwor/for01/for01.1.ddl.aql -- diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries/flwor/for01/for01.1.ddl.aql b/asterixdb/asterix-app/src/test/resources/runtimets/queries/flwor/for01/for01.1.ddl.aql deleted file mode 100644 index a0253ad..000 --- a/asterixdb/asterix-app/src/test/resources/runtimets/queries/flwor/for01/for01.1.ddl.aql +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -/* - * Description : Test for clause of the FLWOR expression - * Expected Result : Success - * Date : 23rd July 2012 - */ - http://git-wip-us.apache.org/repos/asf/asterixdb/blob/f372c96d/asterixdb/asterix-app/src/test/resources/runtimets/queries/flwor/for01/for01.2.update.aql -- diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries/flwor/for01/for01.2.update.aql b/asterixdb/asterix-app/src/test/resources/runtimets/queries/flwor/for01/for01.2.update.aql deleted file mode 100644 index a0253ad..000 --- a/asterixdb/asterix-app/src/test/resources/runtimets/queries/flwor/for01/for01.2.update.aql +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -/* - * Description : Test for clause of the FLWOR expression - * Expected Result : Success
[16/51] [partial] asterixdb git commit: [ASTERIXDB-2454] Remove non-unique AQL tests
http://git-wip-us.apache.org/repos/asf/asterixdb/blob/f372c96d/asterixdb/asterix-app/src/test/resources/runtimets/queries/filters/load-with-secondary-rtree/load-with-secondary-rtree.2.update.aql -- diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries/filters/load-with-secondary-rtree/load-with-secondary-rtree.2.update.aql b/asterixdb/asterix-app/src/test/resources/runtimets/queries/filters/load-with-secondary-rtree/load-with-secondary-rtree.2.update.aql deleted file mode 100644 index 28a0eb8..000 --- a/asterixdb/asterix-app/src/test/resources/runtimets/queries/filters/load-with-secondary-rtree/load-with-secondary-rtree.2.update.aql +++ /dev/null @@ -1,22 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -use dataverse test; - -load dataset FacebookMessages using localfs -(("path"="asterix_nc1://data/fbm-with-send-time.adm"),("format"="adm")); http://git-wip-us.apache.org/repos/asf/asterixdb/blob/f372c96d/asterixdb/asterix-app/src/test/resources/runtimets/queries/filters/load-with-secondary-rtree/load-with-secondary-rtree.3.ddl.aql -- diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries/filters/load-with-secondary-rtree/load-with-secondary-rtree.3.ddl.aql b/asterixdb/asterix-app/src/test/resources/runtimets/queries/filters/load-with-secondary-rtree/load-with-secondary-rtree.3.ddl.aql deleted file mode 100644 index 7d5adf7..000 --- a/asterixdb/asterix-app/src/test/resources/runtimets/queries/filters/load-with-secondary-rtree/load-with-secondary-rtree.3.ddl.aql +++ /dev/null @@ -1,21 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -use dataverse test; - -create index fbSenderLocIndex on FacebookMessages(sender-location) type rtree; http://git-wip-us.apache.org/repos/asf/asterixdb/blob/f372c96d/asterixdb/asterix-app/src/test/resources/runtimets/queries/filters/load-with-secondary-rtree/load-with-secondary-rtree.4.update.aql -- diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries/filters/load-with-secondary-rtree/load-with-secondary-rtree.4.update.aql b/asterixdb/asterix-app/src/test/resources/runtimets/queries/filters/load-with-secondary-rtree/load-with-secondary-rtree.4.update.aql deleted file mode 100644 index 042f3ce..000 --- a/asterixdb/asterix-app/src/test/resources/runtimets/queries/filters/load-with-secondary-rtree/load-with-secondary-rtree.4.update.aql +++ /dev/null @@ -1,18 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the Li
[22/51] [partial] asterixdb git commit: [ASTERIXDB-2454] Remove non-unique AQL tests
http://git-wip-us.apache.org/repos/asf/asterixdb/blob/f372c96d/asterixdb/asterix-app/src/test/resources/runtimets/queries/dml/query-issue382/query-issue382.1.ddl.aql -- diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries/dml/query-issue382/query-issue382.1.ddl.aql b/asterixdb/asterix-app/src/test/resources/runtimets/queries/dml/query-issue382/query-issue382.1.ddl.aql deleted file mode 100644 index 4568a83..000 --- a/asterixdb/asterix-app/src/test/resources/runtimets/queries/dml/query-issue382/query-issue382.1.ddl.aql +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -drop dataverse SocialNetworkData if exists; -create dataverse SocialNetworkData; - -use dataverse SocialNetworkData; - -create type EmploymentType as closed { -organization-name: string, -start-date: date, -end-date: date? -} - -create type FacebookUserType as closed { -id: int64, -id-copy: int64, -alias: string, -name: string, -user-since: datetime, -user-since-copy: datetime, -friend-ids: {{ int64 }}, -employment: [EmploymentType] -} - -create dataset FacebookUsers(FacebookUserType) -primary key id; - -create dataset HandbookUsers(FacebookUserType) -primary key id; http://git-wip-us.apache.org/repos/asf/asterixdb/blob/f372c96d/asterixdb/asterix-app/src/test/resources/runtimets/queries/dml/query-issue382/query-issue382.2.update.aql -- diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries/dml/query-issue382/query-issue382.2.update.aql b/asterixdb/asterix-app/src/test/resources/runtimets/queries/dml/query-issue382/query-issue382.2.update.aql deleted file mode 100644 index d901204..000 --- a/asterixdb/asterix-app/src/test/resources/runtimets/queries/dml/query-issue382/query-issue382.2.update.aql +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -use dataverse SocialNetworkData; - -load dataset FacebookUsers using localfs -(("path"="asterix_nc1://data/fbu-dml-insert-shuffled.adm"),("format"="adm")); - -insert into dataset HandbookUsers ( -for $x in dataset FacebookUsers -where $x.id < 10307032 -return $x -) http://git-wip-us.apache.org/repos/asf/asterixdb/blob/f372c96d/asterixdb/asterix-app/src/test/resources/runtimets/queries/dml/query-issue382/query-issue382.3.query.aql -- diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries/dml/query-issue382/query-issue382.3.query.aql b/asterixdb/asterix-app/src/test/resources/runtimets/queries/dml/query-issue382/query-issue382.3.query.aql deleted file mode 100644 index 34bcbae..000 --- a/asterixdb/asterix-app/src/test/resources/runtimets/queries/dml/query-issue382/query-issue382.3.query.aql +++ /dev/null @@ -1,21 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or ag
[17/51] [partial] asterixdb git commit: [ASTERIXDB-2454] Remove non-unique AQL tests
http://git-wip-us.apache.org/repos/asf/asterixdb/blob/f372c96d/asterixdb/asterix-app/src/test/resources/runtimets/queries/filters/insert-with-correlated-secondary-btree/insert-with-correlated-secondary-btree.3.ddl.aql -- diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries/filters/insert-with-correlated-secondary-btree/insert-with-correlated-secondary-btree.3.ddl.aql b/asterixdb/asterix-app/src/test/resources/runtimets/queries/filters/insert-with-correlated-secondary-btree/insert-with-correlated-secondary-btree.3.ddl.aql deleted file mode 100644 index 1bfb269..000 --- a/asterixdb/asterix-app/src/test/resources/runtimets/queries/filters/insert-with-correlated-secondary-btree/insert-with-correlated-secondary-btree.3.ddl.aql +++ /dev/null @@ -1,21 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -use dataverse test; - -create index fbAuthorIdx on FacebookMessages2(author-id) type btree; http://git-wip-us.apache.org/repos/asf/asterixdb/blob/f372c96d/asterixdb/asterix-app/src/test/resources/runtimets/queries/filters/insert-with-correlated-secondary-btree/insert-with-correlated-secondary-btree.4.query.aql -- diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries/filters/insert-with-correlated-secondary-btree/insert-with-correlated-secondary-btree.4.query.aql b/asterixdb/asterix-app/src/test/resources/runtimets/queries/filters/insert-with-correlated-secondary-btree/insert-with-correlated-secondary-btree.4.query.aql deleted file mode 100644 index df3092c..000 --- a/asterixdb/asterix-app/src/test/resources/runtimets/queries/filters/insert-with-correlated-secondary-btree/insert-with-correlated-secondary-btree.4.query.aql +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -use dataverse test; - -for $m in dataset('FacebookMessages2') -where $m.author-id = 1 -and $m.send-time > datetime("2012-08-20T10:10:00") -and $m.send-time < datetime("2012-11-20T10:10:00") -return $m http://git-wip-us.apache.org/repos/asf/asterixdb/blob/f372c96d/asterixdb/asterix-app/src/test/resources/runtimets/queries/filters/insert-with-secondary-btree/insert-with-secondary-btree.1.ddl.aql -- diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries/filters/insert-with-secondary-btree/insert-with-secondary-btree.1.ddl.aql b/asterixdb/asterix-app/src/test/resources/runtimets/queries/filters/insert-with-secondary-btree/insert-with-secondary-btree.1.ddl.aql deleted file mode 100644 index eb2db2c..000 --- a/asterixdb/asterix-app/src/test/resources/runtimets/queries/filters/insert-with-secondary-btree/insert-with-secondary-btree.1.ddl.aql +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - *
[21/51] [partial] asterixdb git commit: [ASTERIXDB-2454] Remove non-unique AQL tests
http://git-wip-us.apache.org/repos/asf/asterixdb/blob/f372c96d/asterixdb/asterix-app/src/test/resources/runtimets/queries/dml/scan-delete-inverted-index-word-secondary-index-nullable/scan-delete-inverted-index-word-secondary-index-nullable.3.ddl.aql -- diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries/dml/scan-delete-inverted-index-word-secondary-index-nullable/scan-delete-inverted-index-word-secondary-index-nullable.3.ddl.aql b/asterixdb/asterix-app/src/test/resources/runtimets/queries/dml/scan-delete-inverted-index-word-secondary-index-nullable/scan-delete-inverted-index-word-secondary-index-nullable.3.ddl.aql deleted file mode 100644 index 880114c..000 --- a/asterixdb/asterix-app/src/test/resources/runtimets/queries/dml/scan-delete-inverted-index-word-secondary-index-nullable/scan-delete-inverted-index-word-secondary-index-nullable.3.ddl.aql +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -/* - * Test case Name : scan-delete-inverted-index-word-secondary-index-nullable.aql - * Description : This test is intended to test deletion from secondary keyword inverted index that are built on nullable fields. - * Expected Result : Success - * Date: March 31 2013 - */ - -use dataverse test; - -create index keyword_index on DBLP(title) type keyword; http://git-wip-us.apache.org/repos/asf/asterixdb/blob/f372c96d/asterixdb/asterix-app/src/test/resources/runtimets/queries/dml/scan-delete-inverted-index-word-secondary-index-nullable/scan-delete-inverted-index-word-secondary-index-nullable.4.update.aql -- diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries/dml/scan-delete-inverted-index-word-secondary-index-nullable/scan-delete-inverted-index-word-secondary-index-nullable.4.update.aql b/asterixdb/asterix-app/src/test/resources/runtimets/queries/dml/scan-delete-inverted-index-word-secondary-index-nullable/scan-delete-inverted-index-word-secondary-index-nullable.4.update.aql deleted file mode 100644 index 7008678..000 --- a/asterixdb/asterix-app/src/test/resources/runtimets/queries/dml/scan-delete-inverted-index-word-secondary-index-nullable/scan-delete-inverted-index-word-secondary-index-nullable.4.update.aql +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -/* - * Test case Name : scan-delete-inverted-index-word-secondary-index-nullable.aql - * Description : This test is intended to test deletion from secondary keyword inverted index that are built on nullable fields. - * Expected Result : Success - * Date: March 31 2013 - */ - -use dataverse test; - -delete $o from dataset DBLP where $o.id<50; http://git-wip-us.apache.org/repos/asf/asterixdb/blob/f372c96d/asterixdb/asterix-app/src/test/resources/runtimets/queries/dml/scan-delete-inverted-index-word-secondary-index-nullable/scan-delete-inverted-index-word-secondary-index-nullable.5.query.aql -- diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries/dml/scan-delete-inverted-index-word-secondary-index-nullable/scan-delete-inverted-index-word-secondary-index-nullable.5.query.aql b/asterixdb/asterix-app/src/test/resources/runtimets/queries/dml/scan-delete-inverted-inde
[20/51] [partial] asterixdb git commit: [ASTERIXDB-2454] Remove non-unique AQL tests
http://git-wip-us.apache.org/repos/asf/asterixdb/blob/f372c96d/asterixdb/asterix-app/src/test/resources/runtimets/queries/dml/scan-insert-btree-secondary-index-open/scan-insert-btree-secondary-index-open.1.ddl.aql -- diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries/dml/scan-insert-btree-secondary-index-open/scan-insert-btree-secondary-index-open.1.ddl.aql b/asterixdb/asterix-app/src/test/resources/runtimets/queries/dml/scan-insert-btree-secondary-index-open/scan-insert-btree-secondary-index-open.1.ddl.aql deleted file mode 100644 index 9971012..000 --- a/asterixdb/asterix-app/src/test/resources/runtimets/queries/dml/scan-insert-btree-secondary-index-open/scan-insert-btree-secondary-index-open.1.ddl.aql +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -/* - * Test case Name : scan-delete-btree-secondary-index-open.aql - * Description : This test is intended to test insertion into secondary btree indexes that are built on open fields - * Expected Result : Success - * Date: Feb 13 2014 - */ - -drop dataverse test if exists; -create dataverse test; - -use dataverse test; - -create type AddressType as closed { - number: int64, - street: string, - city: string -} - -create type CustomerType as closed { - cid: int64, - name: string, - age: int64?, - address: AddressType?, - interests: {{string}}, - children: [ { name: string, age: int64? } ] -} - -create type CustomerOpenType as open { - cid: int64, - name: string, - address: AddressType?, - interests: {{string}}, - children: [ { name: string, age: int64? } ] -} - -create dataset Customers(CustomerType) primary key cid; -create dataset CustomersOpen(CustomerOpenType) primary key cid; - http://git-wip-us.apache.org/repos/asf/asterixdb/blob/f372c96d/asterixdb/asterix-app/src/test/resources/runtimets/queries/dml/scan-insert-btree-secondary-index-open/scan-insert-btree-secondary-index-open.2.update.aql -- diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries/dml/scan-insert-btree-secondary-index-open/scan-insert-btree-secondary-index-open.2.update.aql b/asterixdb/asterix-app/src/test/resources/runtimets/queries/dml/scan-insert-btree-secondary-index-open/scan-insert-btree-secondary-index-open.2.update.aql deleted file mode 100644 index d3ee132..000 --- a/asterixdb/asterix-app/src/test/resources/runtimets/queries/dml/scan-insert-btree-secondary-index-open/scan-insert-btree-secondary-index-open.2.update.aql +++ /dev/null @@ -1,30 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -/* - * Test case Name : scan-delete-btree-secondary-index-open.aql - * Description : This test is intended to test insertion into secondary btree indexes that are built on open fields - * Expected Result : Success - * Date: Feb 13 2014 - */ - -use dataverse test; - -load dataset Customers -using localfs -(("path"="asterix_nc1://data/semistructured/co1k/customer.adm"),("format"="adm")); http://git-wip-us.apache.org/repos/asf/asterixdb/blob/f372c96d/asterixdb/asterix-app/src/test/resources/runtimets/queries/dml/scan-insert-btree-secondary-index-open/scan-insert-btree-secondary-index-open.3.ddl.aql -- diff --git a/asterixdb/aste
[12/51] [partial] asterixdb git commit: [ASTERIXDB-2454] Remove non-unique AQL tests
http://git-wip-us.apache.org/repos/asf/asterixdb/blob/f372c96d/asterixdb/asterix-app/src/test/resources/runtimets/queries/flwor/order-by-02/order-by-02.1.ddl.aql -- diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries/flwor/order-by-02/order-by-02.1.ddl.aql b/asterixdb/asterix-app/src/test/resources/runtimets/queries/flwor/order-by-02/order-by-02.1.ddl.aql deleted file mode 100644 index cbef10a..000 --- a/asterixdb/asterix-app/src/test/resources/runtimets/queries/flwor/order-by-02/order-by-02.1.ddl.aql +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -/* - * Description : Test order by clause of FLWOR - * Expected Result : Success - * Date: 24th July 2012 - */ - http://git-wip-us.apache.org/repos/asf/asterixdb/blob/f372c96d/asterixdb/asterix-app/src/test/resources/runtimets/queries/flwor/order-by-02/order-by-02.2.update.aql -- diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries/flwor/order-by-02/order-by-02.2.update.aql b/asterixdb/asterix-app/src/test/resources/runtimets/queries/flwor/order-by-02/order-by-02.2.update.aql deleted file mode 100644 index cbef10a..000 --- a/asterixdb/asterix-app/src/test/resources/runtimets/queries/flwor/order-by-02/order-by-02.2.update.aql +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -/* - * Description : Test order by clause of FLWOR - * Expected Result : Success - * Date: 24th July 2012 - */ - http://git-wip-us.apache.org/repos/asf/asterixdb/blob/f372c96d/asterixdb/asterix-app/src/test/resources/runtimets/queries/flwor/order-by-02/order-by-02.3.query.aql -- diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries/flwor/order-by-02/order-by-02.3.query.aql b/asterixdb/asterix-app/src/test/resources/runtimets/queries/flwor/order-by-02/order-by-02.3.query.aql deleted file mode 100644 index d0be13e..000 --- a/asterixdb/asterix-app/src/test/resources/runtimets/queries/flwor/order-by-02/order-by-02.3.query.aql +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -/* - * Description : Test order by clause of FLWOR - * Expected Result : Success - * Date: 24th July 2012 - */ - -for $a in ["two","four","six","eight","ten","twenty","undo"] -order by $a asc -return $a http://git-wip-us.apache.org/repos/asf/asterixdb/blob/f372c96d/asterixdb/asterix-app/src/test/resources/runtimets/qu
[45/51] [partial] asterixdb git commit: [ASTERIXDB-2454] Remove non-unique AQL tests
http://git-wip-us.apache.org/repos/asf/asterixdb/blob/f372c96d/asterixdb/asterix-app/src/test/resources/optimizerts/queries/nested-open-index/rtree-index-join/leftouterjoin-probe-pidx-with-join-rtree-sidx_02.aql -- diff --git a/asterixdb/asterix-app/src/test/resources/optimizerts/queries/nested-open-index/rtree-index-join/leftouterjoin-probe-pidx-with-join-rtree-sidx_02.aql b/asterixdb/asterix-app/src/test/resources/optimizerts/queries/nested-open-index/rtree-index-join/leftouterjoin-probe-pidx-with-join-rtree-sidx_02.aql deleted file mode 100644 index 8499c9a..000 --- a/asterixdb/asterix-app/src/test/resources/optimizerts/queries/nested-open-index/rtree-index-join/leftouterjoin-probe-pidx-with-join-rtree-sidx_02.aql +++ /dev/null @@ -1,74 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -/* - * Description : Test that left-outer-join may use two available indexes, one for primary index in prob subtree and another for secondary rtree index in index subtree. - * Issue: 730, 741 - * Expected Res : Success - * Date : 8th May 2014 - */ - -drop dataverse test if exists; -create dataverse test; -use dataverse test; - -create type TwitterUserType as closed { -screen-name: string, -lang: string, -friends-count: int32, -statuses-count: int32, -name: string, -followers-count: int32 -} - -create type TweetMessageNestedType as open { -tweetid: int64, -user: TwitterUserType, -send-time: datetime, -referred-topics: {{ string }}, -message-text: string, -countA: int32, -countB: int32 -} - -create type TweetMessageType as open { -nested: TweetMessageNestedType -} - -create dataset TweetMessages(TweetMessageType) -primary key nested.tweetid; - -create index twmSndLocIx on TweetMessages(nested.sender-location: point?) type rtree enforced; -create index msgCountAIx on TweetMessages(nested.countA) type btree; -create index msgCountBIx on TweetMessages(nested.countB) type btree; -create index msgTextIx on TweetMessages(nested.message-text) type keyword; - -write output to asterix_nc1:"rttest/rtree-index-join_leftouterjoin-probe-pidx-with-join-rtree-sidx_02.adm"; - -for $t1 in dataset('TweetMessages') -let $n := create-circle($t1.nested.sender-location, 0.5) -where $t1.nested.tweetid < int64("10") -order by $t1.nested.tweetid -return { -"tweetid1": $t1.nested.tweetid, -"loc1":$t1.nested.sender-location, -"nearby-message": for $t2 in dataset('TweetMessages') - where spatial-intersect($t2.nested.sender-location, $n) and $t1.nested.tweetid != $t2.nested.tweetid - order by $t2.nested.tweetid - return {"tweetid2":$t2.nested.tweetid, "loc2":$t2.nested.sender-location} -}; http://git-wip-us.apache.org/repos/asf/asterixdb/blob/f372c96d/asterixdb/asterix-app/src/test/resources/optimizerts/queries/nested-open-index/rtree-index-join/spatial-intersect-point_02.aql -- diff --git a/asterixdb/asterix-app/src/test/resources/optimizerts/queries/nested-open-index/rtree-index-join/spatial-intersect-point_02.aql b/asterixdb/asterix-app/src/test/resources/optimizerts/queries/nested-open-index/rtree-index-join/spatial-intersect-point_02.aql deleted file mode 100644 index bed6626..000 --- a/asterixdb/asterix-app/src/test/resources/optimizerts/queries/nested-open-index/rtree-index-join/spatial-intersect-point_02.aql +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS"
[46/51] [partial] asterixdb git commit: [ASTERIXDB-2454] Remove non-unique AQL tests
http://git-wip-us.apache.org/repos/asf/asterixdb/blob/f372c96d/asterixdb/asterix-app/src/test/resources/optimizerts/queries/nested-open-index/inverted-index-complex/word-jaccard-check-let.aql -- diff --git a/asterixdb/asterix-app/src/test/resources/optimizerts/queries/nested-open-index/inverted-index-complex/word-jaccard-check-let.aql b/asterixdb/asterix-app/src/test/resources/optimizerts/queries/nested-open-index/inverted-index-complex/word-jaccard-check-let.aql deleted file mode 100644 index 82b1cd5..000 --- a/asterixdb/asterix-app/src/test/resources/optimizerts/queries/nested-open-index/inverted-index-complex/word-jaccard-check-let.aql +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -/* - * Description: Tests whether a keyword index is applied to optimize a selection query using the similarity-jaccard-check function on word tokens. - * Tests that the optimizer rule correctly drills through the let clauses. - * The index should be applied. - * Success: Yes - */ - -drop dataverse test if exists; -create dataverse test; -use dataverse test; - -create type DBLPTypetmp as open { - id: int32, - dblpid: string, - authors: string, - misc: string -} - -create type DBLPType as closed { - nested : DBLPTypetmp -} - -create dataset DBLP(DBLPType) primary key nested.id; - -create index keyword_index on DBLP(nested.title: string?) type keyword enforced; - -write output to asterix_nc1:"rttest/inverted-index-complex_word-jaccard-check-let.adm"; - -for $o in dataset('DBLP') -let $jacc := similarity-jaccard-check(word-tokens($o.nested.title), word-tokens("Transactions for Cooperative Environments"), 0.5f) -where $jacc[0] -return $o - http://git-wip-us.apache.org/repos/asf/asterixdb/blob/f372c96d/asterixdb/asterix-app/src/test/resources/optimizerts/queries/nested-open-index/inverted-index-complex/word-jaccard-check-multi-let.aql -- diff --git a/asterixdb/asterix-app/src/test/resources/optimizerts/queries/nested-open-index/inverted-index-complex/word-jaccard-check-multi-let.aql b/asterixdb/asterix-app/src/test/resources/optimizerts/queries/nested-open-index/inverted-index-complex/word-jaccard-check-multi-let.aql deleted file mode 100644 index 26b42ed..000 --- a/asterixdb/asterix-app/src/test/resources/optimizerts/queries/nested-open-index/inverted-index-complex/word-jaccard-check-multi-let.aql +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -/* - * Description: Tests whether a keyword index is applied to optimize a selection query using the similarity-jaccard-check function on word tokens. - * Tests that the optimizer rule correctly drills through the let clauses. - * The index should be applied. - * Success: Yes - */ - -drop dataverse test if exists; -create dataverse test; -use dataverse test; - -create type DBLPTypetmp as open { - id: int32, - dblpid: string, - authors: string, - misc: string -} - -create type DBLPType as closed { - nested : DBLPTypetmp -} - -create dataset DBLP(DBLPType) primary key nested.id; - -create index keyword_index on DBLP(nested.title: string?) type keyword enforced; - -write output to asterix_nc1:"rttest/inverted-index-complex_word-jaccard-check-mu
[42/51] [partial] asterixdb git commit: [ASTERIXDB-2454] Remove non-unique AQL tests
http://git-wip-us.apache.org/repos/asf/asterixdb/blob/f372c96d/asterixdb/asterix-app/src/test/resources/runtimets/queries/aggregate-sql/avg_int16/avg_int16.2.update.aql -- diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries/aggregate-sql/avg_int16/avg_int16.2.update.aql b/asterixdb/asterix-app/src/test/resources/runtimets/queries/aggregate-sql/avg_int16/avg_int16.2.update.aql deleted file mode 100644 index bd244d0..000 --- a/asterixdb/asterix-app/src/test/resources/runtimets/queries/aggregate-sql/avg_int16/avg_int16.2.update.aql +++ /dev/null @@ -1,19 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - http://git-wip-us.apache.org/repos/asf/asterixdb/blob/f372c96d/asterixdb/asterix-app/src/test/resources/runtimets/queries/aggregate-sql/avg_int16/avg_int16.3.query.aql -- diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries/aggregate-sql/avg_int16/avg_int16.3.query.aql b/asterixdb/asterix-app/src/test/resources/runtimets/queries/aggregate-sql/avg_int16/avg_int16.3.query.aql deleted file mode 100644 index 4c6b4d9..000 --- a/asterixdb/asterix-app/src/test/resources/runtimets/queries/aggregate-sql/avg_int16/avg_int16.3.query.aql +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -use dataverse test; - -sql-avg( - for $x in [int16("1"), int16("2"), int16("3")] - return $x -) http://git-wip-us.apache.org/repos/asf/asterixdb/blob/f372c96d/asterixdb/asterix-app/src/test/resources/runtimets/queries/aggregate-sql/avg_int16_null/avg_int16_null.1.ddl.aql -- diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries/aggregate-sql/avg_int16_null/avg_int16_null.1.ddl.aql b/asterixdb/asterix-app/src/test/resources/runtimets/queries/aggregate-sql/avg_int16_null/avg_int16_null.1.ddl.aql deleted file mode 100644 index 4a5e620..000 --- a/asterixdb/asterix-app/src/test/resources/runtimets/queries/aggregate-sql/avg_int16_null/avg_int16_null.1.ddl.aql +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -drop dataverse test if exists; - -create dataverse test; - -use dataverse test; - -create type NumericType as open { - id: int64, - int8Field: int8?, - int16Field: int16?, - int32Field: int32?, - int64Field: int64?, - floatField: float?, - doubleField: double? -} - -create external dataset Numeric(NumericType) -using localfs -(("path"="asterix_nc1://data/nontagged/numericData.json"),("format"="adm
[43/51] [partial] asterixdb git commit: [ASTERIXDB-2454] Remove non-unique AQL tests
http://git-wip-us.apache.org/repos/asf/asterixdb/blob/f372c96d/asterixdb/asterix-app/src/test/resources/optimizerts/queries/open-index-enforced/inverted-index-join/word-fuzzyeq-jaccard_03.aql -- diff --git a/asterixdb/asterix-app/src/test/resources/optimizerts/queries/open-index-enforced/inverted-index-join/word-fuzzyeq-jaccard_03.aql b/asterixdb/asterix-app/src/test/resources/optimizerts/queries/open-index-enforced/inverted-index-join/word-fuzzyeq-jaccard_03.aql deleted file mode 100644 index 9cccbf0..000 --- a/asterixdb/asterix-app/src/test/resources/optimizerts/queries/open-index-enforced/inverted-index-join/word-fuzzyeq-jaccard_03.aql +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -/* - * Description: Fuzzy self joins a dataset, DBLP, based on ~= using Jaccard of its titles' word tokens. - * DBLP has an enforced open keyword index on title?, and we expect the join to be transformed into an indexed nested-loop join. - * Success: Yes - */ - -drop dataverse test if exists; -create dataverse test; -use dataverse test; - -create type DBLPType as open { - id: int32, - dblpid: string, - authors: string, - misc: string -} - -create dataset DBLP(DBLPType) primary key id; - -create index keyword_index on DBLP(title:string?) type keyword enforced; - -write output to asterix_nc1:"rttest/inverted-index-join_word-fuzzyeq-jaccard_03.adm"; - -set simfunction 'jaccard'; -set simthreshold '0.5f'; - -for $a in dataset('DBLP') -for $b in dataset('DBLP') -where word-tokens($a.title) ~= word-tokens($b.title) and $a.id < $b.id -return {"arec": $a, "brec": $b } http://git-wip-us.apache.org/repos/asf/asterixdb/blob/f372c96d/asterixdb/asterix-app/src/test/resources/optimizerts/queries/open-index-enforced/inverted-index-join/word-jaccard-check-after-btree-access.aql -- diff --git a/asterixdb/asterix-app/src/test/resources/optimizerts/queries/open-index-enforced/inverted-index-join/word-jaccard-check-after-btree-access.aql b/asterixdb/asterix-app/src/test/resources/optimizerts/queries/open-index-enforced/inverted-index-join/word-jaccard-check-after-btree-access.aql deleted file mode 100644 index d090e0b..000 --- a/asterixdb/asterix-app/src/test/resources/optimizerts/queries/open-index-enforced/inverted-index-join/word-jaccard-check-after-btree-access.aql +++ /dev/null @@ -1,68 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -/* - * Description: Fuzzy self joins a dataset, TweetMessages, based on the similarity-jaccard-check function of its text-messages' word tokens. - * TweetMessages has a keyword index on text-message and btree index on the primary key tweetid, and we expect the join to be - *transformed into btree and inverted indexed nested-loop joins. We test whether the join condition can be transformed into - *multiple indexed nested loop joins of various type of indexes. - * Success: Yes - */ - -drop dataverse test if exists; -create dataverse test; -use dataverse test; - -create type TwitterUserType as closed { -screen-name: string, -lang: string, -friends-count: int32, -statuses-count: int32, -name: string, -followers-count: int32 -} - -create type TweetMessageType as open {
[38/51] [partial] asterixdb git commit: [ASTERIXDB-2454] Remove non-unique AQL tests
http://git-wip-us.apache.org/repos/asf/asterixdb/blob/f372c96d/asterixdb/asterix-app/src/test/resources/runtimets/queries/aggregate/avg_int16/avg_int16.1.ddl.aql -- diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries/aggregate/avg_int16/avg_int16.1.ddl.aql b/asterixdb/asterix-app/src/test/resources/runtimets/queries/aggregate/avg_int16/avg_int16.1.ddl.aql deleted file mode 100644 index 950d2b4..000 --- a/asterixdb/asterix-app/src/test/resources/runtimets/queries/aggregate/avg_int16/avg_int16.1.ddl.aql +++ /dev/null @@ -1,22 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -drop dataverse test if exists; - -create dataverse test; - http://git-wip-us.apache.org/repos/asf/asterixdb/blob/f372c96d/asterixdb/asterix-app/src/test/resources/runtimets/queries/aggregate/avg_int16/avg_int16.2.update.aql -- diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries/aggregate/avg_int16/avg_int16.2.update.aql b/asterixdb/asterix-app/src/test/resources/runtimets/queries/aggregate/avg_int16/avg_int16.2.update.aql deleted file mode 100644 index bd244d0..000 --- a/asterixdb/asterix-app/src/test/resources/runtimets/queries/aggregate/avg_int16/avg_int16.2.update.aql +++ /dev/null @@ -1,19 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - http://git-wip-us.apache.org/repos/asf/asterixdb/blob/f372c96d/asterixdb/asterix-app/src/test/resources/runtimets/queries/aggregate/avg_int16/avg_int16.3.query.aql -- diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries/aggregate/avg_int16/avg_int16.3.query.aql b/asterixdb/asterix-app/src/test/resources/runtimets/queries/aggregate/avg_int16/avg_int16.3.query.aql deleted file mode 100644 index 8ee7817..000 --- a/asterixdb/asterix-app/src/test/resources/runtimets/queries/aggregate/avg_int16/avg_int16.3.query.aql +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -use dataverse test; - -avg( - for $x in [int16("1"), int16("2"), int16("3")] - return $x -) http://git-wip-us.apache.org/repos/asf/asterixdb/blob/f372c96d/asterixdb/asterix-app/src/test/resources/runtimets/queries/aggregate/avg_int16_null/avg_int16_null.1.ddl.aql -- diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries/aggregate/avg_int16_null/avg_int16_null.1.ddl.aql b/asterixdb/asterix-app/src/test/resources/runtimets/queries/aggregate/
[39/51] [partial] asterixdb git commit: [ASTERIXDB-2454] Remove non-unique AQL tests
http://git-wip-us.apache.org/repos/asf/asterixdb/blob/f372c96d/asterixdb/asterix-app/src/test/resources/runtimets/queries/aggregate-sql/sum_int64_null/sum_int64_null.1.ddl.aql -- diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries/aggregate-sql/sum_int64_null/sum_int64_null.1.ddl.aql b/asterixdb/asterix-app/src/test/resources/runtimets/queries/aggregate-sql/sum_int64_null/sum_int64_null.1.ddl.aql deleted file mode 100644 index 4a5e620..000 --- a/asterixdb/asterix-app/src/test/resources/runtimets/queries/aggregate-sql/sum_int64_null/sum_int64_null.1.ddl.aql +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -drop dataverse test if exists; - -create dataverse test; - -use dataverse test; - -create type NumericType as open { - id: int64, - int8Field: int8?, - int16Field: int16?, - int32Field: int32?, - int64Field: int64?, - floatField: float?, - doubleField: double? -} - -create external dataset Numeric(NumericType) -using localfs -(("path"="asterix_nc1://data/nontagged/numericData.json"),("format"="adm")); - http://git-wip-us.apache.org/repos/asf/asterixdb/blob/f372c96d/asterixdb/asterix-app/src/test/resources/runtimets/queries/aggregate-sql/sum_int64_null/sum_int64_null.2.update.aql -- diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries/aggregate-sql/sum_int64_null/sum_int64_null.2.update.aql b/asterixdb/asterix-app/src/test/resources/runtimets/queries/aggregate-sql/sum_int64_null/sum_int64_null.2.update.aql deleted file mode 100644 index 3afef07..000 --- a/asterixdb/asterix-app/src/test/resources/runtimets/queries/aggregate-sql/sum_int64_null/sum_int64_null.2.update.aql +++ /dev/null @@ -1,19 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -// no inserts, deletes here http://git-wip-us.apache.org/repos/asf/asterixdb/blob/f372c96d/asterixdb/asterix-app/src/test/resources/runtimets/queries/aggregate-sql/sum_int64_null/sum_int64_null.3.query.aql -- diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries/aggregate-sql/sum_int64_null/sum_int64_null.3.query.aql b/asterixdb/asterix-app/src/test/resources/runtimets/queries/aggregate-sql/sum_int64_null/sum_int64_null.3.query.aql deleted file mode 100644 index d2644f8..000 --- a/asterixdb/asterix-app/src/test/resources/runtimets/queries/aggregate-sql/sum_int64_null/sum_int64_null.3.query.aql +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the
[41/51] [partial] asterixdb git commit: [ASTERIXDB-2454] Remove non-unique AQL tests
http://git-wip-us.apache.org/repos/asf/asterixdb/blob/f372c96d/asterixdb/asterix-app/src/test/resources/runtimets/queries/aggregate-sql/issue425_sum_hetero_list/issue425_sum_hetero_list.3.query.aql -- diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries/aggregate-sql/issue425_sum_hetero_list/issue425_sum_hetero_list.3.query.aql b/asterixdb/asterix-app/src/test/resources/runtimets/queries/aggregate-sql/issue425_sum_hetero_list/issue425_sum_hetero_list.3.query.aql deleted file mode 100644 index 8cc833b..000 --- a/asterixdb/asterix-app/src/test/resources/runtimets/queries/aggregate-sql/issue425_sum_hetero_list/issue425_sum_hetero_list.3.query.aql +++ /dev/null @@ -1,20 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -let $l := [23, 748374857483] -return sql-sum($l) http://git-wip-us.apache.org/repos/asf/asterixdb/blob/f372c96d/asterixdb/asterix-app/src/test/resources/runtimets/queries/aggregate-sql/issue425_sum_hetero_list_1/issue425_sum_hetero_list_1.1.ddl.aql -- diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries/aggregate-sql/issue425_sum_hetero_list_1/issue425_sum_hetero_list_1.1.ddl.aql b/asterixdb/asterix-app/src/test/resources/runtimets/queries/aggregate-sql/issue425_sum_hetero_list_1/issue425_sum_hetero_list_1.1.ddl.aql deleted file mode 100644 index 042f3ce..000 --- a/asterixdb/asterix-app/src/test/resources/runtimets/queries/aggregate-sql/issue425_sum_hetero_list_1/issue425_sum_hetero_list_1.1.ddl.aql +++ /dev/null @@ -1,18 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ http://git-wip-us.apache.org/repos/asf/asterixdb/blob/f372c96d/asterixdb/asterix-app/src/test/resources/runtimets/queries/aggregate-sql/issue425_sum_hetero_list_1/issue425_sum_hetero_list_1.2.update.aql -- diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries/aggregate-sql/issue425_sum_hetero_list_1/issue425_sum_hetero_list_1.2.update.aql b/asterixdb/asterix-app/src/test/resources/runtimets/queries/aggregate-sql/issue425_sum_hetero_list_1/issue425_sum_hetero_list_1.2.update.aql deleted file mode 100644 index 042f3ce..000 --- a/asterixdb/asterix-app/src/test/resources/runtimets/queries/aggregate-sql/issue425_sum_hetero_list_1/issue425_sum_hetero_list_1.2.update.aql +++ /dev/null @@ -1,18 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ http://git-wip-us.apache.org/repos/asf/asterixdb/blob/f372c96d/asterixdb/asterix-app/src/test/resources/ru
[34/51] [partial] asterixdb git commit: [ASTERIXDB-2454] Remove non-unique AQL tests
http://git-wip-us.apache.org/repos/asf/asterixdb/blob/f372c96d/asterixdb/asterix-app/src/test/resources/runtimets/queries/aggregate/sum_int8_null/sum_int8_null.2.update.aql -- diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries/aggregate/sum_int8_null/sum_int8_null.2.update.aql b/asterixdb/asterix-app/src/test/resources/runtimets/queries/aggregate/sum_int8_null/sum_int8_null.2.update.aql deleted file mode 100644 index 7cae9fa..000 --- a/asterixdb/asterix-app/src/test/resources/runtimets/queries/aggregate/sum_int8_null/sum_int8_null.2.update.aql +++ /dev/null @@ -1,19 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -// no inserts, deletes http://git-wip-us.apache.org/repos/asf/asterixdb/blob/f372c96d/asterixdb/asterix-app/src/test/resources/runtimets/queries/aggregate/sum_int8_null/sum_int8_null.3.query.aql -- diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries/aggregate/sum_int8_null/sum_int8_null.3.query.aql b/asterixdb/asterix-app/src/test/resources/runtimets/queries/aggregate/sum_int8_null/sum_int8_null.3.query.aql deleted file mode 100644 index 2459da6..000 --- a/asterixdb/asterix-app/src/test/resources/runtimets/queries/aggregate/sum_int8_null/sum_int8_null.3.query.aql +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -use dataverse test; - -sum( - for $x in dataset('Numeric') - return $x.int8Field -) http://git-wip-us.apache.org/repos/asf/asterixdb/blob/f372c96d/asterixdb/asterix-app/src/test/resources/runtimets/queries/aggregate/sum_mixed/sum_mixed.1.ddl.aql -- diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries/aggregate/sum_mixed/sum_mixed.1.ddl.aql b/asterixdb/asterix-app/src/test/resources/runtimets/queries/aggregate/sum_mixed/sum_mixed.1.ddl.aql deleted file mode 100644 index c9b732b..000 --- a/asterixdb/asterix-app/src/test/resources/runtimets/queries/aggregate/sum_mixed/sum_mixed.1.ddl.aql +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -/* -* Description : Run sum over an ordered list with mixed types -* Expected Res : Failure -* Date : Jun 2nd 2013 -*/ http://git-wip-us.apache.org/repos/asf/asterixdb/blob/f372c96d/asterixdb/asterix-app/src/test/resources/runtimets/queries/aggregate/sum_mixed/sum_mixed.2.update.aql -- diff --git a/asterixdb/asterix-app/src/test/resources/r
[40/51] [partial] asterixdb git commit: [ASTERIXDB-2454] Remove non-unique AQL tests
http://git-wip-us.apache.org/repos/asf/asterixdb/blob/f372c96d/asterixdb/asterix-app/src/test/resources/runtimets/queries/aggregate-sql/scalar_max_null/scalar_max_null.3.query.aql -- diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries/aggregate-sql/scalar_max_null/scalar_max_null.3.query.aql b/asterixdb/asterix-app/src/test/resources/runtimets/queries/aggregate-sql/scalar_max_null/scalar_max_null.3.query.aql deleted file mode 100644 index dae4b42..000 --- a/asterixdb/asterix-app/src/test/resources/runtimets/queries/aggregate-sql/scalar_max_null/scalar_max_null.3.query.aql +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -/* - * Description: Tests the scalar version of sql-max with nulls. - * Success: Yes - */ - -use dataverse test; - -let $i8 := sql-max([int8("1"), int8("2"), int8("3"), null]) -let $i16 := sql-max([int16("1"), int16("2"), int16("3"), null]) -let $i32 := sql-max([int32("1"), int32("2"), int32("3"), null]) -let $i64 := sql-max([int64("1"), int64("2"), int64("3"), null]) -let $f := sql-max([float("1"), float("2"), float("3"), null]) -let $d := sql-max([double("1"), double("2"), double("3"), null]) -let $s := sql-max(["foo", "bar", "world", null]) -let $dt := sql-max([datetime("2012-03-01T00:00:00Z"), datetime("2012-01-01T00:00:00Z"), datetime("2012-02-01T00:00:00Z"), null]) -for $i in [$i8, $i16, $i32, $i64, $f, $d, $s, $dt] -return $i http://git-wip-us.apache.org/repos/asf/asterixdb/blob/f372c96d/asterixdb/asterix-app/src/test/resources/runtimets/queries/aggregate-sql/scalar_min/scalar_min.1.ddl.aql -- diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries/aggregate-sql/scalar_min/scalar_min.1.ddl.aql b/asterixdb/asterix-app/src/test/resources/runtimets/queries/aggregate-sql/scalar_min/scalar_min.1.ddl.aql deleted file mode 100644 index 211bc84..000 --- a/asterixdb/asterix-app/src/test/resources/runtimets/queries/aggregate-sql/scalar_min/scalar_min.1.ddl.aql +++ /dev/null @@ -1,26 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -/* - * Description: Tests the scalar version of sql-min without nulls. - * Success: Yes - */ - -drop dataverse test if exists; -create dataverse test; - http://git-wip-us.apache.org/repos/asf/asterixdb/blob/f372c96d/asterixdb/asterix-app/src/test/resources/runtimets/queries/aggregate-sql/scalar_min/scalar_min.2.update.aql -- diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries/aggregate-sql/scalar_min/scalar_min.2.update.aql b/asterixdb/asterix-app/src/test/resources/runtimets/queries/aggregate-sql/scalar_min/scalar_min.2.update.aql deleted file mode 100644 index ed39c88..000 --- a/asterixdb/asterix-app/src/test/resources/runtimets/queries/aggregate-sql/scalar_min/scalar_min.2.update.aql +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the Licen
[37/51] [partial] asterixdb git commit: [ASTERIXDB-2454] Remove non-unique AQL tests
http://git-wip-us.apache.org/repos/asf/asterixdb/blob/f372c96d/asterixdb/asterix-app/src/test/resources/runtimets/queries/aggregate/issue412_1/issue412_1.2.update.aql -- diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries/aggregate/issue412_1/issue412_1.2.update.aql b/asterixdb/asterix-app/src/test/resources/runtimets/queries/aggregate/issue412_1/issue412_1.2.update.aql deleted file mode 100644 index 042f3ce..000 --- a/asterixdb/asterix-app/src/test/resources/runtimets/queries/aggregate/issue412_1/issue412_1.2.update.aql +++ /dev/null @@ -1,18 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ http://git-wip-us.apache.org/repos/asf/asterixdb/blob/f372c96d/asterixdb/asterix-app/src/test/resources/runtimets/queries/aggregate/issue412_1/issue412_1.3.query.aql -- diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries/aggregate/issue412_1/issue412_1.3.query.aql b/asterixdb/asterix-app/src/test/resources/runtimets/queries/aggregate/issue412_1/issue412_1.3.query.aql deleted file mode 100644 index 28eb3a4..000 --- a/asterixdb/asterix-app/src/test/resources/runtimets/queries/aggregate/issue412_1/issue412_1.3.query.aql +++ /dev/null @@ -1,20 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -let $l := [1, 60, null] -return { "count": count($l), "average": avg($l), "sum": sum($l), "min": min($l), "max": max($l) } http://git-wip-us.apache.org/repos/asf/asterixdb/blob/f372c96d/asterixdb/asterix-app/src/test/resources/runtimets/queries/aggregate/issue425_min_hetero_list/issue425_min_hetero_list.1.ddl.aql -- diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries/aggregate/issue425_min_hetero_list/issue425_min_hetero_list.1.ddl.aql b/asterixdb/asterix-app/src/test/resources/runtimets/queries/aggregate/issue425_min_hetero_list/issue425_min_hetero_list.1.ddl.aql deleted file mode 100644 index 042f3ce..000 --- a/asterixdb/asterix-app/src/test/resources/runtimets/queries/aggregate/issue425_min_hetero_list/issue425_min_hetero_list.1.ddl.aql +++ /dev/null @@ -1,18 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ http://git-wip-us.apache.org/repos/asf/asterixdb/blob/f372c96d/asterixdb/asterix-app/src/test/resources/runtimets/queries/aggregate/issue425_min_hetero_list/issue425_min_hetero_list.2.update.aql -- diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/que
[33/51] [partial] asterixdb git commit: [ASTERIXDB-2454] Remove non-unique AQL tests
http://git-wip-us.apache.org/repos/asf/asterixdb/blob/f372c96d/asterixdb/asterix-app/src/test/resources/runtimets/queries/binary/length/length.3.query.aql -- diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries/binary/length/length.3.query.aql b/asterixdb/asterix-app/src/test/resources/runtimets/queries/binary/length/length.3.query.aql deleted file mode 100644 index 4b56dc6..000 --- a/asterixdb/asterix-app/src/test/resources/runtimets/queries/binary/length/length.3.query.aql +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -use dataverse test; - -let $c1 := binary-length(hex("00AA")) -let $c2 := binary-length(hex("")) -let $c3 := binary-length(null) -return {"result1": $c1, "result2": $c2, "result3": $c3} http://git-wip-us.apache.org/repos/asf/asterixdb/blob/f372c96d/asterixdb/asterix-app/src/test/resources/runtimets/queries/binary/parse/parse.1.ddl.aql -- diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries/binary/parse/parse.1.ddl.aql b/asterixdb/asterix-app/src/test/resources/runtimets/queries/binary/parse/parse.1.ddl.aql deleted file mode 100644 index cbc5458..000 --- a/asterixdb/asterix-app/src/test/resources/runtimets/queries/binary/parse/parse.1.ddl.aql +++ /dev/null @@ -1,20 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -drop dataverse test if exists; -create dataverse test; http://git-wip-us.apache.org/repos/asf/asterixdb/blob/f372c96d/asterixdb/asterix-app/src/test/resources/runtimets/queries/binary/parse/parse.2.update.aql -- diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries/binary/parse/parse.2.update.aql b/asterixdb/asterix-app/src/test/resources/runtimets/queries/binary/parse/parse.2.update.aql deleted file mode 100644 index 042f3ce..000 --- a/asterixdb/asterix-app/src/test/resources/runtimets/queries/binary/parse/parse.2.update.aql +++ /dev/null @@ -1,18 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ http://git-wip-us.apache.org/repos/asf/asterixdb/blob/f372c96d/asterixdb/asterix-app/src/test/resources/runtimets/queries/binary/parse/parse.3.query.aql -- diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries/binary/parse/parse.3.query.aql b/asterixdb/asterix-app/src/test/resources/runtimets/queries/binary/parse/parse.3.query.aql deleted file mode 100644 index 815f1f7..000 --- a/a
[32/51] [partial] asterixdb git commit: [ASTERIXDB-2454] Remove non-unique AQL tests
http://git-wip-us.apache.org/repos/asf/asterixdb/blob/f372c96d/asterixdb/asterix-app/src/test/resources/runtimets/queries/comparison/gt_01/gt_01.1.ddl.aql -- diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries/comparison/gt_01/gt_01.1.ddl.aql b/asterixdb/asterix-app/src/test/resources/runtimets/queries/comparison/gt_01/gt_01.1.ddl.aql deleted file mode 100644 index 15642ca..000 --- a/asterixdb/asterix-app/src/test/resources/runtimets/queries/comparison/gt_01/gt_01.1.ddl.aql +++ /dev/null @@ -1,21 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -drop dataverse test if exists; - -create dataverse test; http://git-wip-us.apache.org/repos/asf/asterixdb/blob/f372c96d/asterixdb/asterix-app/src/test/resources/runtimets/queries/comparison/gt_01/gt_01.2.update.aql -- diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries/comparison/gt_01/gt_01.2.update.aql b/asterixdb/asterix-app/src/test/resources/runtimets/queries/comparison/gt_01/gt_01.2.update.aql deleted file mode 100644 index 042f3ce..000 --- a/asterixdb/asterix-app/src/test/resources/runtimets/queries/comparison/gt_01/gt_01.2.update.aql +++ /dev/null @@ -1,18 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ http://git-wip-us.apache.org/repos/asf/asterixdb/blob/f372c96d/asterixdb/asterix-app/src/test/resources/runtimets/queries/comparison/gt_01/gt_01.3.query.aql -- diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries/comparison/gt_01/gt_01.3.query.aql b/asterixdb/asterix-app/src/test/resources/runtimets/queries/comparison/gt_01/gt_01.3.query.aql deleted file mode 100644 index 373f568..000 --- a/asterixdb/asterix-app/src/test/resources/runtimets/queries/comparison/gt_01/gt_01.3.query.aql +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -use dataverse test; - -for $x in [1, 3, 2] -where $x > 1 -return $x - http://git-wip-us.apache.org/repos/asf/asterixdb/blob/f372c96d/asterixdb/asterix-app/src/test/resources/runtimets/queries/comparison/gte_01/gte_01.1.ddl.aql -- diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries/comparison/gte_01/gte_01.1.ddl.aql b/asterixdb/asterix-app/src/test/resources/runtimets/queries/comparison/gte_01/gte_01.1.ddl.aql deleted file mode 100644 index 950d2b4..000 --- a/asterixdb/asterix-app/src/test/resources/runtimets/queries/co
[47/51] [partial] asterixdb git commit: [ASTERIXDB-2454] Remove non-unique AQL tests
http://git-wip-us.apache.org/repos/asf/asterixdb/blob/f372c96d/asterixdb/asterix-app/src/test/resources/optimizerts/queries/nested-open-index/btree-index/btree-secondary-44.aql -- diff --git a/asterixdb/asterix-app/src/test/resources/optimizerts/queries/nested-open-index/btree-index/btree-secondary-44.aql b/asterixdb/asterix-app/src/test/resources/optimizerts/queries/nested-open-index/btree-index/btree-secondary-44.aql deleted file mode 100644 index c5a2ed6..000 --- a/asterixdb/asterix-app/src/test/resources/optimizerts/queries/nested-open-index/btree-index/btree-secondary-44.aql +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -/* - * Description : BTree Index verification test - * : This test is intended to verify that the secondary BTree index is NOT used - * : in the optimized query plan. - * Expected Result : Success - * Date: 13th Aug 2012 - */ - -// Negative test - prefix search - -drop dataverse test if exists; -create dataverse test; -use dataverse test; - -write output to asterix_nc1:"rttest/btree-index_btree-secondary-42.adm"; - -create type TestTypetmp as open { -id : int32 -} - -create type TestType as open { -nested : TestTypetmp -} - -create dataset testdst(TestType) primary key nested.id; - -create index sec_Idx on testdst(nested.fname:string?,nested.lname:string?) enforced; - -for $emp in dataset('testdst') -where $emp.nested.fname > "Allan" and $emp.nested.lname = "Xu" -return $emp http://git-wip-us.apache.org/repos/asf/asterixdb/blob/f372c96d/asterixdb/asterix-app/src/test/resources/optimizerts/queries/nested-open-index/btree-index/btree-secondary-45.aql -- diff --git a/asterixdb/asterix-app/src/test/resources/optimizerts/queries/nested-open-index/btree-index/btree-secondary-45.aql b/asterixdb/asterix-app/src/test/resources/optimizerts/queries/nested-open-index/btree-index/btree-secondary-45.aql deleted file mode 100644 index 68fe56c..000 --- a/asterixdb/asterix-app/src/test/resources/optimizerts/queries/nested-open-index/btree-index/btree-secondary-45.aql +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -/* - * Description : BTree Index verification test - * : This test is intended to verify that the secondary BTree index is NOT used - * : in the optimized query plan. - * Expected Result : Success - * Date: 13th Aug 2012 - */ - -// Negative test - prefix search - -drop dataverse test if exists; -create dataverse test; -use dataverse test; - -write output to asterix_nc1:"rttest/btree-index_btree-secondary-43.adm"; - -create type TestTypetmp as open { -id : int32 -} - -create type TestType as open { -nested : TestTypetmp -} - -create dataset testdst(TestType) primary key nested.id; - -create index sec_Idx on testdst(nested.fname:string?,nested.lname:string?) enforced; - -for $emp in dataset('testdst') -where $emp.nested.fname = "Julio" and $emp.nested.lname < "Xu" -return $emp http://git-wip-us.apache.org/repos/asf/asterixdb/blob/f372c96d/asterixdb/asterix-app/src/test/resources/optimizerts/queries/nested-open-index/btree-index/btree-secondary-46.aql -- diff --gi
[35/51] [partial] asterixdb git commit: Revert "[ASTERIXDB-2454] Remove non-unique AQL tests"
http://git-wip-us.apache.org/repos/asf/asterixdb/blob/c4dbb614/asterixdb/asterix-app/src/test/resources/runtimets/queries/aggregate/scalar_min_null/scalar_min_null.2.update.aql -- diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries/aggregate/scalar_min_null/scalar_min_null.2.update.aql b/asterixdb/asterix-app/src/test/resources/runtimets/queries/aggregate/scalar_min_null/scalar_min_null.2.update.aql new file mode 100644 index 000..4031347 --- /dev/null +++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries/aggregate/scalar_min_null/scalar_min_null.2.update.aql @@ -0,0 +1,24 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +/* + * Description: Tests the scalar version of min with nulls. + * Success: Yes + */ + +// no inserts, deletes here http://git-wip-us.apache.org/repos/asf/asterixdb/blob/c4dbb614/asterixdb/asterix-app/src/test/resources/runtimets/queries/aggregate/scalar_min_null/scalar_min_null.3.query.aql -- diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries/aggregate/scalar_min_null/scalar_min_null.3.query.aql b/asterixdb/asterix-app/src/test/resources/runtimets/queries/aggregate/scalar_min_null/scalar_min_null.3.query.aql new file mode 100644 index 000..0052d98 --- /dev/null +++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries/aggregate/scalar_min_null/scalar_min_null.3.query.aql @@ -0,0 +1,35 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +/* + * Description: Tests the scalar version of min with nulls. + * Success: Yes + */ + +use dataverse test; + +let $i8 := min([int8("1"), int8("2"), int8("3"), null]) +let $i16 := min([int16("1"), int16("2"), int16("3"), null]) +let $i32 := min([int32("1"), int32("2"), int32("3"), null]) +let $i64 := min([int64("1"), int64("2"), int64("3"), null]) +let $f := min([float("1"), float("2"), float("3"), null]) +let $d := min([double("1"), double("2"), double("3"), null]) +let $s := min(["foo", "bar", "world", null]) +let $dt := min([datetime("2012-03-01T00:00:00Z"), datetime("2012-01-01T00:00:00Z"), datetime("2012-02-01T00:00:00Z"), null]) +for $i in [$i8, $i16, $i32, $i64, $f, $d, $s, $dt] +return $i http://git-wip-us.apache.org/repos/asf/asterixdb/blob/c4dbb614/asterixdb/asterix-app/src/test/resources/runtimets/queries/aggregate/scalar_sum/scalar_sum.1.ddl.aql -- diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries/aggregate/scalar_sum/scalar_sum.1.ddl.aql b/asterixdb/asterix-app/src/test/resources/runtimets/queries/aggregate/scalar_sum/scalar_sum.1.ddl.aql new file mode 100644 index 000..d51e479 --- /dev/null +++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries/aggregate/scalar_sum/scalar_sum.1.ddl.aql @@ -0,0 +1,26 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENS
[29/51] [partial] asterixdb git commit: Revert "[ASTERIXDB-2454] Remove non-unique AQL tests"
http://git-wip-us.apache.org/repos/asf/asterixdb/blob/c4dbb614/asterixdb/asterix-app/src/test/resources/runtimets/queries/cross-dataverse/cross-dv08/cross-dv08.2.update.aql -- diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries/cross-dataverse/cross-dv08/cross-dv08.2.update.aql b/asterixdb/asterix-app/src/test/resources/runtimets/queries/cross-dataverse/cross-dv08/cross-dv08.2.update.aql new file mode 100644 index 000..5fc15c2 --- /dev/null +++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries/cross-dataverse/cross-dv08/cross-dv08.2.update.aql @@ -0,0 +1,40 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +/* + * Description : Create two UDFs in two different dataverses and create datasets in tose dvs + * : access the datasets from the UDF defined in the other dataverse and invoke one of the UDF + * Expected Res : Success + * Date : Sep 7th 2012 + */ + +// dv1 - udf1 - dataset1 +// dv2 - udf2 - dataset2 + +insert into dataset test.t1({"id":24}); +insert into dataset test.t1({"id":23}); +insert into dataset test.t1({"id":21}); +insert into dataset test.t1({"id":44}); +insert into dataset test.t1({"id":64}); + +insert into dataset fest.t1({"id":24}); +insert into dataset fest.t1({"id":23}); +insert into dataset fest.t1({"id":21}); +insert into dataset fest.t1({"id":44}); +insert into dataset fest.t1({"id":64}); + http://git-wip-us.apache.org/repos/asf/asterixdb/blob/c4dbb614/asterixdb/asterix-app/src/test/resources/runtimets/queries/cross-dataverse/cross-dv08/cross-dv08.3.query.aql -- diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries/cross-dataverse/cross-dv08/cross-dv08.3.query.aql b/asterixdb/asterix-app/src/test/resources/runtimets/queries/cross-dataverse/cross-dv08/cross-dv08.3.query.aql new file mode 100644 index 000..557ea69 --- /dev/null +++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries/cross-dataverse/cross-dv08/cross-dv08.3.query.aql @@ -0,0 +1,31 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +/* + * Description : Create two UDFs in two different dataverses and create datasets in tose dvs + * : access the datasets from the UDF defined in the other dataverse and invoke one of the UDF + * Expected Res : Success + * Date : Sep 7th 2012 + */ + +// dv1 - udf1 - dataset1 +// dv2 - udf2 - dataset2 + +let $a := test.f1() +let $b := fest.f1() +return { "a" : $a, "b" : $b } http://git-wip-us.apache.org/repos/asf/asterixdb/blob/c4dbb614/asterixdb/asterix-app/src/test/resources/runtimets/queries/cross-dataverse/cross-dv09/cross-dv09.1.ddl.aql -- diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries/cross-dataverse/cross-dv09/cross-dv09.1.ddl.aql b/asterixdb/asterix-app/src/test/resources/runtimets/queries/cross-dataverse/cross-dv09/cross-dv09.1.ddl.aql new file mode 100644 index 000..0552b96 --- /dev/null +++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries/cross-dataverse/cross-dv09/cross-dv09.1.ddl.aql @@ -0,0 +1,39 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information +
[08/51] [partial] asterixdb git commit: Revert "[ASTERIXDB-2454] Remove non-unique AQL tests"
http://git-wip-us.apache.org/repos/asf/asterixdb/blob/c4dbb614/asterixdb/asterix-app/src/test/resources/runtimets/queries/index-join/rtree-spatial-intersect-point_02/rtree-spatial-intersect-point_02.4.query.aql -- diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries/index-join/rtree-spatial-intersect-point_02/rtree-spatial-intersect-point_02.4.query.aql b/asterixdb/asterix-app/src/test/resources/runtimets/queries/index-join/rtree-spatial-intersect-point_02/rtree-spatial-intersect-point_02.4.query.aql new file mode 100644 index 000..833111c --- /dev/null +++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries/index-join/rtree-spatial-intersect-point_02/rtree-spatial-intersect-point_02.4.query.aql @@ -0,0 +1,33 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +/* + * Description: Joins two datasets on the intersection of their point attributes. + * The inner dataset 'MyData2' has an RTree index, and we expect the + * join to be transformed into an indexed nested-loop join. + * Success: Yes + */ + +use dataverse test; + +for $a in dataset('MyData1') +for $b in dataset('MyData2') +where spatial-intersect($a.point, $b.point) +order by $a.id, $b.id +return {"aid": $a.id, "bid": $b.id, "apoint": $a.point, "bpoint": $b.point} http://git-wip-us.apache.org/repos/asf/asterixdb/blob/c4dbb614/asterixdb/asterix-app/src/test/resources/runtimets/queries/index-join/rtree-spatial-intersect-point_03/rtree-spatial-intersect-point_03.1.ddl.aql -- diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries/index-join/rtree-spatial-intersect-point_03/rtree-spatial-intersect-point_03.1.ddl.aql b/asterixdb/asterix-app/src/test/resources/runtimets/queries/index-join/rtree-spatial-intersect-point_03/rtree-spatial-intersect-point_03.1.ddl.aql new file mode 100644 index 000..33e7c9d --- /dev/null +++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries/index-join/rtree-spatial-intersect-point_03/rtree-spatial-intersect-point_03.1.ddl.aql @@ -0,0 +1,47 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + + /* + * Description: Joins two datasets on the intersection of their point attributes. + * Both inner and outer dataset have an RTree index, and we expect the + * join to be transformed into an indexed nested-loop join + * by using an RTree index from the inner dataset. + * Success: Yes + */ + +drop dataverse test if exists; +create dataverse test; + +use dataverse test; + +create type MyRecord as closed { + id: int64, + point: point, + kwds: string, + line1: line, + line2: line, + poly1: polygon, + poly2: polygon, + rec: rectangle, + circle: circle +} + +create dataset MyData1(MyRecord) primary key id; +create dataset MyData2(MyRecord) primary key id; + http://git-wip-us.apache.org/repos/asf/asterixdb/blob/c4dbb614/asterixdb/asterix-app/src/test/resources/runtimets/queries/index-join/rtree-spatial-intersect-point_03/rtree-spatial-intersect-point_03.2.update.aql -- diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries/index-join/rtree-spatial-intersect-point_03/rtree-spatial-intersect-point_03.2.update
[04/51] [partial] asterixdb git commit: Revert "[ASTERIXDB-2454] Remove non-unique AQL tests"
http://git-wip-us.apache.org/repos/asf/asterixdb/blob/c4dbb614/asterixdb/asterix-app/src/test/resources/runtimets/queries/index-selection/rtree-sidx-idxonly-01/rtree-sidx-idxonly-01.10.query.aql -- diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries/index-selection/rtree-sidx-idxonly-01/rtree-sidx-idxonly-01.10.query.aql b/asterixdb/asterix-app/src/test/resources/runtimets/queries/index-selection/rtree-sidx-idxonly-01/rtree-sidx-idxonly-01.10.query.aql new file mode 100644 index 000..98d86bd --- /dev/null +++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries/index-selection/rtree-sidx-idxonly-01/rtree-sidx-idxonly-01.10.query.aql @@ -0,0 +1,28 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +use dataverse test; + +count( +let $area:=create-rectangle(point("0.0,0.0"), point("4.0,4.0")) +for $o in dataset('MyData') +where spatial-intersect($o.point, $area) +order by $o.id +return $o +); http://git-wip-us.apache.org/repos/asf/asterixdb/blob/c4dbb614/asterixdb/asterix-app/src/test/resources/runtimets/queries/index-selection/rtree-sidx-idxonly-01/rtree-sidx-idxonly-01.11.query.aql -- diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries/index-selection/rtree-sidx-idxonly-01/rtree-sidx-idxonly-01.11.query.aql b/asterixdb/asterix-app/src/test/resources/runtimets/queries/index-selection/rtree-sidx-idxonly-01/rtree-sidx-idxonly-01.11.query.aql new file mode 100644 index 000..577c6f1 --- /dev/null +++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries/index-selection/rtree-sidx-idxonly-01/rtree-sidx-idxonly-01.11.query.aql @@ -0,0 +1,27 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +use dataverse test; + +//let $area:=create-rectangle(point("0.0,0.0"), point("4.0,4.0")) +let $area:=create-circle(create-point(4.0,3.0), 5.0) +for $o in dataset('MyData') +where spatial-intersect($o.point, $area) +order by $o.id +return {"id":$o.id} http://git-wip-us.apache.org/repos/asf/asterixdb/blob/c4dbb614/asterixdb/asterix-app/src/test/resources/runtimets/queries/index-selection/rtree-sidx-idxonly-01/rtree-sidx-idxonly-01.2.update.aql -- diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries/index-selection/rtree-sidx-idxonly-01/rtree-sidx-idxonly-01.2.update.aql b/asterixdb/asterix-app/src/test/resources/runtimets/queries/index-selection/rtree-sidx-idxonly-01/rtree-sidx-idxonly-01.2.update.aql new file mode 100644 index 000..cf3f316 --- /dev/null +++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries/index-selection/rtree-sidx-idxonly-01/rtree-sidx-idxonly-01.2.update.aql @@ -0,0 +1,29 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distri
[23/51] [partial] asterixdb git commit: Revert "[ASTERIXDB-2454] Remove non-unique AQL tests"
http://git-wip-us.apache.org/repos/asf/asterixdb/blob/c4dbb614/asterixdb/asterix-app/src/test/resources/runtimets/queries/dml/load-with-word-index-open/load-with-word-index-open.1.ddl.aql -- diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries/dml/load-with-word-index-open/load-with-word-index-open.1.ddl.aql b/asterixdb/asterix-app/src/test/resources/runtimets/queries/dml/load-with-word-index-open/load-with-word-index-open.1.ddl.aql new file mode 100644 index 000..c08c61c --- /dev/null +++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries/dml/load-with-word-index-open/load-with-word-index-open.1.ddl.aql @@ -0,0 +1,43 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +drop dataverse test if exists; +create dataverse test; + +use dataverse test; + +create type DBLPType as closed { + id: int64, + dblpid: string, + title: string, + authors: string, + misc: string +} + +create type DBLPTypeOpen as open { + id: int64, + dblpid: string, + authors: string, + misc: string +} + +create dataset DBLP(DBLPType) primary key id; + +create dataset DBLPOpen(DBLPTypeOpen) primary key id; + +create index keyword_index on DBLPOpen(title:string?) type keyword enforced; http://git-wip-us.apache.org/repos/asf/asterixdb/blob/c4dbb614/asterixdb/asterix-app/src/test/resources/runtimets/queries/dml/load-with-word-index-open/load-with-word-index-open.2.update.aql -- diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries/dml/load-with-word-index-open/load-with-word-index-open.2.update.aql b/asterixdb/asterix-app/src/test/resources/runtimets/queries/dml/load-with-word-index-open/load-with-word-index-open.2.update.aql new file mode 100644 index 000..b174592 --- /dev/null +++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries/dml/load-with-word-index-open/load-with-word-index-open.2.update.aql @@ -0,0 +1,27 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +use dataverse test; + +load dataset DBLP using localfs +(("path"="asterix_nc1://data/dblp-small/dblp-small-id.txt"),("format"="delimited-text"),("delimiter"=":")) pre-sorted; + +insert into dataset test.DBLPOpen ( +for $x in dataset test.DBLP +return $x +); http://git-wip-us.apache.org/repos/asf/asterixdb/blob/c4dbb614/asterixdb/asterix-app/src/test/resources/runtimets/queries/dml/load-with-word-index-open/load-with-word-index-open.3.query.aql -- diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries/dml/load-with-word-index-open/load-with-word-index-open.3.query.aql b/asterixdb/asterix-app/src/test/resources/runtimets/queries/dml/load-with-word-index-open/load-with-word-index-open.3.query.aql new file mode 100644 index 000..b792fd6 --- /dev/null +++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries/dml/load-with-word-index-open/load-with-word-index-open.3.query.aql @@ -0,0 +1,24 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file
[06/51] [partial] asterixdb git commit: Revert "[ASTERIXDB-2454] Remove non-unique AQL tests"
http://git-wip-us.apache.org/repos/asf/asterixdb/blob/c4dbb614/asterixdb/asterix-app/src/test/resources/runtimets/queries/index-selection/cust-index-age-nullable/cust-index-age-nullable.2.update.aql -- diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries/index-selection/cust-index-age-nullable/cust-index-age-nullable.2.update.aql b/asterixdb/asterix-app/src/test/resources/runtimets/queries/index-selection/cust-index-age-nullable/cust-index-age-nullable.2.update.aql new file mode 100644 index 000..f217c98 --- /dev/null +++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries/index-selection/cust-index-age-nullable/cust-index-age-nullable.2.update.aql @@ -0,0 +1,24 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +use dataverse test; + +load dataset Customers +using localfs +(("path"="asterix_nc1://data/semistructured/tiny01/customer.adm"),("format"="adm")); + http://git-wip-us.apache.org/repos/asf/asterixdb/blob/c4dbb614/asterixdb/asterix-app/src/test/resources/runtimets/queries/index-selection/cust-index-age-nullable/cust-index-age-nullable.3.ddl.aql -- diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries/index-selection/cust-index-age-nullable/cust-index-age-nullable.3.ddl.aql b/asterixdb/asterix-app/src/test/resources/runtimets/queries/index-selection/cust-index-age-nullable/cust-index-age-nullable.3.ddl.aql new file mode 100644 index 000..44b60b8 --- /dev/null +++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries/index-selection/cust-index-age-nullable/cust-index-age-nullable.3.ddl.aql @@ -0,0 +1,24 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +use dataverse test; + +// create secondary index on Customers(age) + +create index age_index on Customers(age); http://git-wip-us.apache.org/repos/asf/asterixdb/blob/c4dbb614/asterixdb/asterix-app/src/test/resources/runtimets/queries/index-selection/cust-index-age-nullable/cust-index-age-nullable.4.query.aql -- diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries/index-selection/cust-index-age-nullable/cust-index-age-nullable.4.query.aql b/asterixdb/asterix-app/src/test/resources/runtimets/queries/index-selection/cust-index-age-nullable/cust-index-age-nullable.4.query.aql new file mode 100644 index 000..747e1ed --- /dev/null +++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries/index-selection/cust-index-age-nullable/cust-index-age-nullable.4.query.aql @@ -0,0 +1,24 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language g
[32/51] [partial] asterixdb git commit: Revert "[ASTERIXDB-2454] Remove non-unique AQL tests"
http://git-wip-us.apache.org/repos/asf/asterixdb/blob/c4dbb614/asterixdb/asterix-app/src/test/resources/runtimets/queries/comparison/gte_01/gte_01.1.ddl.aql -- diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries/comparison/gte_01/gte_01.1.ddl.aql b/asterixdb/asterix-app/src/test/resources/runtimets/queries/comparison/gte_01/gte_01.1.ddl.aql new file mode 100644 index 000..950d2b4 --- /dev/null +++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries/comparison/gte_01/gte_01.1.ddl.aql @@ -0,0 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +drop dataverse test if exists; + +create dataverse test; + http://git-wip-us.apache.org/repos/asf/asterixdb/blob/c4dbb614/asterixdb/asterix-app/src/test/resources/runtimets/queries/comparison/gte_01/gte_01.2.update.aql -- diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries/comparison/gte_01/gte_01.2.update.aql b/asterixdb/asterix-app/src/test/resources/runtimets/queries/comparison/gte_01/gte_01.2.update.aql new file mode 100644 index 000..042f3ce --- /dev/null +++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries/comparison/gte_01/gte_01.2.update.aql @@ -0,0 +1,18 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ http://git-wip-us.apache.org/repos/asf/asterixdb/blob/c4dbb614/asterixdb/asterix-app/src/test/resources/runtimets/queries/comparison/gte_01/gte_01.3.query.aql -- diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries/comparison/gte_01/gte_01.3.query.aql b/asterixdb/asterix-app/src/test/resources/runtimets/queries/comparison/gte_01/gte_01.3.query.aql new file mode 100644 index 000..ac1835a --- /dev/null +++ b/asterixdb/asterix-app/src/test/resources/runtimets/queries/comparison/gte_01/gte_01.3.query.aql @@ -0,0 +1,23 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +use dataverse test; + +for $x in [1, 3, 2] +where $x >= 2 +return $x http://git-wip-us.apache.org/repos/asf/asterixdb/blob/c4dbb614/asterixdb/asterix-app/src/test/resources/runtimets/queries/comparison/int16/int16.1.ddl.aql -- diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/queries/comparison/int16/int16.1.ddl.aql b/asterixdb/asterix-app/src/test/resources/runtimets/queries/comparison/int16/int16.1.ddl.aql new file mode 100644 index 000..d17ea60 --- /dev/null +++ b/asterixdb/asterix-app/src/test/resources/runt