Fokko commented on code in PR #339:
URL: https://github.com/apache/iceberg-go/pull/339#discussion_r2001809591
##########
table/transaction.go:
##########
@@ -178,14 +179,39 @@ func (t *Transaction) AddFiles(files []string,
snapshotProps iceberg.Properties,
return t.apply(updates, reqs)
}
-func (t *Transaction) StagedTable() (*Table, error) {
+func (t *Transaction) Scan(opts ...ScanOption) (*Scan, error) {
updatedMeta, err := t.meta.Build()
if err != nil {
return nil, err
}
- return New(t.tbl.identifier, updatedMeta,
- updatedMeta.Location(), t.tbl.fs, t.tbl.cat), nil
+ s := &Scan{
+ metadata: updatedMeta,
+ io: t.tbl.fs,
+ rowFilter: iceberg.AlwaysTrue{},
+ selectedFields: []string{"*"},
+ caseSensitive: true,
+ limit: ScanNoLimit,
Review Comment:
If they don't do anything, maybe better to leave them out?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]