Skip to content

Commit b746e01

Browse files
authored
Add comment
Refactor insertRowToLogTable to use get_row function for lazy evaluation and improve exit logic.
1 parent d4b55b5 commit b746e01

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/Interpreters/IcebergMetadataLog.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ struct IcebergMetadataLogElement
2424
void appendToBlock(MutableColumns & columns) const;
2525
};
2626

27+
/// Here `get_row` function is used instead `row` string to calculate string only when required.
28+
/// Inside `insertRowToLogTable` code can exit immediately after `iceberg_metadata_log_level` setting check.
2729
void insertRowToLogTable(
2830
const ContextPtr & local_context,
2931
std::function<String()> get_row,

0 commit comments

Comments
 (0)