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 mongo input #239

Merged
merged 7 commits into from
Jan 8, 2020
Merged

Add mongo input #239

merged 7 commits into from
Jan 8, 2020

Conversation

wangqinghuan
Copy link
Contributor

No description provided.

mongoDBOptions ++= options.getOrElse(Map())

val dbTable = sparkSession.read.format("mongo").options(mongoDBOptions).load()
dbTable
Copy link
Contributor

Choose a reason for hiding this comment

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

not necessary

collection: String,
options: Option[Map[String, String]]
) extends InputConfig {
require(Option(uri).isDefined, "Mongo input: uri is mandatory")
Copy link
Contributor

Choose a reason for hiding this comment

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

"Mongo input" -> "MongoDB input"

@tooptoop4 tooptoop4 mentioned this pull request Dec 25, 2019
@Irenez753 Irenez753 merged commit ad1fe01 into YotpoLtd:master Jan 8, 2020
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.

None yet

2 participants