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

support repeated leafs in BigtableType #255 #284

Merged
merged 1 commit into from
Feb 24, 2021
Merged

Conversation

nevillelyh
Copy link
Contributor

No description provided.

@codecov
Copy link

codecov bot commented Feb 24, 2021

Codecov Report

Merging #284 (d12478d) into master (a822c29) will increase coverage by 0.09%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #284      +/-   ##
==========================================
+ Coverage   96.38%   96.47%   +0.09%     
==========================================
  Files          38       38              
  Lines        1189     1220      +31     
  Branches       49       53       +4     
==========================================
+ Hits         1146     1177      +31     
  Misses         43       43              
Impacted Files Coverage Δ
...c/main/scala/magnolify/bigtable/BigtableType.scala 99.29% <100.00%> (+0.19%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a822c29...dfc882a. Read the comment docs.

v.toSeq.flatMap(btf.put(k, _)(cm))
}

implicit def btfIterable[T, C[T]](implicit
Copy link
Contributor

Choose a reason for hiding this comment

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

Nice! Now we can store iterables in a cell 🎉

case None =>
(1 to n).foreach { _ =>
val s = buf.getInt
val ba = new Array[Byte](s)
Copy link
Contributor

Choose a reason for hiding this comment

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

I wonder if we need to handle the case with an empty string somehow explicitly, but you have added a test for Repeated so looks like it should work.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, arrays can be empty, and scalacheck should generate "" cases.

@nevillelyh nevillelyh merged commit 998794f into master Feb 24, 2021
@nevillelyh nevillelyh deleted the neville/bt-repeated branch February 24, 2021 17:25
@nevillelyh nevillelyh mentioned this pull request Feb 24, 2021
8 tasks
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.

2 participants