featurebase/idk/kafka
Pranitha-malae 09baf99ce4
changes to add bool support in idk (#2240)
* initial changes to add bool support in idk

* modifying some default parameters for testing, will revert them later

* adding support for bool in making fragments function

* boolean values implementation without supporting empty or null values at this point

* Implement bool support in batch using a map (and a slice for nulls) (#2247)

* Implement bool support in batch using a map (and a slice for nulls)

* Keep the PackBools default for now

But set it explicity in the ingest tests which rely on it.

* Modify batch to construct bool update like mutex

The code in API.ImportRoaringShard has a switch statement which causes
bool fields to be handled like mutex fields. This means, that the
viewUpdate.Clear value should only contain data in the first "row" of
the fragment, which it will treat as records to clear for *all* rows.
This makes more sense for mutex fields; for bool fields, there's only
one other row to clear. But since the code is currently handling them
the same, we need to construct viewUpdate.Clear such that it conforms to
that pattern.

This commit also adds a test which covers this logic.

* Remove commented code; revert config for testing

This commit also removes the DELETE_SENTINEL case for non-packed bools,
since that isn't supported anyway.

* Revert default setting

* remove inconsistent type scope

* correcting the logic of string converstion to bool

* resolving an error in a test

* adding tests to cover code related to bool support in batch.go file and interface.go files

* modifying interfaces test

* added one more test case

Co-authored-by: Travis Turner <travis@pilosa.com>
Co-authored-by: Travis Turner <travis@molecula.com>
2022-10-19 12:16:38 -05:00
..
csrc FB-1597: unifying idk and featurebase (#2160) 2022-07-28 17:23:16 -05:00
testdata/schemas FB-1597: unifying idk and featurebase (#2160) 2022-07-28 17:23:16 -05:00
cmd.go FB-1597: unifying idk and featurebase (#2160) 2022-07-28 17:23:16 -05:00
cmd_delete_test.go changes to add bool support in idk (#2240) 2022-10-19 12:16:38 -05:00
cmd_test.go FB-1597: unifying idk and featurebase (#2160) 2022-07-28 17:23:16 -05:00
put.go FB-1597: unifying idk and featurebase (#2160) 2022-07-28 17:23:16 -05:00
putsource.go FB-1597: unifying idk and featurebase (#2160) 2022-07-28 17:23:16 -05:00
putsource_test.go FB-1597: unifying idk and featurebase (#2160) 2022-07-28 17:23:16 -05:00
source.go FB-1696 - fixed debug message to show topic's name instead of topic's address 2022-10-04 15:50:46 -05:00
source_test.go Fix some issues with running IDK tests in docker. (#2248) 2022-10-14 14:02:36 -05:00