Is it possible to generate or hard code values for optional fields? #441
Replies: 2 comments
-
HI @szakrewsky, |
Beta Was this translation helpful? Give feedback.
-
I spent some more time on this, but since it is through my employer, it is unlikely I will be able to contribute a fix. I do have a work around. This is with kloadgen version 5.6.3 and jmeter 5.6.3. The symptoms of this is that even though you set everything up to send a value, optional values will always be null. Optional values are UNIONS with null as a type. In this case the work around is:
|
Beta Was this translation helpful? Give feedback.
-
I am having a hard time generating values for optional fields. I have added some samples to the Fields Values List. I have also tried string and it types. For optional fields (union with nulls) kloadgen avro is always sending null. I looked at the code and it looks to me that kloadgen will skip all optional fields unless they meet that last field needed for parent qualification thing mentioned in the wiki. Can someone confirm or provide direction on how to make optional fields not send null?
Beta Was this translation helpful? Give feedback.
All reactions