Skip to content

Comments

[BEAM-1471]: Add cross-sdk tests for IterableCoder#1996

Merged
asfgit merged 1 commit intoapache:masterfrom
vikkyrk:common_iterable_coder
Feb 14, 2017
Merged

[BEAM-1471]: Add cross-sdk tests for IterableCoder#1996
asfgit merged 1 commit intoapache:masterfrom
vikkyrk:common_iterable_coder

Conversation

@vikkyrk
Copy link
Contributor

@vikkyrk vikkyrk commented Feb 13, 2017

Be sure to do all of the following to help us incorporate your contribution
quickly and easily:

  • Make sure the PR title is formatted like:
    [BEAM-<Jira issue #>] Description of pull request
  • Make sure tests pass via mvn clean verify. (Even better, enable
    Travis-CI on your fork and ensure the whole test matrix passes).
  • Replace <Jira issue #> in the title with the actual Jira issue
    number, if there is one.
  • If this contribution is large, please file an Apache
    Individual Contributor License Agreement.

@vikkyrk
Copy link
Contributor Author

vikkyrk commented Feb 13, 2017

R: @dhalperi @robertwb

urn: "urn:beam:coders:stream:0.1"
components: [{urn: "urn:beam:coders:bytes:0.1"}]
examples:
"\0\0\0\u0001\u0003abc": ["abc"]
Copy link
Contributor

Choose a reason for hiding this comment

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

I think it will not be generated in many cases, but test for empty iterable?

Copy link
Contributor

Choose a reason for hiding this comment

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

(both places)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed

.put("urn:beam:coders:bytes:0.1", ByteCoder.class)
.put("urn:beam:coders:kv:0.1", KvCoder.class)
.put("urn:beam:coders:varint:0.1", VarLongCoder.class)
.put("urn:beam:coders:stream:0.1", IterableCoder.class)
Copy link
Contributor

Choose a reason for hiding this comment

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

Suspect you need the asCloudObject-type stuff as in #1984. This will enable the Fn API to recognize the coder.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This was already added by Luke.

'@type': 'kind:stream',
and
protected CloudObject initializeCloudObject() {

@vikkyrk vikkyrk changed the title Add cross-sdk tests for IterableCoder [BEAM-1471]: Add cross-sdk tests for IterableCoder Feb 13, 2017
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.003%) to 69.713% when pulling 965160c on vikkyrk:common_iterable_coder into 30cb93c on apache:master.

@asfbot
Copy link

asfbot commented Feb 13, 2017

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/beam_PreCommit_Java_MavenInstall/7363/
--none--

@asfbot
Copy link

asfbot commented Feb 14, 2017

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/beam_PreCommit_Java_MavenInstall/7378/
--none--

@dhalperi
Copy link
Contributor

retest this please

@coveralls
Copy link

Coverage Status

Changes Unknown when pulling cab5e63 on vikkyrk:common_iterable_coder into ** on apache:master**.

@asfbot
Copy link

asfbot commented Feb 14, 2017

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/beam_PreCommit_Java_MavenInstall/7380/
--none--

@asfgit asfgit merged commit cab5e63 into apache:master Feb 14, 2017
asfgit pushed a commit that referenced this pull request Feb 14, 2017
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.

5 participants