Hi, we added a column to a schema via PUT the sche...
# troubleshooting
e
Hi, we added a column to a schema via PUT the schema api (it's in the kafka topic) but still do not see data, i.e. the select list does not contain that column. Do we need to restart the servers or do some other api call?
Or do we have to wait for new segments?
x
the segment created after the schema call should have new column
Or you can reload the consuming segments or just restart pinot server
e
Oh nice! How do you reload consuming segments?
Ah, is it the "reload table if backwards compatible" checkbox in the swagger page?
x
there is a swagger api to reload a segment. I haven’t used the UI button :p
👍 1
e
thx!
one question - does that have a significant performance impact? i.e. does it regenerate the segments?
x
yes, it will drop current segment and try to recreate and re-consume it
e
Oh, so older segments should not be reloaded, i.e. if the kafka topic no longer contains the old data, right?
x
you can specify the segment name in that call to reload
👍 1
e
sg, thanks @Xiang Fu!
x
if reloading the table, it will touch all segments
e
oh, so we could lose data if the kafka topic no longer contains the offsets from that segment, right?
x
yes, if your current segment is very large
👍 1
the same issue will happen when you restart the server though
💡 1
e
this is all really good to know, thanks! It looks like restarting the servers worked for us.
Much appreciated @Xiang Fu! you helped us again:)