public Document toDocument() {
        return this.historyRecord != null ? this.historyRecord.document() : this.tableChangeDoc;
    }
The Record represents a schema change event, it contains either one {@link HistoryRecord} or
{@link TableChange}.
inlong-agent/agent-plugins/src/main/java/org/apache/inlong/agent/plugin/message/SchemaRecord.java