@@ -497,8 +497,8 @@ func addColumn(b BuildCtx, spec addColumnSpec, n tree.NodeFormatter) (backing *s
497497 // recognize this and drop redundant primary indexes appropriately.
498498 addStoredColumnToPrimaryIndexTargeting (b , spec .tbl .TableID , inflatedChain .oldSpec .primary , spec .col , scpb .ToPublic )
499499 }
500- addStoredColumnToPrimaryIndexTargeting (b , spec .tbl .TableID , inflatedChain .inter1Spec .primary , spec .col , scpb .Transient )
501- addStoredColumnToPrimaryIndexTargeting (b , spec .tbl .TableID , inflatedChain .inter2Spec .primary , spec .col , scpb .Transient )
500+ addStoredColumnToPrimaryIndexTargeting (b , spec .tbl .TableID , inflatedChain .inter1Spec .primary , spec .col , scpb .TransientAbsent )
501+ addStoredColumnToPrimaryIndexTargeting (b , spec .tbl .TableID , inflatedChain .inter2Spec .primary , spec .col , scpb .TransientAbsent )
502502 addStoredColumnToPrimaryIndexTargeting (b , spec .tbl .TableID , inflatedChain .finalSpec .primary , spec .col , scpb .ToPublic )
503503 return inflatedChain .finalSpec .primary
504504 }
@@ -521,8 +521,8 @@ func addColumn(b BuildCtx, spec addColumnSpec, n tree.NodeFormatter) (backing *s
521521
522522// addStoredColumnToPrimaryIndexTargeting adds a stored column `col` to primary
523523// index `idx` and its associated temporary index.
524- // The column in primary index is targeting `target` (either ToPublic or Transient ),
525- // and the column in its temporary index is always targeting Transient .
524+ // The column in primary index is targeting `target` (either ToPublic or TransientAbsent ),
525+ // and the column in its temporary index is always targeting TransientAbsent .
526526func addStoredColumnToPrimaryIndexTargeting (
527527 b BuildCtx ,
528528 tableID catid.DescID ,
@@ -531,7 +531,7 @@ func addStoredColumnToPrimaryIndexTargeting(
531531 target scpb.TargetStatus ,
532532) {
533533 addIndexColumnToInternal (b , tableID , idx .IndexID , col .ColumnID , scpb .IndexColumn_STORED , target )
534- addIndexColumnToInternal (b , tableID , idx .TemporaryIndexID , col .ColumnID , scpb .IndexColumn_STORED , scpb .Transient )
534+ addIndexColumnToInternal (b , tableID , idx .TemporaryIndexID , col .ColumnID , scpb .IndexColumn_STORED , scpb .TransientAbsent )
535535}
536536
537537func addIndexColumnToInternal (
@@ -569,7 +569,7 @@ func addIndexColumnToInternal(
569569 switch target {
570570 case scpb .ToPublic :
571571 b .Add (& indexCol )
572- case scpb .Transient :
572+ case scpb .TransientAbsent :
573573 b .AddTransient (& indexCol )
574574 default :
575575 panic (errors .AssertionFailedf ("programming error: add index column element " +
0 commit comments