Skip to content

Conversation

@tgroh
Copy link
Member

@tgroh tgroh commented Mar 30, 2016

No description provided.

@tgroh
Copy link
Member Author

tgroh commented Mar 30, 2016

R: @dhalperi

@tgroh tgroh force-pushed the text_avro_io_sharding_tests branch 2 times, most recently from 7b7b42e to 9a0dfec Compare March 30, 2016 16:12
@kennknowles
Copy link
Member

  • Check this box!

@tgroh tgroh force-pushed the text_avro_io_sharding_tests branch from 9a0dfec to 13bad6b Compare April 4, 2016 18:43
@davorbonaci
Copy link
Member

I'll take this one from @dhalperi.

R: @davorbonaci

// TODO: for Write only, test withSuffix, withNumShards,
@SuppressWarnings("deprecation") // using AvroCoder#createDatumReader for tests.
@Test
public void testAvroSinkShardedWrite() throws Exception {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This particular test (and probably others in this file) could be made runner-agnostic. That would make them much better.

However, this is an underlying problem here. Ok to ignore for now.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed; this would be best done by using the PipelineOptions.getTempLocation() for the location of the temporary files, and IOChannelUtils to either create input files or write to output files.

Filed BEAM-181

@davorbonaci
Copy link
Member

LGTM

@dhalperi
Copy link
Contributor

dhalperi commented Apr 6, 2016

@tgroh if this is ready to merge R:me or otherwise bump back to Davor.

@tgroh tgroh force-pushed the text_avro_io_sharding_tests branch from c440722 to f01ecbd Compare April 7, 2016 02:16
@tgroh tgroh force-pushed the text_avro_io_sharding_tests branch from f01ecbd to ea289fb Compare April 7, 2016 02:18
@tgroh
Copy link
Member Author

tgroh commented Apr 7, 2016

refactored to share code, should be ready to merge

R: @dhalperi if you want to take a look or merge,

Bound<String> write = AvroIO.Write.to(outputFilePrefix)
.withSchema(String.class);
if (numShards > 1) {
write = write.withNumShards(numShards).withShardNameTemplate(ShardNameTemplate.INDEX_OF_MAX);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

INDEX_OF_MAX is the default, right? Should be unnecessary.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is, but I was keeping symmetry.

Changed to use the write template while constructing expected files.

@dhalperi
Copy link
Contributor

dhalperi commented Apr 7, 2016

LGTM, optional comments. Ping me in the morning to merge.

@asfgit asfgit closed this in d2b4693 Apr 7, 2016
iemejia referenced this pull request in iemejia/beam Jan 12, 2018
hengfengli added a commit to hengfengli/beam that referenced this pull request Mar 21, 2022
When we insert a partition record to the PartitionMetadata table, we will give a `TimestampConverter.MAX_MICROS` as default value. The default value should also be `TimestampConverter.MAX_MICROS + 1`.
pl04351820 pushed a commit to pl04351820/beam that referenced this pull request Dec 20, 2023
Toward apache#92.

Co-authored-by: Christopher Wilcox <crwilcox@google.com>
pl04351820 pushed a commit to pl04351820/beam that referenced this pull request Dec 20, 2023
Note that the synthtool-generated `.coveragerc` (see apache#224) does *not* include all changes needed for 100% coverage:  see:

- googleapis/gapic-generator-python#171
- googleapis/gapic-generator-python#437

Closes apache#92.
Closes apache#195.
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.

4 participants