Skip to content

Commit 05be81d

Browse files
committed
[SPARK-30192][SQL][FOLLOWUP] Rename SINGLETON to INSTANCE
### What changes were proposed in this pull request? This PR renames a variable `SINGLETON` to `INSTANCE`. ### Why are the changes needed? This is a minor change for consistency with the other parts. ### Does this PR introduce any user-facing change? No. ### How was this patch tested? Pass the existing tests. Closes #27409 from dongjoon-hyun/SPARK-30192. Authored-by: Dongjoon Hyun <[email protected]> Signed-off-by: Dongjoon Hyun <[email protected]>
1 parent 1cd19ad commit 05be81d

File tree

1 file changed

+2
-2
lines changed
  • sql/catalyst/src/main/java/org/apache/spark/sql/connector/catalog

1 file changed

+2
-2
lines changed

sql/catalyst/src/main/java/org/apache/spark/sql/connector/catalog/TableChange.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ public int hashCode() {
298298
interface ColumnPosition {
299299

300300
static ColumnPosition first() {
301-
return First.SINGLETON;
301+
return First.INSTANCE;
302302
}
303303

304304
static ColumnPosition after(String column) {
@@ -312,7 +312,7 @@ static ColumnPosition after(String column) {
312312
* be the first one within the struct.
313313
*/
314314
final class First implements ColumnPosition {
315-
private static final First SINGLETON = new First();
315+
private static final First INSTANCE = new First();
316316

317317
private First() {}
318318

0 commit comments

Comments
 (0)