Commit graph

1444 commits

Author SHA1 Message Date
Matt Jaffee
6b3b459659 add license to roaring_internal_test 2017-05-22 09:46:52 -05:00
Matt Jaffee
a5918d01d9 fix offset check to make sense 2017-05-19 17:09:22 -05:00
Matt Jaffee
c0ddbe0e3f fix bitmapCountRange and test
had been thinking that index 0 was the most significant bit, but based on the
bitmapAdd function, it must be the least significant bit
2017-05-19 15:18:07 -05:00
Matt Jaffee
fb4651cdb8 fix 3 separate bugs in bitmapCountRange
in order of the diff:

1. When the start and end of the range fall in the same word, special handling
is needed to "mask" off the beginning and end of the word simultaneously to
avoid counting bits at the beginning or end of the word that aren't in the
range.

2. `i++` is needed at the end of the first partial word to avoid counting this
word in the next block.

3. the shift amount for right shifts is 64 - (end % 64) rather than just end
% 64. If end is (e.g.) 68, then 68 - 64 is 4 and we are only interested in the
first 4 bits of the word, so we must right shift by 60 bits, not 4 bits.
2017-05-18 12:04:37 -05:00
tgruben
4a14e38ebe Merge pull request #549 from tgruben/conditional-asm
asm build options for non amd64
2017-05-17 11:16:21 -05:00
Linh Vo
4dd8221cd6 Merge pull request #555 from linhvo/552-max-slice
552 max slice
2017-05-16 14:41:54 -05:00
Travis Turner
6fd630f2ae Merge pull request #554 from travisturner/handleGetSliceMax-proto-bug
fix bug in `handleGetSliceMax` that was causing protobuf request to r…
2017-05-16 14:08:25 -05:00
Linh Vo
81621e07b2 add tests 2017-05-16 13:12:08 -05:00
Travis
e31beb809b
fix bug in handleGetSliceMax that was causing protobuf request to return json 2017-05-16 12:26:25 -05:00
Linh Vo
f392853134 update sliceMaxByIndex by view 2017-05-16 11:11:11 -05:00
Linh Vo
f3d0aec46d Merge pull request #548 from linhvo/413-export-view
#413 set standard view as default for export command
2017-05-16 10:48:09 -05:00
Linh Vo
5de9a7d0d0 refactor view validator 2017-05-15 14:56:47 -05:00
Yuce Tekol
745888f5a3 Merge pull request #550 from yuce/add-coveralls
added goveralls
2017-05-15 22:32:41 +03:00
Ben Johnson
928ee49187 Merge pull request #551 from benbjohnson/515-topn-inverse
Add inverse TopN() support.
2017-05-15 12:53:15 -06:00
Cody Soyland
ef311c8932 Merge pull request #540 from codysoyland/makefile-updates
Makefile updates
2017-05-15 14:37:48 -04:00
Linh Vo
384329bc91 fix view always return error 2017-05-15 13:33:44 -05:00
Linh Vo
b635bdf970 #413 add tests and remove redundant word 2017-05-15 12:54:49 -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
Yuce Tekol
c8d03ff625
added goveralls 2017-05-15 19:35:04 +03:00
Todd Gruben
fbae0f4d15 asm build options for non amd64 2017-05-15 11:31:41 -05:00
Linh Vo
e20b9075e2 #413 set standard view as default for export command 2017-05-15 11:17:48 -05:00
alanbernstein
5d603f623b Merge pull request #537 from alanbernstein/webui-help
Add syntax hints tooltip to WebUI
2017-05-12 16:33:16 -05:00
Cody Soyland
a8a15a6f79 Merge pull request #546 from graphaelli/checksum-error-message
provide details on glide checksum mistmach
2017-05-12 17:26:41 -04:00
Gil Raphaelli
76354c69e9 provide details on glide checksum mistmach
before:

Step 6/13 : RUN wget ${GLIDE} -O /go/glide.tar.gz -q     && tar xf /go/glide.tar.gz     && mv /go/linux-amd64/glide /go/bin     && [ "$(sha256sum /go/bin/glide | cut -d' ' -f1)" = "$GLIDE_HASH" ]     && cd /go/src/github.com/pilosa/pilosa     && make vendor     && CGO_ENABLED=0 go install -a -ldflags "$ldflags" github.com/pilosa/pilosa/cmd/pilosa
 ---> Running in e2a6fcdf5930
The command '/bin/sh -c wget ${GLIDE} -O /go/glide.tar.gz -q     && tar xf /go/glide.tar.gz     && mv /go/linux-amd64/glide /go/bin     && [ "$(sha256sum /go/bin/glide | cut -d' ' -f1)" = "$GLIDE_HASH" ]     && cd /go/src/github.com/pilosa/pilosa     && make vendor     && CGO_ENABLED=0 go install -a -ldflags "$ldflags" github.com/pilosa/pilosa/cmd/pilosa' returned a non-zero code: 1
make: *** [docker] Error 1

after:

Step 6/13 : RUN wget ${GLIDE} -O /go/glide.tar.gz -q     && tar xf /go/glide.tar.gz     && mv /go/linux-amd64/glide /go/bin     && echo "${GLIDE_HASH}  /go/bin/glide" | shasum -a 256 -c -     && cd /go/src/github.com/pilosa/pilosa     && make vendor     && CGO_ENABLED=0 go install -a -ldflags "$ldflags" github.com/pilosa/pilosa/cmd/pilosa
 ---> Running in 5aaaab387641
shasum: WARNING: 1 computed checksum did NOT match
/go/bin/glide: FAILED
The command '/bin/sh -c wget ${GLIDE} -O /go/glide.tar.gz -q     && tar xf /go/glide.tar.gz     && mv /go/linux-amd64/glide /go/bin     && echo "${GLIDE_HASH}  /go/bin/glide" | shasum -a 256 -c -     && cd /go/src/github.com/pilosa/pilosa     && make vendor     && CGO_ENABLED=0 go install -a -ldflags "$ldflags" github.com/pilosa/pilosa/cmd/pilosa' returned a non-zero code: 1
make: *** [docker] Error 1
2017-05-12 16:48:47 -04:00
Cody Soyland
3a1bcc353e Add release target in Makefile 2017-05-10 14:04:09 -05:00
Cody Soyland
6c11746ac8 Fix vendor target as to not call "glide install" on every invocation 2017-05-10 13:59:34 -05:00
Cody Soyland
86c254bdbd Keep ldflags in one place 2017-05-10 13:57:41 -05:00
Alan Bernstein
3eff46b07a Use default row/column labels 2017-05-09 21:22:45 -05:00
Alan Bernstein
742ca5d18f Update autocomplete list 2017-05-09 17:53:47 -05:00
Alan Bernstein
43dac449b0 Fix broken html structure 2017-05-09 17:53:25 -05:00
Alan Bernstein
62d1c20eef Style fixes 2017-05-09 17:52:29 -05:00
Travis Turner
92641ae7e1 Merge pull request #519 from travisturner/proto-license
Add LICENSE to internal/ folder.
2017-05-09 10:53:40 -05:00
Cody Soyland
deab589fc0 Merge pull request #535 from codysoyland/docker-update
Use Docker multi-stage build in Dockerfile
2017-05-09 10:44:00 -04:00
Alan Bernstein
c7e0168729 Add syntax hints tooltip to WebUI 2017-05-08 17:59:18 -05:00
Ben Johnson
b7a73e97fd Merge pull request #533 from benbjohnson/inverse-range
Support inverse Range() queries.
2017-05-08 15:04:40 -06:00
Cody Soyland
1f1a23accd Move maintainer info to release stage, switch to LABEL instruction 2017-05-08 15:47:47 -05:00
Cody Soyland
37d0c4ce23 Use Docker multi-stage build in Dockerfile
This utilizes Docker multi-stage builds to produce a minimal Docker
image. Requires Docker 17.05.0.
2017-05-08 14:41:33 -05:00
Ben Johnson
d4ddf3676c
Support inverse Range() queries. 2017-05-08 09:46:01 -06:00
Travis Turner
4c9ced4a0a Merge pull request #532 from kalimatas/fix-link-to-contributing-guide
Link Contributing guide to file in repo instead of external site
2017-05-07 10:00:48 -05:00
Alexander Guz
09eea27094 Link Contributing guide to file in repo instead of external site 2017-05-07 15:12:41 +02:00
Yuce Tekol
a298904868 Merge pull request #527 from yuce/docker-update
docker update
2017-05-05 00:01:33 +03:00
Linh Vo
f7c65198cb Merge pull request #529 from linhvo/webui-options
Webui options
2017-05-04 10:40:01 -05:00
Cody Soyland
6d3bc1f597 Merge pull request #526 from codysoyland/badges
Add CLA Assistant badge and change to open-source Travis CI badge
2017-05-04 10:09:55 -04:00
Cody Soyland
41c41b58ae Switch to open-source Travis CI 2017-05-04 09:00:12 -05:00
Cody Soyland
05ff5e3c44 Add CLA Assistant badge 2017-05-04 08:58:51 -05:00
tgruben
bc2ffaad94 Merge pull request #528 from dgryski/vet-assembly
roaring: fix vet issues with the assembly code
2017-05-04 08:35:07 -05:00
Damian Gryski
62d6edd1ca roaring: fix vet issues with the assembly code
assembly_amd64.s:3: [amd64] hasAsm: wrong argument size 0; expected $...-1
assembly_amd64.s:11: [amd64] POPCNTQ: wrong argument size 8; expected $...-16
assembly_amd64.s:12: [amd64] POPCNTQ: unknown variable x; offset 0 is memory+0(FP)
assembly_amd64.s:17: [amd64] BSFQ: wrong argument size 8; expected $...-16
assembly_amd64.s:18: [amd64] BSFQ: unknown variable x; offset 0 is memory+0(FP)
assembly_amd64.s:28: [amd64] popcntSliceAsm: invalid offset s+8(FP); expected s+0(FP), s_base+0(FP), s_len+8(FP), or s_cap+16(FP)
assembly_amd64.s:43: [amd64] popcntMaskSliceAsm: invalid offset s+8(FP); expected s+0(FP), s_base+0(FP), s_len+8(FP), or s_cap+16(FP)
assembly_amd64.s:63: [amd64] popcntAndSliceAsm: invalid offset s+8(FP); expected s+0(FP), s_base+0(FP), s_len+8(FP), or s_cap+16(FP)
assembly_amd64.s:82: [amd64] popcntOrSliceAsm: invalid offset s+8(FP); expected s+0(FP), s_base+0(FP), s_len+8(FP), or s_cap+16(FP)
assembly_amd64.s:101: [amd64] popcntXorSliceAsm: invalid offset s+8(FP); expected s+0(FP), s_base+0(FP), s_len+8(FP), or s_cap+16(FP)
2017-05-04 11:01:10 +02:00
Linh Vo
5669495574 Merge branch 'master' of github.com:pilosa/pilosa into webui-options 2017-05-03 23:23:40 -05:00
Linh Vo
565ed02713 #511 webui options 2017-05-03 23:23:24 -05:00
Yuce Tekol
df59037942
Update golang to 1.8.1; fix pilosa binary version and build time; download precompiled glide 2017-05-04 02:05:09 +03:00