• This repository has been archived on 16/Sep/2019
  • Stars
    star
    147
  • Rank 251,347 (Top 5 %)
  • Language
    TypeScript
  • License
    Apache License 2.0
  • Created about 9 years ago
  • Updated about 5 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

MySQL-like queries for Druid built on top of Plywood

[ DEPRECATED ] PlyQL

A SQL-like interface to plywood

⛔️ This project has been deprecated due to SQL support in Druid.

Installation

PlyQL is built on top of node so make sure you have node >= 4.x.x installed.

npm install -g plyql

The global install will make the plyql command available system wide.

Usage

Currently only queries to Druid are supported. More support will come in the future.

The CLI supports the following options:

Option Description
--help print this help message
--version display the version number
-v, --verbose display the queries that are being made
-h, --host the host to connect to
-s, --source use this source for the query (supersedes FROM clause)
-i, --interval add (AND) a __time filter between NOW-INTERVAL and NOW
-tz, --timezone the default timezone
-q, --query the query to run
-o, --output specify the output format. Possible values: json (default), csv, tsv, flat
-a, --allow enable a behaviour that is turned off by default eternity allow queries not filtered on time select allow select queries
-t, --timeout the time before a query is timed out in ms (default: 60000)
-r, --retry the number of tries a query should be attempted on error, 0 = unlimited, (default: 2)
-c, --concurrent the limit of concurrent queries that could be made simultaneously, 0 = unlimited, (default: 2)
--rollup use rollup mode [COUNT() -> SUM(count)]
--druid-version Assume this is the Druid version and do not query for it
--skip-cache disable Druid caching
--introspection-strategy Druid introspection strategy. Use --help for possible values
--force-time force a column to be interpreted as a time column
--force-string force a column to be interpreted as a string column
--force-boolean force a column to be interpreted as a boolean column
--force-number force a column to be interpreted as a number column
--force-unique force a column to be interpreted as a hyperLogLog uniques
--force-theta force a column to be interpreted as a theta sketch
--force-histogram force a column to be interpreted as an approximate histogram (for quantiles)

For information on specific operators and functions supported by PlyQL please see: PlyQL language reference.

Examples

For an introduction and examples please see: PlyQL language reference.

Roadmap

Here is a list of features that is not currently supported that are in the works:

  • Query simulation - preview the queries that will be run without running them
  • Sub-queries in WHERE clauses
  • JOIN support
  • Window functions

Questions & Support

For updates about new and upcoming features follow @implydata on Twitter.

Please file bugs and feature requests by opening and issue on GitHub and direct all questions to our user groups.

More Repositories

1

pivot

An interactive data exploration UI for Druid
646
star
2

plywood

A toolkit for querying and interacting with Big Data
JavaScript
384
star
3

distribution-docker

I'm an analytics platform! In a Docker container!
Shell
52
star
4

learn-druid

Learn the basics of Apache Druid® from leaders in the community with these notebooks and useful tools.
Jupyter Notebook
43
star
5

druid-client

Java client for http://druid.io/
Java
34
star
6

plywood-druid-requester

Druid requester for Plywood (within node)
JavaScript
25
star
7

datazoo

A collection of datasets and databases
Shell
24
star
8

druid-query-toolkit

A collection of utilities for working with Druid queries
TypeScript
24
star
9

druid-example-extension

Example extension for https://druid.apache.org/
Java
19
star
10

druid-datagenerator

A data generator for Apache Druid
Python
11
star
11

druid-hadoop-inputformat

Hadoop InputFormat for http://druid.io/
Java
10
star
12

chronoshift

a library to manipulate time with timezones
TypeScript
9
star
13

benchmark-tools

9
star
14

Getafix

Java
8
star
15

wikiticker

Scala wikimedia recent changes stream
Scala
8
star
16

druid.d.ts

TypeScript definitions for the Druid query API
TypeScript
8
star
17

immutable-class

A little library to facilitate creating and testing serializable, immutable classes.
TypeScript
8
star
18

laborer

Laborer works hard so you do not have to
JavaScript
6
star
19

imply-iframe-examples

A set of examples of how to iFrame Pivot into your own app
JavaScript
6
star
20

hostbook

Scala GeoIP lookups
Scala
5
star
21

awesome-code-style

Style basics for awesome code
JavaScript
4
star
22

plywood-postgres-requester

Postgres requester for Plywood (within node)
JavaScript
3
star
23

express-serve-static-core

A concrete repo for the express-serve-static-core ghost type
2
star
24

road-signs

TypeScript
2
star
25

candidate-exercises-public

2
star
26

blue-herring

Automatic form generation for React projects
TypeScript
2
star
27

imply-external-auth-examples

Imply External Authentication Examples
JavaScript
2
star
28

npm-synchronize

A tool to reduce friction when developing dependent projects simultaneously
JavaScript
2
star
29

DruidCloudPOC

Components for creating a cloud-based POC
Python
2
star
30

redshift-benchmark

R
2
star
31

tdi

Typings Direct Injection
JavaScript
1
star
32

jsonsmith

TypeScript
1
star
33

how-to-analyze-aws-vpc-logs-with-imply

How to analyze AWS VPC logs with Imply (blog post assets)
1
star
34

imply-samples

Codes samples from Imply
1
star
35

plywood-base-api

A base API for plywood requesters
JavaScript
1
star
36

plywood-mysql-requester

MySQL requester for Plywood (within node)
JavaScript
1
star