Skip to content

Commit c7f2326

Browse files
committed
Add references to latest Python
1 parent a0d7ee6 commit c7f2326

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

python/pyarrow/_parquet.pyx

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1113,7 +1113,7 @@ cdef class FileMetaData(_Weakrefable):
11131113
"""
11141114
Parquet format version used in file (str, such as '1.0', '2.4').
11151115
1116-
If version is missing or unparsable, will default to assuming '2.6'.
1116+
If version is missing or unparsable, will default to assuming '2.12'.
11171117
"""
11181118
cdef ParquetVersion version = self._metadata.version()
11191119
if version == ParquetVersion_V1:
@@ -1122,9 +1122,21 @@ cdef class FileMetaData(_Weakrefable):
11221122
return '2.4'
11231123
elif version == ParquetVersion_V2_6:
11241124
return '2.6'
1125+
elif version == ParquetVersion_V2_7:
1126+
return '2.7'
1127+
elif version == ParquetVersion_V2_8:
1128+
return '2.8'
1129+
elif version == ParquetVersion_V2_9:
1130+
return '2.9'
1131+
elif version == ParquetVersion_V2_10:
1132+
return '2.10'
1133+
elif version == ParquetVersion_V2_11:
1134+
return '2.11'
1135+
elif version == ParquetVersion_V2_12:
1136+
return '2.12'
11251137
else:
1126-
warnings.warn(f'Unrecognized file version, assuming 2.6: {version}')
1127-
return '2.6'
1138+
warnings.warn(f'Unrecognized file version, assuming 2.12: {version}')
1139+
return '2.12'
11281140

11291141
@property
11301142
def created_by(self):

0 commit comments

Comments
 (0)