Commit graph

9547 commits

Author SHA1 Message Date
Matthew Jaffee
aeb2ddbf61 update ramdisk mount 2022-12-17 13:10:46 -06:00
Matthew Jaffee
7ab117f5d1 remove in mem translate store
going to try making a ramdisk in CI to run tests
2022-12-17 13:10:46 -06:00
Matthew Jaffee
a58299def4 use separate qcx for write/read in test
now that min/max queries don't use a write Tx it seems we need to
separate read and write in the tests. Not sure I 100% understand this.
2022-12-16 17:05:38 -06:00
Matthew Jaffee
53a8f58e91 set transactions to writable: false for Max/Min/Value calls. these were mistakenly set to true during cleanup 2022-12-16 17:05:38 -06:00
tgruben
6d96a1474e
[FB-1822] Change dataframe disk format to Arrow from parquet (#2376)
* change default backend to arrow file format instead of parquet
2022-12-16 14:42:39 -06:00
Fletcher Haynes
f65367ab46
This fixes a bug with displaying errors returned from the SQL3 endpoint (#2374)
Co-authored-by: Fletcher Haynes <fletcher.haynes@generalassemb.ly>
2022-12-16 08:22:27 -08:00
Lory Cloutier
b1f5264a4b
Fix bulk ingest queries on multi-node databases (#2375)
CLOUD-1252
Implemented Jaffee's fix of checking for b.useShardTransactionalEndpoint
and only running the start/finish transaction block if it's false. Moved
stats timing to a separate defer so it could stay out of the if.
2022-12-15 19:36:53 -06:00
rachithrr
27963441ab
FB-1815: Implement CHAR() (#2369) 2022-12-15 22:04:51 +05:30
Travis Turner
4e8fe488de
Fix PQL distinct in dax (#2360)
* Fix PQL distinct in dax

When issuing a PQL Distinct() call (or any other call with a "index=" arg),
this commit will attempt to convert the value in the index arg with a
TableKeyer.

* Apply change to call.Children as well

* Add some PQL Distinct (join) test coverage
2022-12-15 07:59:20 -06:00
pokeeffe-molecula
15d2ee8b07
add allow_missing_values option to bulk insert (fb-1823) (#2372)
* add allow_missing_values option to bulk insert

* test coverage

* review feedback
2022-12-14 18:32:27 -06:00
pokeeffe-molecula
843312dfc9
handling missing epoch constraint correctly (#2366) 2022-12-14 17:53:17 -06:00
pokeeffe-molecula
3528ec8fc0
enable handling string representations of integers (#2367) 2022-12-14 16:58:18 -06:00
pokeeffe-molecula
c88d60c9ab
SHOW CREATE TABLE issues (fb-1810) (#2365)
* fixed ddl issues with cache type/size; removed shardwidth option; improved error message
2022-12-14 16:27:55 -06:00
Matthew Jaffee
033be81799 rename stupid manager names
ManagerManager -> ResourceManager
Manager -> Resource
2022-12-14 14:23:12 -06:00
Matthew Jaffee
cf1c9dae9a code review tweaks 2022-12-14 14:23:12 -06:00
Matthew Jaffee
4366ad41fb remove version/directive stuff from other snapshot endpoints 2022-12-14 14:23:12 -06:00
Matthew Jaffee
3ddf79160f clean up unused code/comments 2022-12-14 14:23:12 -06:00
Matthew Jaffee
bee666c07c fix dumb issue on storage manager test
changed empty snapshots/writelogs to return nil which was causing NPE
2022-12-14 14:23:12 -06:00
Matthew Jaffee
797b8bc31f fix lint 2022-12-14 14:23:12 -06:00
Matthew Jaffee
87d1c31607 several fixes and debug logging
- check that serverlessStorage is not nil before closing it
- check that we don't already hold a lock on a serverless storage
  Manager before trying to load it. This fixed at least one test failure.
2022-12-14 14:23:12 -06:00
Matthew Jaffee
dbb6d53f9d implement closing on dax, remove all locks when shutting down 2022-12-14 14:23:12 -06:00
Matthew Jaffee
bbaa7dd0f1 more WIP 2022-12-14 14:23:12 -06:00
Matthew Jaffee
35c472a54f extremely WIP 2022-12-14 14:23:12 -06:00
Matthew Jaffee
690a9370e9 remove alpha director (unused) 2022-12-14 14:23:12 -06:00
rachithrr
a4f18fb25f
FB-1812: implement stringsplit() (#2362) 2022-12-15 01:11:29 +05:30
Garrison Davis
3059529759
Upload rpms to Nexus and trigger m-cloud-images
Also upload arm builds
2022-12-14 12:09:03 -07:00
Garrison Davis
664ec83524
Remove manual jobs from CI
These jobs all need TLC and to be moved to the new ansible platform. For
now, we're removing them because if they accidentally get triggered,
they cost a lot of money very quickly, and don't necessarily get us
anything useful if they pass or fail.

Revert "Updating any AWS shape instance to use"
...our existing reserved instance types.  This simply ensures if we ever
do run one of these tests it is against existing reserved instances.  If
the tests get removed thats OK also."

This reverts commit 69be968d6d.
2022-12-14 11:30:39 -07:00
HHans09
c1dbc48fb2
fb-1809: SQL3 RTrim & LTrim func for strings (#2361) 2022-12-14 13:21:45 -05:00
Jason Allison
69be968d6d Updating any AWS shape instance to use our existing reserved instance types. This simply ensures if we ever do run one of these tests it is against existing reserved instances. If the tests get removed thats OK also. 2022-12-14 12:25:05 -05:00
pokeeffe-molecula
9759602f94
added updated_at column to show tables output (#2364) 2022-12-14 10:15:42 -06:00
pokeeffe-molecula
eca3168d63
implement having; create view experiment (#2357) 2022-12-13 17:43:37 -06:00
Bruce Baranowski
4773aabc4e
FB-1719: implement SQL3 lower() (#2358)
* Implemented SQL3 LOWER()
2022-12-13 14:59:05 -05:00
Lory Cloutier
a8996a149d
Prevent file corruption when writing tar backup to stdout (#2344)
* Prevent file corruption when writing tar backup to stdout

FB-1794

Tar backups written to stdout were coming out corrupt. This turned
out to be due to log messages getting written to stdout and ending
up in the tar file. We now check to see if the tar file and the log
are both going to stdout, and if they are, send the logs to stderr
instead.

Testing did not have any kind of consistency or validity check. We
now compare a tar file sent to a file and a tar file sent to stdout
to make sure they're the same. This does not guarantee correctness
but does at least catch this form of corruption.

* trying different index name

Co-authored-by: tgruben <tgruben@gmail.com>
Co-authored-by: Todd Gruben <todd@molecula.com>
2022-12-13 13:03:16 -06:00
pokeeffe-molecula
2146f407c3
fixed csv bugs (#2355) 2022-12-12 17:14:10 -06:00
Travis Turner
e572c8f2c1
Fix dax docker-compose (dc-up) which was broken by ServiceManager (#2356) 2022-12-12 15:42:57 -06:00
tgruben
f2a13c8bde
Fb 1874 dataframe-csv-loader featurebase subcommand (#2341)
Embeded dataframe-csv-loader command as featurebase subservice
2022-12-12 15:13:58 -06:00
HHans09
ac3ffac8e6
fb-1802 : Trim functionality (#2353)
* fb-1802 : Trim functionality

rebase

* fb-1802 : trim - updated as per review
2022-12-12 15:43:14 -05:00
Travis Turner
14f1930004
Make interfaces more specific than "MDS" (#2352)
* Make interfaces more specific than "MDS"

- Introduce `dax.Schemar` interface
- Introduce `dax.Noder` interface
- The rest is generally to standardize on the new interfaces.
- Remove `pilosa.SchemaInfoAPI` interface
- Move `TranslateNode` and `ComputeNode` types from controller to dax package
- Remove `queryer.FeatureBaseImporter`
- Remove `queryer.MDS` interface
- Remove `queryer.Importer` interface
- Identify types using an "MDS" interface and split into Noder/Schemar as necessary
- Changed `Queryer.orchestrator` to a `map[qual]*qualifiedOrchestrator` because we can't share an orchestrator across quals

* Convert orchestrator to use TableKeyer
2022-12-12 13:14:17 -06:00
Travis Turner
63cfdb5078
Thread Owner, UpdatedAt, UpdatedBy through SchemaAPI (#2351)
* Fix "qualifer" misspellings

* Remove `track_existence` and `shard_width` from SHOW TABLES output

* Thread Owner, UpdatedAt, UpdatedBy through SchemaAPI

I took the liberty of renaming "LastUpdatedUser" to "UpdateBy" to align
with "UpdatedAt".
2022-12-12 12:36:37 -06:00
rachithrr
9548e71f46
FB-1805: implement REPLACEALL() (#2349) 2022-12-12 22:42:53 +05:30
Travis Turner
a61d1a9571
Introduce TableKeyer interface; use in Execute() calls as "index" (#2350)
This commit introduces an interface called `TableKeyer` which anything that means to represent a "table"
can implement. Examples are `dax.QualifiedTable`, `dax.Table`, and `string` (for legacy pilosa calls
where Execute simply took `index string`).

In the case of `orchestrator.Execute()` and `qualifiedOrchestrator.Execute()`, we are intentionally strict
about which type of `TableKeyer` the respective method accepts. If we find, in the future, this is too
restrictive, we can loosen that; but for now it helps us understand what is expected.
2022-12-11 11:45:10 -06:00
Travis Turner
5110405f2f
Remove trackExistence check in batch (i.e. always build _exists) data. (#2348) 2022-12-09 17:30:10 -06:00
Travis Turner
12d608c80d
Move batch.Importer interface to pilosa.Importer (#2347)
* Move batch.Importer interface to pilosa.Importer

In addition to moving the interface, it updates all the methods to use
dax.TableID (for example) intead of a string pilosa index name.

* Change unused onPremImporter methods to no-op.

onPremImporter is a wrapper around API which implements the Importer
interface. This is currently only used by sql3 running locally in standard
(i.e not "serverless") mode. Because sql3 always sets
`useShardTransactionalEndpoint = true`, There are several methods which this
implemtation of the Importer interface does not use, and therefore they
intentionally no-op.
2022-12-09 14:24:47 -06:00
HHans09
57ce7c4c0e
Fb:1787 - Clean up (#2339)
* Fb:1787 - Clean up

* fb-1787 : String upper function

* Formatting the files
2022-12-09 14:19:17 -05:00
Travis Turner
734477aaee
Add Table.Description, Table.CreatedAt, Field.CreatedAt support to SchemaAPI (#2340)
* Thread Table.Description through SchemaAPI

* Thread Table.CreatedAt through SchemaAPI

* Thread Field.CreatedAt through SchemaAPI
2022-12-08 22:50:41 -06:00
rachithrr
aa2a62fda0
FB-1800: Implement SUBSTRING() (#2343)
substring(string, startIndex,length).
2022-12-09 05:20:15 +05:30
pokeeffe-molecula
728b1dc9f5
handle int-->bool map type conversions; handle single value-->(id|string)set map type conversions (#2342) 2022-12-08 15:41:11 -06:00
Fletcher Haynes
7ab453e289
This adds in support to the lattice UI application to use the SQL3 (#2338)
* This adds in support to the lattice UI application to use the SQL3
endpoint. If the `/sql` endpoint returns 404, it will use the SQL1
endpoint. If the `/sql` endpoint is available, it will send SQL queries
to that. It does not try the SQL1 endpoint if the SQL3 endpoint returns
an error processing the query. That is, it is all SQL3 or SQL1.

- Below are the specific changes:
- Adds a file that contains functions for interacting with http services as opposed to just grpc/event-based services. As of this commit, it is only the SQL3 endpoint.
- This adds a variable to track if we are using the SQL3 endpoint or not
- This adds a function to handle the response from the SQL3 endpoint
- Adds a function to eventServices to query the sql3 HTTP endpoint
- Fixed a missing semicolon in grpcServices


Co-authored-by: Fletcher Haynes <fletcher.haynes@generalassemb.ly>
2022-12-08 12:47:21 -08:00
Travis Turner
a15783cb49
Convert SchemaAPI interface to use dax.Table instead of pilosa.IndexInfo (#2336)
* WIP: Convert SchemaAPI to be DAX-centric

* Tables(), CreateField()

* CreateTable(), DeleteTable(), DeleteField()

* More cleanup

* Remove the old SchemaAPI
2022-12-08 11:35:17 -06:00
rachithrr
d33bf4811f
FB-1795: Implement REVERSE() scalar string function (#2335) 2022-12-08 04:01:30 +05:30