Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Allow homogeneous data types to be configured #1533

Merged

Conversation

mnorbury
Copy link
Contributor

For OpenSearch (and presumably ElasticSearch) arrays (even in JSON objects) are limited to the same data types. This adds a configuration option to the writer test suite to only use the same data type in the JSON example data - allowing the test suite to be used for the OpenSearch plugin. Currently JSON objects in the ElasticSearch and OpenSearch plugins are mapped to strings.

For OpenSearch (and presumably ElasticSearch) arrays (even in JSON objects) are limited to the same data types. This adds a configuration option to the writer test suite to only use the same data type in the JSON example data - allowing the test suite to be used for the OpenSearch plugin. Currently JSON objects in the ElasticSearch and OpenSearch plugins are mapped to strings.
schema/testdata.go Outdated Show resolved Hide resolved
schema/testdata.go Show resolved Hide resolved
@mnorbury mnorbury force-pushed the feat/allow-homegenous-data-types-to-be-configured-for-tests branch from 7be7fc9 to 5be87e1 Compare February 27, 2024 10:33
Copy link

github-actions bot commented Feb 27, 2024

⏱️ Benchmark results

Comparing with 4b475bb

  • Glob-8 ns/op: 92.16 ⬆️ 0.77% increase vs. 4b475bb

@kodiakhq kodiakhq bot merged commit ca7cdb8 into main Feb 27, 2024
8 checks passed
@kodiakhq kodiakhq bot deleted the feat/allow-homegenous-data-types-to-be-configured-for-tests branch February 27, 2024 13:25
kodiakhq bot pushed a commit that referenced this pull request Feb 27, 2024
🤖 I have created a release *beep* *boop*
---


## [4.31.0](v4.30.0...v4.31.0) (2024-02-27)


### Features

* Allow homogeneous data types to be configured ([#1533](#1533)) ([ca7cdb8](ca7cdb8))


### Bug Fixes

* Default Plugin logger assumes plugin is a `source` ([#1531](#1531)) ([b7dcd56](b7dcd56))
* **deps:** Update module github.com/cloudquery/plugin-pb-go to v1.18.0 ([#1528](#1528)) ([4cc6ade](4cc6ade))
* **deps:** Update module github.com/cloudquery/plugin-pb-go to v1.19.0 ([#1532](#1532)) ([4b475bb](4b475bb))
* Support list scalars from JSON ([#1530](#1530)) ([cf13dd5](cf13dd5))

---
This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants