You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: bindings/python/src/manifest.rs
+6-25Lines changed: 6 additions & 25 deletions
Original file line number
Diff line number
Diff line change
@@ -15,12 +15,12 @@
15
15
// specific language governing permissions and limitations
16
16
// under the License.
17
17
18
-
use iceberg::spec::{DataContentType,DataFile,DataFileFormat,FieldSummary,FormatVersion,Literal,Manifest,ManifestContentType,ManifestEntry,ManifestFile,ManifestList,ManifestStatus,PrimitiveLiteral,StructType,Type};
18
+
use iceberg::spec::{DataFile,DataFileFormat,FieldSummary,FormatVersion,Literal,Manifest,ManifestEntry,ManifestFile,ManifestList,ManifestStatus,PrimitiveLiteral,StructType,Type};
19
+
use iceberg::{Error,ErrorKind};
19
20
use pyo3::prelude::*;
21
+
use pyo3::types::PyAny;
20
22
use std::collections::HashMap;
21
23
use std::sync::Arc;
22
-
use pyo3::types::PyAny;
23
-
use iceberg::{Error,ErrorKind};
24
24
25
25
#[pyclass]
26
26
pubstructPyLiteral{
@@ -44,13 +44,7 @@ impl PyDataFile {
44
44
45
45
#[getter]
46
46
fncontent(&self) -> i32{
47
-
// TODO: Maps the enum back to the int
48
-
// I have a feeling this can be done more intelligently
49
-
matchself.inner.content_type(){
50
-
DataContentType::Data => 0,
51
-
DataContentType::PositionDeletes => 1,
52
-
DataContentType::EqualityDeletes => 2,
53
-
}
47
+
self.inner.content_type()asi32
54
48
}
55
49
56
50
#[getter]
@@ -60,8 +54,6 @@ impl PyDataFile {
60
54
61
55
#[getter]
62
56
fnfile_format(&self) -> &str{
63
-
// TODO: Maps the enum back to the int
64
-
// I have a feeling this can be done more intelligently
0 commit comments