Commit b246d7f
[SPARK-57462][PYTHON][SQL] Drop now-dead nanos precision branch in assertSchemaEqual
Since typeName() now embeds the precision (e.g. timestamp_ntz(9)),
compare_datatypes_ignore_nullable already distinguishes precisions at the typeName
equality check, so the AnyTimestampNanoType branch (and its now-inaccurate comment
claiming the type name does not distinguish precisions) is dead. Remove the branch
and its unused import; behavior is unchanged -- same precision stays equal under
ignoreNullable, and different precisions / micros-vs-nanos stay distinct.
Co-authored-by: Isaac <no-reply@databricks.com>1 parent ebd7a72 commit b246d7f
1 file changed
Lines changed: 1 addition & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
| 44 | + | |
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| |||
701 | 701 | | |
702 | 702 | | |
703 | 703 | | |
704 | | - | |
705 | | - | |
706 | | - | |
707 | | - | |
708 | | - | |
709 | 704 | | |
710 | 705 | | |
711 | 706 | | |
| |||
0 commit comments