influxdb-client-java
influxdb-client-java copied to clipboard
BucketsApiImpl.createBucket does not convey schemaType
trafficstars
Steps to reproduce: List the minimal actions needed to reproduce the behavior.
- issue a
BucketsApi.createBucketrequest with aBucketobject havingschemaTypeexplicit - verify that the created bucket has schema type implicit
Expected behavior:
- Obviously one would expect the bucket to have explicit bucket schema type, not implicit
Actual behavior:
- The created bucket has implicit schema type
Problem lines of code
BucketsApiImpl.createBucketdoes not correctly invokePostBucketRequest.schemaTypeon the request object. (See code here.) So it is basically ignoring the schema type set on theBucketobject.
Hi @bmaso-dw,
thanks for using our client.
Is this something you would be willing to help with? All PR is welcome and we will be happy to review your submission.
Regards