Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
fixes: #4928
The server response when describing a source schema now includes
fieldType='SYSTEM'
orfieldType='KEY'
to differentiate system columns, i.e. ROWTIME, and key columns from value column.Old output:
New output:
The default is no field type. This design decision was taken as the
FieldInfo
pojo is used not just to describe the columns in the schema, but also fields in structs and a fieldType ofVALUE
wouldn't make much sense for a struct field. Where as no field type kind of works.Note, if a column in the value has also been identified as a 'key' column using the
WITH(KEY)
syntax, then bothROWKEY
and that column will be flagged with(key)
. However, theWITH(KEY)
syntax is going v. soon, so this isn't really an issue. (#3537)Testing done
usual + manual
Reviewer checklist