Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add read_avro and list_avro_columns for rework on Splittable Avro support #399

Merged
merged 1 commit into from
Aug 4, 2019

Conversation

yongtang
Copy link
Member

This PR is part of the effort to rework on Dataset with large files reading into Tensors first to speed up performance. See #382 and #366 for related discussions.

Summary:

  1. read_avro is able to read a avro file within the range of [offset, offset+length] (Splittable)
  2. we use primitive read_avro C++ ops to read in big chunks and then wire up with tf.data.Dataset
  3. read_avro could be used in other places.
  4. AvroDataset automatically find out the dtype in eager mode, in graph mode, user has
    to specify the dtype in kwargs.

Signed-off-by: Yong Tang yong.tang.github@outlook.com

…port

This PR is part of the effort to rework on Dataset with large files reading into Tensors first to speed up performance. See 382 and 366 for related discussions.

Summary:

1) read_avro is able to read a avro file within the range of [offset, offset+length] (Splittable)
2) we use primitive read_avro C++ ops to read in big chunks and then wire up with tf.data.Dataset
3) read_avro could be used in other places.
4) AvroDataset automatically find out the dtype in eager mode, in graph mode, user has
   to specify the dtype in kwargs.

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
@yongtang
Copy link
Member Author

yongtang commented Aug 4, 2019

Also plan to merge this PR, as it exposes a primitive op (read_avro) which could be more useful than dataset (unless directly passed to tf.keras).

@yongtang yongtang merged commit 77ee1da into tensorflow:master Aug 4, 2019
@yongtang yongtang deleted the avro branch August 4, 2019 20:11
i-ony pushed a commit to i-ony/io that referenced this pull request Feb 8, 2021
…port (tensorflow#399)

This PR is part of the effort to rework on Dataset with large files reading into Tensors first to speed up performance. See 382 and 366 for related discussions.

Summary:

1) read_avro is able to read a avro file within the range of [offset, offset+length] (Splittable)
2) we use primitive read_avro C++ ops to read in big chunks and then wire up with tf.data.Dataset
3) read_avro could be used in other places.
4) AvroDataset automatically find out the dtype in eager mode, in graph mode, user has
   to specify the dtype in kwargs.

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant