Commit Graph

1967 Commits (62257ea897f20f2ebb2e65fa090b208d111c16ff)

Author SHA1 Message Date
Andrew Lamb a316b16960
feat: Change table_names to return either Some(set) or None, rather than a plan (try 2) (#776)
* feat: Change table_names to return either Some(set) or None, rather than a plan

* docs: improve comments

* docs: Apply suggestions from code review

Co-authored-by: Carol (Nichols || Goulding) <193874+carols10cents@users.noreply.github.com>

* fix: merge conflict

* fix: don't clone a string unless needed

Co-authored-by: Carol (Nichols || Goulding) <193874+carols10cents@users.noreply.github.com>
2021-02-09 12:20:59 -05:00
Raphael Taylor-Davies ddde272775
Merge pull request #768 from influxdata/fix-integration-tests
fix: Fix influxdb_iox_client integration tests
2021-02-09 11:07:53 +00:00
Raphael Taylor-Davies 18ff486138 fix: Fix influxdb_iox_client integration tests 2021-02-09 10:20:25 +00:00
Paul Dix e5da2ab589
feat: add ability to roll up summaries from multiple chunks (#763) 2021-02-08 18:11:21 -05:00
Andrew Lamb 5aed13899c fix: capitalization, neat and tidy 2021-02-08 16:45:11 -05:00
Jake Swensen cd8602086f
fix: influxdb2_client example project (#770)
* fix: influxdb2_client: enable rt-multi-thread

* fix: influxdb2_client: enable reqwest tls

Remove `default-features = false`. The default features of reqwest
enable "default-tls" which is required for support of https transport.
2021-02-08 16:43:27 -05:00
Andrew Lamb 329d288dc3 chore: Add examples to CI tests 2021-02-08 16:39:32 -05:00
Carol (Nichols || Goulding) c17feb998a feat: Implement display on FilePath 2021-02-08 15:13:25 -05:00
Raphael Taylor-Davies f66702b904
Merge pull request #758 from influxdata/add-wal-meta-endpoint
feat: add WAL metadata endpoint (#724)
2021-02-08 16:55:40 +00:00
Raphael Taylor-Davies 143488fae9 feat: add WAL metadata endpoint (#724) 2021-02-08 16:21:34 +00:00
Andrew Lamb 8399c56587
feat: remove RwLock on entire ReadBuffer (#761) 2021-02-05 16:58:17 -05:00
Andrew Lamb 74b8e8ec7d
refactor: Break Database query tests into their own files + add basic SQL tests (#760)
* refactor: break query tests into separate modules

* test: Add basic sql tests
2021-02-05 16:04:41 -05:00
Andrew Lamb b32e86e240
refactor: Remove async locking from test database (#756)
* refactor: Remove async locking from test database

* refactor: update service tests with test database

Co-authored-by: Carol (Nichols || Goulding) <193874+carols10cents@users.noreply.github.com>
2021-02-05 15:44:15 -05:00
Edd Robinson 4e3293ad87
Merge pull request #727 from influxdata/er/feat/read_buffer/column_names
feat: add support for getting column names from Read Buffer
2021-02-05 15:45:03 +00:00
Edd Robinson f0748cc379 refactor: address PR feedback
Co-authored-by: Carol (Nichols || Goulding) <193874+carols10cents@users.noreply.github.com>
2021-02-05 15:28:20 +00:00
Edd Robinson 48b29a9c72 refactor: change name back 2021-02-05 15:28:20 +00:00
Edd Robinson 6bec4c6eef feat: expose column_names via external API 2021-02-05 15:28:20 +00:00
Edd Robinson fd28738abf fix: implement on all types 2021-02-05 15:28:20 +00:00
Edd Robinson 519db7e8f9 feat: implement column_names on row group 2021-02-05 15:28:20 +00:00
Edd Robinson 115e542e70 feat: add non-null checking to column abstraction 2021-02-05 15:28:20 +00:00
Edd Robinson 4614abb7f8 feat: teach encoders ability to detect non-null values 2021-02-05 15:28:20 +00:00
Carol (Nichols || Goulding) d51b68c5b2
Merge pull request #752 from influxdata/cn+jg/file-delimiter 2021-02-05 09:58:35 -05:00
Carol (Nichols || Goulding) 076f67285d
Merge branch 'main' into cn+jg/file-delimiter 2021-02-05 09:45:34 -05:00
Paul Dix 47bc28460e
refactor: rename partition, table, and column in parition_meta for clarity (#757)
* refactor: rename partition, table, and column in parition_meta for clarity
2021-02-05 08:00:22 -05:00
Paul Dix de7bc7d645
feat: add column name to the partition metadata summaries (#755) 2021-02-05 07:20:16 -05:00
Andrew Lamb 3ec483b769
refactor: Reduce async in mutable buffer, use std::sync (#749)
* refactor: Reduce async in mutable buffer, use std::sync

* fix: logical confict with new code
2021-02-05 06:47:40 -05:00
Raphael Taylor-Davies a06fdf3a5f
refactor: rename http_routes module to http (#751) 2021-02-05 05:52:06 -05:00
Carol (Nichols || Goulding) fbf776c6b3
chore: Clean up Cargo.tomls (#754)
* fix: test_helpers crate should only be a dev-dep

* fix: object_store no longer has a build script, so no longer needs a build dep

* chore: Alphabetize all Cargo.tomls
2021-02-04 18:56:02 -05:00
Marko Mikulicic 14cb4b4fdc
fix: Fix copy&pasted check_response descriptions (#740)
Copy pasta is best pasta
2021-02-04 18:28:08 -05:00
Paul Dix 5c3661dd91 chore: refactor how columns are kept in the table in the mutable buffer
This one is a bit of a yak shave in advance of adding column names to the summary statistics. I needed the column and its name (or identifier) to be together, rather than the id to index map that existed before. I think the table_id and column_id stuff should be refactored out over time since they add a ton of complexity to the code and don't add much value. Having those as Strings would be much easier and probably be a drop in the bucket for memory usage. Basically, I don't think they need to be interned. But that would be an even more massive refactor touching so many things in the MutableBuffer, I leave it as a later exercise.

Hopefully this makes the code simpler and cleaner in the interim and it gives me the column_id with the column so that I can easily look up the name when generating the summary statistics for a chunk.
2021-02-04 16:31:55 -05:00
Carol (Nichols || Goulding) 8b18003e19 test: Don't check file metadata because SystemTime is not monotonic
See https://doc.rust-lang.org/std/time/struct.SystemTime.html
2021-02-04 15:46:11 -05:00
Carol (Nichols || Goulding) fa8594327d test: Add a better failure message to aid debugging 2021-02-04 15:12:33 -05:00
Paul Dix 1f8043a3f8 feat: add approximate memory size tracking to mutable buffer
This updates the mutable buffer, partitions, chunks, dictionary, tables, and individual columns to be able to return their approximate memory size used. This doesn't aim to be exact. There are spots where I'm not counting table or column pointers or the partition key. My expectation is that the data size will dominate and a few pointers here and there won't matter.
2021-02-04 13:50:43 -05:00
Carol (Nichols || Goulding) abbd29aeeb fix: Use Self in From impls 2021-02-04 13:40:33 -05:00
Carol (Nichols || Goulding) 3f1434e0e4 refactor: Remove redundant parts of error variant names
This info is now conveyed by the module each error comes from.
2021-02-04 13:04:52 -05:00
Carol (Nichols || Goulding) af7a5fa952 fix: Use walkdir::Errors within disk::Errors
I didn't want the object store lib Error to have to know about walkdir,
but I feel better about it now that this error type is scoped to the
disk module. The walkdir errors might have a bit more information.
2021-02-04 13:04:52 -05:00
Carol (Nichols || Goulding) 80581c9084 fix: Remove vestigial error types 2021-02-04 13:04:52 -05:00
Carol (Nichols || Goulding) f8fb24b88c refactor: Extract In-memory memory::Error 2021-02-04 13:04:52 -05:00
Carol (Nichols || Goulding) 8e6a06ebb2 refactor: Extract Azure azure::Error 2021-02-04 13:04:52 -05:00
Carol (Nichols || Goulding) 841f4ee314 refactor: Extract AWS S3 aws::Error 2021-02-04 13:04:52 -05:00
Carol (Nichols || Goulding) 1492e52e57 refactor: Extract Google Cloud Storage gcp::Error 2021-02-04 13:04:52 -05:00
Carol (Nichols || Goulding) f795c56c8d refactor: Start splitting up the object store error type; extract disk::Error
It's starting to get out of control. Time to fix that.
2021-02-04 13:04:52 -05:00
Carol (Nichols || Goulding) f9454fb57f feat: Implement list_with_delimiter for File object store
Fixes #688.
2021-02-04 13:04:52 -05:00
Carol (Nichols || Goulding) 5b18f7dbea feat: Hook DirsAndFileName push_part_as_dir to FilePath 2021-02-04 13:04:52 -05:00
Carol (Nichols || Goulding) a7cd8a2796 feat: Add a way to unset a file name in an object store path 2021-02-04 13:04:52 -05:00
Carol (Nichols || Goulding) c722188c5a feat: Connect parts_after_prefix from DirsAndFileName to FilePath
This will be useful in the File object store's list_with_delimiter.
2021-02-04 13:04:52 -05:00
Carol (Nichols || Goulding) c66efa80d1 feat: Implement PartialOrd and Ord for FilePath
This allows storing FilePaths in a BTreeSet and ordering FilePaths.
2021-02-04 13:04:52 -05:00
Carol (Nichols || Goulding) fd39315388 refactor: Improve error name
I thought this only had to do with the InMemory Put request, but it's a
bit more general than that. Hopefully clarifying the purpose of this
error.
2021-02-04 13:04:52 -05:00
Jake Goulding 678044e08a fix: test isn't a special extension recognized by object storage
This test was invalid because there are cases in which we use the
assumption that all file names in object storage should end with
`.json`, `.parquet`, or `.segment`.
2021-02-04 13:04:52 -05:00
Andrew Lamb 13b097728f
fix: Improve code, comments and error messages for consistency (#737)
* fix: Improve code, comments and error messages for consistency

* fix: update error message
2021-02-04 12:05:24 -05:00