feat: add ROWID column type (type# 69) decoding#319
Open
rophy wants to merge 1 commit intobersler:masterfrom
Open
feat: add ROWID column type (type# 69) decoding#319rophy wants to merge 1 commit intobersler:masterfrom
rophy wants to merge 1 commit intobersler:masterfrom
Conversation
ROWID columns were unsupported — values were silently dropped. Add decoding from the 10-byte big-endian redo format (dataObj + DBA + slot) and output as Oracle's standard base64 ROWID string. UROWID (type 208) is unchanged — it keeps the existing hex format since UROWID can store variable-length logical ROWIDs from IOTs.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
ROWID columns (Oracle type# 69) are currently unsupported — their values are
silently dropped from the output. This adds decoding support.
Details
ROWID in redo logs is stored as 10 bytes big-endian:
dataObj(4 bytes) +DBA(4 bytes, afn<<22|block) +slot(2 bytes)Output uses Oracle's standard base64 ROWID format (e.g.
AAASnuAAMAAAAKtAAA),matching what
SELECT ROWID FROM ...returns.UROWID (type 208) is unchanged — it keeps the existing hex format since UROWID
can store variable-length logical ROWIDs from index-organized tables where base64
encoding would be incorrect.
Changes
SysCol.h: addROWID = 69to COLTYPE enumBuilder.cpp: decode 10-byte ROWID and output as base64 stringBuilderJson.h: add ROWID to known types filter + schema metadataBuilderProtobuf.h: add ROWID to known types filter + schema metadataVerification
Tested against Oracle Free 23ai — ROWID values match LogMiner's
SQL_REDOoutput.Format verified by hex-dumping raw redo log bytes and matching against LogMiner's
base64 ROWID.