Commit 92a5963
Only create col_descs when needed
Per review feedback, optimized to only create col_descs when necessary:
- Created inside 'if column_encryption_policy:' block when policy is enabled
- Created in exception handler when needed for error reporting
- NOT created when no policy and no exceptions (the common fast path)
This avoids unnecessary list comprehension when column_encryption_policy is None.
Co-authored-by: mykaul <[email protected]>1 parent 8e82b03 commit 92a5963
1 file changed
+4
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
718 | 718 | | |
719 | 719 | | |
720 | 720 | | |
721 | | - | |
722 | 721 | | |
723 | 722 | | |
724 | 723 | | |
725 | 724 | | |
| 725 | + | |
| 726 | + | |
726 | 727 | | |
727 | 728 | | |
728 | 729 | | |
| |||
739 | 740 | | |
740 | 741 | | |
741 | 742 | | |
| 743 | + | |
| 744 | + | |
742 | 745 | | |
743 | 746 | | |
744 | 747 | | |
| |||
0 commit comments