influxdb-client-java icon indicating copy to clipboard operation
influxdb-client-java copied to clipboard

BucketsApiImpl.createBucket does not convey schemaType

Open bmaso-dw opened this issue 2 years ago • 1 comments
trafficstars

Steps to reproduce: List the minimal actions needed to reproduce the behavior.

  1. issue a BucketsApi.createBucket request with a Bucket object having schemaType explicit
  2. 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.createBucket does not correctly invoke PostBucketRequest.schemaType on the request object. (See code here.) So it is basically ignoring the schema type set on the Bucket object.

bmaso-dw avatar May 30 '23 17:05 bmaso-dw

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

bednar avatar May 31 '23 07:05 bednar