This is an automated email from the ASF dual-hosted git repository.
fokko pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/iceberg.git
The following commit(s) were added to refs/heads/master by this push:
new b15dcb5070 Python: Rename Reader to Writer (#8140)
b15dcb5070 is described below
commit b15dcb50703bf80b318371ea8331ce8eddf35b08
Author: Fokko Driesprong <[email protected]>
AuthorDate: Mon Jul 24 14:09:29 2023 +0200
Python: Rename Reader to Writer (#8140)
---
python/pyiceberg/avro/writer.py | 13 +++++--------
1 file changed, 5 insertions(+), 8 deletions(-)
diff --git a/python/pyiceberg/avro/writer.py b/python/pyiceberg/avro/writer.py
index 086b1a9555..8ac44036e1 100644
--- a/python/pyiceberg/avro/writer.py
+++ b/python/pyiceberg/avro/writer.py
@@ -15,13 +15,10 @@
# specific language governing permissions and limitations
# under the License.
"""
-Classes for building the Reader tree.
+Classes for building the Writer tree.
-Constructing a reader tree from the schema makes it easy
-to decouple the reader implementation from the schema.
-
-The reader tree can be changed in such a way that the
-read schema is different, while respecting the read schema.
+Constructing a writer tree from the schema makes it easy
+to decouple the writing implementation from the schema.
"""
from __future__ import annotations
@@ -127,7 +124,7 @@ class FixedWriter(Writer):
def __repr__(self) -> str:
"""Returns string representation of this object."""
- return f"FixedReader({self._len})"
+ return f"FixedWriter({self._len})"
class BinaryWriter(Writer):
@@ -147,7 +144,7 @@ class DecimalWriter(Writer):
def __repr__(self) -> str:
"""Returns string representation of this object."""
- return f"DecimalReader({self.precision}, {self.scale})"
+ return f"DecimalWriter({self.precision}, {self.scale})"
@dataclass(frozen=True)