You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Won't do — the array types are not being added. The asymmetry is being resolved from the other side instead: Text is removed in #660.
Taking the two halves of this issue separately.
The signed integer point (@SeppPenner's first comment, and the related #499) was addressed by #62 in March 2025, which added Int8, Int16, Int32 and Int64 alongside the unsigned types. That part is done.
The missing array types. Going through the enum, exactly one Basic Type lacked an array counterpart: Text. Rather than add TextArray, we are removing Text.
Text was never distinguishable from String. Both were defined as "String value (UTF-8)", both map to Protocol Buffers string, both ride in the same string_values array, and nothing in the specification ever said what made one different from the other. Inductive Automation's tag data types, which Sparkplug's are modelled on, deprecated Text in Ignition 8.1.8 and document no difference between the two either — and Ignition likewise has a String Array and no Text array, so the asymmetry you spotted here mirrors one upstream.
Adding TextArray would therefore have created a second array type whose elements are indistinguishable from StringArray's, duplicating the ambiguity rather than closing it. Sparkplug 4 is unreleased, so the type can go now at no cost.
The use Text was informally put to — large JSON, XML, long logs — is tracked as #444, which proposes a type for generic JSON. That is the defined successor.
The remaining gaps this issue touched, for the record:
UUID has no array type. Cheap to add if wanted, since it maps to string_values like String does, and unlike Text it has a defined meaning.
Bytes and File have no array types. Those would need a new repeated bytes field in ValueArray — real cost, and arguably Bytes already covers the case.
DataSet is already two-dimensional, so an array of them is unlikely to be wanted.
If any of those are worth pursuing, a focused issue each would be easier to act on than this one. Thank you for the report — it turned out to point at something larger than a missing enum value.
Resolved by #660, merged as e816288 — Text is removed rather than TextArray added, for the reasons in the comment above.
The DataType enum now runs 0–34 with no gaps: UUID is 14, DataSet 15, Bytes 16, File 17, Template 18, PropertySet 19, PropertySetList 20, the array types 21–33 and Command 34. Sparkplug 4 is unreleased, so closing the gap costs nothing; it was raised in review and kept deliberately.
Closing as won't do with respect to the original request, since the missing array types are not being added. The remaining gaps noted above — UUID, Bytes/File, and arrays of templates (#450) — are unaffected and would each be easier to act on as a focused issue.
Activity
SeppPenner commentedon Dec 7, 2023
True, there is also no useful way to add a value as
intorlonginstead ofuintorulong, I guess.SeppPenner commentedon Dec 7, 2023
Related issue: #499.
wes-johnson commentedon Nov 24, 2026
Won't do — the array types are not being added. The asymmetry is being resolved from the other side instead:
Textis removed in #660.Taking the two halves of this issue separately.
The signed integer point (@SeppPenner's first comment, and the related #499) was addressed by #62 in March 2025, which added
Int8,Int16,Int32andInt64alongside the unsigned types. That part is done.The missing array types. Going through the enum, exactly one Basic Type lacked an array counterpart:
Text. Rather than addTextArray, we are removingText.Textwas never distinguishable fromString. Both were defined as "String value (UTF-8)", both map to Protocol Buffersstring, both ride in the samestring_valuesarray, and nothing in the specification ever said what made one different from the other. Inductive Automation's tag data types, which Sparkplug's are modelled on, deprecatedTextin Ignition 8.1.8 and document no difference between the two either — and Ignition likewise has a String Array and no Text array, so the asymmetry you spotted here mirrors one upstream.Adding
TextArraywould therefore have created a second array type whose elements are indistinguishable fromStringArray's, duplicating the ambiguity rather than closing it. Sparkplug 4 is unreleased, so the type can go now at no cost.The use
Textwas informally put to — large JSON, XML, long logs — is tracked as #444, which proposes a type for generic JSON. That is the defined successor.The remaining gaps this issue touched, for the record:
UUIDhas no array type. Cheap to add if wanted, since it maps tostring_valueslikeStringdoes, and unlikeTextit has a defined meaning.BytesandFilehave no array types. Those would need a newrepeated bytesfield inValueArray— real cost, and arguablyBytesalready covers the case.DataSetis already two-dimensional, so an array of them is unlikely to be wanted.If any of those are worth pursuing, a focused issue each would be easier to act on than this one. Thank you for the report — it turned out to point at something larger than a missing enum value.
[eclipse-sparkplug#495] Close the gap Text left in the DataType enum
[eclipse-sparkplug#495] Restore the blank line before the Additional …
[#495] Remove the Text DataType
Merge pull request #660 from wes-johnson/495-remove-text
wes-johnson commentedon Nov 25, 2026
Resolved by #660, merged as e816288 —
Textis removed rather thanTextArrayadded, for the reasons in the comment above.The
DataTypeenum now runs 0–34 with no gaps:UUIDis 14,DataSet15,Bytes16,File17,Template18,PropertySet19,PropertySetList20, the array types 21–33 andCommand34. Sparkplug 4 is unreleased, so closing the gap costs nothing; it was raised in review and kept deliberately.Closing as won't do with respect to the original request, since the missing array types are not being added. The remaining gaps noted above —
UUID,Bytes/File, and arrays of templates (#450) — are unaffected and would each be easier to act on as a focused issue.SeppPenner commentedon Nov 30, 2026
@wes-johnson Thank you for the new information here.