这是indexloc提供的服务,不要输入任何密码
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions internal/database/compaction_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ func getTimeRangesToReorder(ctx context.Context, db *DuckDb, pk *partitionKey, r
if reindex {
rm, err := newReorderMetadata(ctx, db, pk)
if err != nil {
return nil, fmt.Errorf("failed to retiever stats for partition key: %w", err)
return nil, fmt.Errorf("failed to retrieve stats for partition key: %w", err)
}

// make a single time range
Expand Down Expand Up @@ -52,7 +52,7 @@ func getTimeRangesToReorder(ctx context.Context, db *DuckDb, pk *partitionKey, r
// get stats for the partition key
rm, err := newReorderMetadata(ctx, db, pk)
if err != nil {
return nil, fmt.Errorf("failed to retiever stats for partition key: %w", err)
return nil, fmt.Errorf("failed to retrieve stats for partition key: %w", err)
}
rm.unorderedRanges = unorderedRanges
return rm, nil
Expand Down
5 changes: 5 additions & 0 deletions internal/database/tables.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,11 @@ func GetLegacyTableViewSchema(ctx context.Context, viewName string, db *DuckDb)
return nil, fmt.Errorf("failed to scan column schema: %w", err)
}

// NOTE: legacy tailpipe views may include `rowid` which we must exclude from the schema as this is a DuckDb system column
// that is automatically added to every table
if columnName == "rowid" {
continue
}
col := buildColumnSchema(columnName, columnType)
ts.Columns = append(ts.Columns, col)
}
Expand Down