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

Tweak hasDate to handle Seq. #430

Merged
merged 6 commits into from Mar 23, 2020
Merged

Tweak hasDate to handle Seq. #430

merged 6 commits into from Mar 23, 2020

Conversation

@ruebot
Copy link
Member

ruebot commented Mar 23, 2020

GitHub issue(s):

What does this Pull Request do?

Follow on to #429, Tweak hasDate to handle Seq.

How should this be tested?

  • TravisCI

...and if you want, something like:

import io.archivesunleashed._
import io.archivesunleashed.df._

val dates = Array("2008", "200908", "20070502")

RecordLoader.loadArchives("/home/nruest/Projects/aut/sample-data/geocities", sc)
  .all()
  .select($"url", $"crawl_date")
  .filter(!hasDate($"crawl_date", lit(dates)))
  .show(10, false)  
ruebot added 5 commits Feb 10, 2020
- Addresses #425
- Add test for hasDate
@ruebot ruebot requested a review from ianmilligan1 Mar 23, 2020
@ruebot ruebot changed the title Issue 425 dates Tweak hasDate to handle Seq. Mar 23, 2020
@codecov

This comment has been minimized.

Copy link

codecov bot commented Mar 23, 2020

Codecov Report

Merging #430 into master will not change coverage by %.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master     #430   +/-   ##
=======================================
  Coverage   77.70%   77.70%           
=======================================
  Files          41       41           
  Lines        1534     1534           
  Branches      283      282    -1     
=======================================
  Hits         1192     1192           
  Misses        217      217           
  Partials      125      125           
@ruebot

This comment has been minimized.

Copy link
Member Author

ruebot commented Mar 23, 2020

Copy link
Member

ianmilligan1 left a comment

Tested with both !hasDate and hasDate, works nicely!

@ianmilligan1 ianmilligan1 merged commit 92b5f2d into master Mar 23, 2020
3 checks passed
3 checks passed
codecov/patch 100.00% of diff hit (target 77.70%)
Details
codecov/project 77.70% (+0.00%) compared to e1d908b
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
@ianmilligan1 ianmilligan1 deleted the issue-425-dates branch Mar 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

3 participants
You can’t perform that action at this time.