Travis Turner
4f17dbdbf1
add support for Bool fields
...
prevent import of non-boolean row values to bool fields
2018-09-21 09:25:41 -05:00
Yuce Tekol
80c1a734ba
trivial
2018-09-11 20:51:32 +03:00
Yuce Tekol
aa618c30d5
Implements Query call excludeRowAttrs, excludeColumns and shards args
2018-09-10 17:29:55 +03:00
Cody Soyland
dd7b5f517b
Merge branch 'master' into 1513-metalinter-megacheck
2018-08-02 10:29:47 -05:00
Travis Turner
dfd529b2f5
update parser to handle row keys on SetRowAttrs()
2018-07-27 10:50:04 -05:00
Cody Soyland
990780bd93
Fix linter issues: staticcheck (covered by megacheck, along with gosimple and unused)
2018-07-20 11:19:24 -05:00
Cody Soyland
f01d850b17
Fix linter issues: gosimple
2018-07-20 09:06:43 -05:00
Cody Soyland
c464e0fe64
Fix linter issues: gofmt
2018-07-16 16:45:42 -05:00
Ben Johnson
bcd15ef271
peg: Allow single quoted key 'col'.
2018-07-09 18:31:27 +01:00
Cody Soyland
fb7de28557
Unexport pql.TimeFormat
2018-07-05 23:11:56 -05:00
Cody Soyland
75ea43c9da
Unexport pql.Parser
2018-07-05 23:11:56 -05:00
Cody Soyland
aa7f6fca75
Unexport pql.FormatValue
2018-07-05 23:11:56 -05:00
Cody Soyland
3a47638580
Unexport pql.Call.Keys
2018-07-05 23:11:56 -05:00
Matt Jaffee
d032c8941f
Merge branch 'develop' into dead-code-removal
2018-07-05 18:02:39 -05:00
Travis Turner
5717e32310
fix comment for IntArg
2018-07-05 16:36:37 -05:00
Travis Turner
b7a583d6a8
use Set() instead of SetValue() for integer fields
2018-07-05 16:24:40 -05:00
Cody Soyland
da4cd84820
Remove some dead code
2018-07-05 15:31:07 -05:00
Matt Jaffee
f757e10255
support newlines in more places
2018-07-03 16:28:51 -05:00
Matt Jaffee
4ab9c66070
allow dashes in frame names
2018-06-26 07:00:13 -05:00
Matt Jaffee
d1de586ea0
remove all oldpql and fuzzer code
2018-06-22 09:08:08 -05:00
Alan Bernstein
5bf9af4df3
Parser and test updates
2018-06-22 08:07:31 -05:00
Matt Jaffee
1a2fa51b63
Merge branch 'develop' into newpql
2018-06-20 09:31:42 -05:00
Matt Jaffee
205b7620bd
update SetColumnAttrs name
2018-06-20 09:31:20 -05:00
Matt Jaffee
08e84aa07f
time range support
2018-06-19 14:07:03 -05:00
Matt Jaffee
5c081d1518
more tests, fix bug where Condition wasn't pointer
2018-06-18 11:59:39 -05:00
Matt Jaffee
a6b6442ef4
more tests and fix range
2018-06-18 11:32:21 -05:00
Ben Johnson
060254e0d6
Key-to-ID Translation
...
This commit adds id-to-key translation to make it easier for users
to provide non-integer identifiers for rows & columns.
2018-06-15 16:45:05 -06:00
Matt Jaffee
23bca175ae
add tests, fix tests, fix bugs
2018-06-15 15:02:41 -05:00
Matt Jaffee
4b856bea55
change parser for new PQL
2018-06-15 12:22:16 -05:00
Matt Jaffee
1e05920742
fuzz testing and bug fixes
2018-06-15 08:34:14 -05:00
Matt Jaffee
2ddc2ceeeb
add old parser implementation to pql/internal/oldpql for comparison fuzz testing
2018-06-15 08:34:13 -05:00
Matt Jaffee
c66cb59f1d
remove -switch option from peg generator
2018-06-15 08:34:13 -05:00
Matt Jaffee
3656bc83a0
support quoted strings properly
2018-06-15 08:34:13 -05:00
Matt Jaffee
47233c8bee
replace PQL parser with one created by PEG parser generator
2018-06-15 08:34:12 -05:00
Travis Turner
2a9b1e9e5b
final Frame to Field rename
2018-06-06 01:27:12 -05:00
Matt Jaffee
47f7beaecc
WIP removing inverse
2018-05-25 17:18:38 -05:00
Travis
4304d341f7
Add support for field != null Range query
2017-10-06 11:36:41 -05:00
Travis Turner
1fb540f40b
Merge pull request #844 from travisturner/bug-fix-condition-string
...
Don't include an equal sign in the string representation of a Condition
2017-09-27 11:14:56 -05:00
Travis
2b88d278bc
Implements BETWEEN for Range queries.
...
The PQL looks like:
```
Range(frame=f, field0 >< [200,610])
```
One thing I noticed while implementing this is that it doesn't seem
like `FieldRange()` is used in either `Frame` or `View`; the Executor
calls `Fragment.FieldRange()` directly. The problem with this is that
the offset logic is calculated in the Frame, but since the Executor
doesn't go through Frame, then the Executor also has to calculate
the offset before calling `Fragment.FieldRange`. We should unify this
logic somewhere. Note, this applies to both `FieldRange` and
`FieldRangeBetween`.
2017-09-25 15:11:04 -05:00
Travis
51ca778d77
Don't include an equal sign in the string representation of a Condition
2017-09-25 14:51:15 -05:00
Ben Johnson
ad847f2c8a
Add field Range() support to Executor.
2017-08-24 13:34:57 -06:00
Ben Johnson
c36fdbfacb
Support PQL Range() queries for fields.
2017-08-12 11:39:25 -06:00
Ben Johnson
ca29f7692b
Fix failing tests when IPv6 is disabled.
...
Turning off IPv6 causes the tests to fail because the Go
`net.Listen()` function obtains a `[::]` address when using
a `localhost:0` bind address. Looking through the Go source
code, I don't see a good way to fix that.
This change adds a test flag to allow users to specify the
network name when running the test:
```sh
go test github.com/pilosa/pilosa/server -network tcp4
```
2017-06-01 14:43:59 -06:00
Alan Bernstein
64a12c939c
Fix typo in error message
2017-05-16 17:56:16 -05:00
Ben Johnson
0b8d935f1c
Add inverse TopN() support.
...
The TopN() call now supports an `inverse` boolean argument to
specify if the call should operate on the standard view or the
inverse view.
2017-05-15 10:35:48 -06:00
Ben Johnson
e3d6f96657
Add max-writes-per-requests limit.
...
A configurable limit has been added to restrict the number of
mutating calls in a `pql.Query`. This is to prevents requests from
timing out from large queries.
The default is set to 5000 writes per request and is configurable
through the configuration file and the command line flags.
2017-05-03 08:53:20 -06:00
Cody Soyland
3996b56b88
Apply Apache License 2.0
2017-04-28 14:22:03 -05:00
Travis
7dc06f918b
Determine if a Call is inverse or not so that the map to slices is correct.
2017-04-24 16:19:17 -05:00
Matt Jaffee
e6309d45e1
make sure exported functions are godoc'd
2017-04-18 15:10:59 -05:00
Matt Jaffee
0a324d14a5
add fix all package level docs
2017-04-18 14:11:42 -05:00