New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

plyql

Package Overview
Dependencies
Maintainers
2
Versions
116
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

plyql

A SQL-like interface for Plywood

latest
Source
npmnpm
Version
0.11.2
Version published
Maintainers
2
Created
Source

PlyQL

A SQL-like interface to plywood

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:

OptionDescription
--helpprint this help message
--versiondisplay the version number
-v, --verbosedisplay the queries that are being made
-h, --hostthe host to connect to
-s, --sourceuse this source for the query (supersedes FROM clause)
-i, --intervaladd (AND) a __time filter between NOW-INTERVAL and NOW
-tz, --timezonethe default timezone
-q, --querythe query to run
-o, --outputspecify the output format. Possible values: json (default), csv, tsv, flat
-a, --allowenable a behaviour that is turned off by default eternity allow queries not filtered on time select allow select queries
-t, --timeoutthe time before a query is timed out in ms (default: 60000)
-r, --retrythe number of tries a query should be attempted on error, 0 = unlimited, (default: 2)
-c, --concurrentthe limit of concurrent queries that could be made simultaneously, 0 = unlimited, (default: 2)
--rollupuse rollup mode [COUNT() -> SUM(count)]
--druid-versionAssume this is the Druid version and do not query for it
--skip-cachedisable Druid caching
--introspection-strategyDruid introspection strategy. Use --help for possible values
--force-timeforce a column to be interpreted as a time column
--force-stringforce a column to be interpreted as a string column
--force-booleanforce a column to be interpreted as a boolean column
--force-numberforce a column to be interpreted as a number column
--force-uniqueforce a column to be interpreted as a hyperLogLog uniques
--force-thetaforce a column to be interpreted as a theta sketch
--force-histogramforce 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.

Keywords

comand line interface

FAQs

Package last updated on 17 Aug 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts