Commit graph

7769 commits

Author SHA1 Message Date
Todd Gruben
d6dd1e025b removed extra command complete message
cleanup
2021-09-25 13:53:19 -05:00
Todd Gruben
5176b7ff03 added sqlversion config option 2021-09-25 13:53:19 -05:00
Todd Gruben
2ca7b107d2 removed client1 from clustertests 2021-09-25 13:53:19 -05:00
Todd Gruben
9c8538ec5a docker fix not really related to anything 2021-09-25 13:53:19 -05:00
Todd Gruben
c56fd33924 wip 2021-09-25 13:51:02 -05:00
Todd Gruben
419d1ed05d linter cleanup 2021-09-25 13:51:02 -05:00
Todd Gruben
95dc4a1a50 basic looker connection tests pass
sql1 pass through works
2021-09-25 13:51:02 -05:00
Ben Johnson
ab8c42bfd9
Merge pull request #1714 from molecula/sql-col-mapping
CORE-860: Fix SQL column mappings
2021-09-25 11:23:40 -06:00
Ben Johnson
1527eea14b Fix SQL column mappings 2021-09-25 09:36:11 -06:00
Ben Johnson
9f50689509
Merge pull request #1712 from molecula/sql-type-check
Add SQL type checker
2021-09-24 17:07:52 -06:00
Ben Johnson
ff8f0cab96 Add SQL type checking 2021-09-24 14:02:20 -06:00
Samir Patel
ab5e7d4195
Merge pull request #1709 from 54mir/54mir/rename-pilosa-docker2
CORE-859 CORE-839 Rename docker builds to featurebase (with docker fix)
2021-09-23 10:46:50 -05:00
Samir Patel
3403f2f621 Merge branch '54mir/rename-pilosa-docker2' of github.com:54mir/pilosa into 54mir/rename-pilosa-docker2 2021-09-23 10:17:31 -05:00
Samir Patel
5324431ab0 Rename pilosa to featurebase 2021-09-23 10:16:14 -05:00
tgruben
db5143b7af
Merge branch 'master' into 54mir/rename-pilosa-docker2 2021-09-23 10:03:53 -05:00
Matthew Jaffee
930ec3a403
Merge pull request #1672 from jaffee/better-mmap-error
better explanation for 'cannot allocate memory' error
2021-09-23 09:10:09 -05:00
Matthew Jaffee
693606fa80 better explanation for 'cannot allocate memory' error 2021-09-23 08:32:12 -05:00
Samir Patel
839dd1cd43 Remove prints 2021-09-22 16:02:02 -05:00
Samir Patel
4699c840bc More rename to work with backup and cluster tests 2021-09-22 15:41:17 -05:00
Samir Patel
746ffd4bd1 Rename in docker-tag-push 2021-09-22 15:41:09 -05:00
Samir Patel
0ec855766c Rename in make docker-image 2021-09-22 15:41:05 -05:00
Samir Patel
3ca15cc3c4 Rename docker builds to featurebase 2021-09-22 15:41:00 -05:00
Samir Patel
44897d9310 docker fix 2021-09-22 15:35:52 -05:00
Ben Johnson
14fdfe478b
Merge pull request #1708 from molecula/sql-comment
CORE-860: Handle SQL comments during scan
2021-09-21 08:58:23 -06:00
Ben Johnson
ac022ce0ab CORE-860: Handle SQL comments during scan 2021-09-21 08:29:30 -06:00
Ben Johnson
521e4cadb1
Merge pull request #1707 from molecula/sql-group-by
CORE-830: Implement SQL GROUP BY
2021-09-20 08:28:27 -06:00
Ben Johnson
b4cbd45b84 Implement SQL GROUP BY 2021-09-19 08:45:35 -06:00
Matthew Jaffee
0452237b24
Merge pull request #1702 from seebs/bitmapRun
callback logic fixes for intersectionCallback and containerCallback
2021-09-16 16:06:08 -05:00
Matthew Jaffee
3e222d8771 tweak to locking which should avoid stall/deadlock w/ mutex check
The view.go change is straightforward and fairly obviously more
correct.

The field.go change avoids holding the field read lock for the
duration of the mutex check request. The thinking was that while the
read lock was held something else was attempting to get a write lock,
which blocked all other read locks and something was getting into a
loop. Seebs might have a more detailed explanation, but that's as far
as my understanding goes at the moment. I believe this change is safe
though as we don't read/modify any field level data structures after
grabbing the standard view.
2021-09-16 14:07:31 -05:00
Seebs
e7e3331fb4 test intersectionCallback more carefully
This takes our reasonably broad selection of predefined container
types and tries intersectionCallback on each pair of them, comparing
results against the results of plain old intersect(). We've had
several intersectionCallback fixes recently; every one of them
produces test failures here if reverted or broken, so I have at
least some confidence in this coverage.

Similarly, test everything on containerCallback, verifying that
we get the same set of values called back that we get from Slice().

Both of these were verified with -coverprofile to actually be
hitting all the lines of code that aren't insane edge case
checks like "what if a run is in the wrong order".
2021-09-16 14:05:35 -05:00
Seebs
12244dcbed record stats for intersectionCallback under the right name 2021-09-16 14:05:35 -05:00
Seebs
e0dfde9934 appease gofmt 2021-09-16 14:05:35 -05:00
Seebs
3ae12391c7 callback logic fixes for intersectionCallback and containerCallback
The inner loop of intersectionCallbackArrayArray's "fast"
case has
	for len(ca) > 0 && ca[0] < va {
	}
so we do not leave that loop unless len(ca) is 0, or
ca[0] >= va.

We then return from the whole function if len(ca) is 0,
so the only way we finish one iteration of the outer for
loop is if ca[0] >= va. Thus, this can be an `if` rather
than a `for`.

We also fix the logic for ArrayRun to make it require fewer
tests and be clearer about why the tests work and clearer about
always making progress.

And, finally, the bitmap/range callback logic, and the underlying
"callback per bit in word" logic, were both badly broken. In
particular, if a range started and ended in the same word, it would
hit the values in that word twice, once with them incorrectly
shifted, but then it would further garble any offsets past the first
in a word. Eww.
2021-09-16 14:05:35 -05:00
rachithrr
cd1e17d0ba
Merge pull request #1695 from rachithrr/decimal-groupby-added
CORE-777: Added DecimalAgg field in GroupCount to output decimal sum
2021-09-16 10:49:57 -05:00
rachithrr
9e84647e63
Merge branch 'master' into decimal-groupby-added 2021-09-16 09:49:31 -05:00
rachithrr
f549dae625 CORE-777: Added DecimalAgg field in GroupCount to output decimal sum
-created groupCountDecimal
-added test
2021-09-16 09:43:13 -05:00
Kasey C. Rodgers
61c6ffced8
Merge pull request #1690 from molecula/supportARM64-799
add support for ARM64 [CORE-799]
2021-09-14 08:07:09 -07:00
Kasey C. Rodgers
2ae1de8ad6 Update Makefile
corrected typo in docker-release section
2021-09-14 07:31:23 -07:00
kcrodgers24
efcb0768db wip 2021-09-14 07:31:23 -07:00
kcrodgers24
ba10b3dfde add support for ARM64 2021-09-14 07:31:23 -07:00
seebs
1b3e441645
Merge pull request #1697 from seebs/mutexFix
add clusters to MutexCheck test, fix silly bug revealed by doing so
2021-09-14 09:07:56 -05:00
tgruben
66871c70a8
Merge branch 'master' into mutexFix 2021-09-14 08:27:02 -05:00
nagamocha3000
248ec8ebff
Merge pull request #1677 from nagamocha3000/ha_key_translation
CORE-837 Perform partial replication for index keys
2021-09-14 10:53:44 +03:00
nagamocha3000
575854df8a Make index-key replication more resilient to network failures 2021-09-14 03:12:52 +03:00
Seebs
72444f3b87 add clusters to MutexCheck test, fix silly bug revealed by doing so
The merge lists behavior was flawed in that it would drop one item
from the list per merge, which means that, with high replication
and low number of distinct items, it could even produce an empty
list.

The actual "is there anything wrong" logic is fine, but the list of
clashing values set for a given record is not.

Unfortunately this also doubles the time the test takes, to
21 seconds on MacOS. OW.
2021-09-13 16:25:15 -05:00
seebs
0d568b0d52
Merge pull request #1687 from seebs/core850
make details optional and support limits on mutex checks
2021-09-09 16:17:53 -05:00
Seebs
e27085da66 check context occasionally while processing mutex check results
It's hard to do this remotely sanely for the fragments, but the
translation and collation process itself could be fairly slow on
large data sets, so we should check occasionally for canceled
context and return early if no one needs the result anyway.

Also, take out no-longer-correct comments from the test case.
2021-09-08 13:47:15 -05:00
Seebs
26d38c0ee0 make details optional and support limits on mutex checks
We support query parameters for details (default false) which
request additional data, and for a limit (default 0/MaxInt32)
on number of results returned to limit the amount of spam
produced if there's a lot of results. The simpler default
output should reduce load and runtime significantly, and the
ability to specify limits makes it easier to get reasonably
small responses.

There's some context support here, but the underlying filters
don't take contexts or check for them, which is probably
a flaw but might be a bit large to correct for this.
Despite being large, this set of changes is actually
fairly well contained within the mutex-checking code.
2021-09-08 11:59:47 -05:00
Ben Johnson
484fcd8cf2
Merge pull request #1684 from molecula/sql-select
CORE-807: Implement non-aggregate SELECT query
2021-09-08 08:26:25 -06:00
Ben Johnson
92646cbdf7 Implement non-aggregate SELECT query 2021-09-08 08:09:54 -06:00