GithubHelp home page GithubHelp logo

understanding_asterixdb's Introduction

https://github.com/apache/asterixdb

https://asterixdb.apache.org/docs/0.8.8-incubating/aql/primer.html

https://ci.apache.org/projects/asterixdb/aql/js-sdk.html

https://asterixdb.apache.org/docs/0.8.8-incubating/aql/primer-sql-like.html

use dataverse TinySocial;

load dataset FacebookUsers using localfs
(("path"="localhost:///home/culqi/understanding_asterixdb/face.adm"),("format"="adm"));

load dataset FacebookMessages using localfs
(("path"="localhost:///home/culqi/understanding_asterixdb/facems.adm"),("format"="adm"));

load dataset TwitterUsers using localfs
(("path"="localhost:///home/culqi/understanding_asterixdb/twt.adm"),("format"="adm"));

load dataset TweetMessages using localfs
(("path"="localhost:///home/culqi/understanding_asterixdb/twtms.adm"),("format"="adm"));
  • [DOC] Query 6 - Existential Quantification empty result (review)

https://issues.apache.org/jira/browse/ASTERIXDB-1327?jql=text%20~%20%22spatial_intersect%22

drop dataverse channels if exists;
create dataverse channels;
use dataverse channels;

create type UserLocation as closed {
	recordId: uuid,
	location: point,
	user-id: string,
	timeoffset: float
}

create type EmergencyReport as closed {
	reportId: uuid,
	severity: int,
	impactZone: circle,
	timeoffset: float,
	duration: float,
	message: string,
	emergencyType: string
}

create dataset UserLocations(UserLocation)
primary key recordId autogenerated;

create dataset EmergencyReports(EmergencyReport)
primary key reportId autogenerated;

load dataset UserLocations using localfs
(("path"="localhost:///home/culqi/understanding_asterixdb/UserLocationsShort.adm"),("format"="adm"));

load dataset EmergencyReports using localfs
(("path"="localhost:///home/culqi/understanding_asterixdb/EmergencyReports.adm"),("format"="adm"));

QUERIES

use dataverse channels;
for $report in dataset EmergencyReports
for $location in dataset UserLocations
where $report.emergencyType = "earthquake"
let $circle := create-circle($location.location,.1)
where spatial-intersect($report.impactZone, $circle)
return {
	"user at":$location.location,
	"report at":$report.impactZone
}

understanding_asterixdb's People

Contributors

marti1125 avatar

Watchers

 avatar  avatar  avatar

Forkers

venkteshv

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.