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

feat(jdbc): add jdbc input support #88

Merged
merged 8 commits into from
Aug 1, 2018
Merged

feat(jdbc): add jdbc input support #88

merged 8 commits into from
Aug 1, 2018

Conversation

lyogev
Copy link
Contributor

@lyogev lyogev commented Mar 5, 2018

No description provided.

override def getReader(name: String): ReadableInput = throw new UnknownInputTypeException()
}

trait Input {
Copy link
Member

Choose a reason for hiding this comment

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

@lyogev please seperate traits to different file

}

trait Input {
def getReader(name: String): ReadableInput
Copy link
Member

Choose a reason for hiding this comment

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

@lyogev im having trouble with the names, why is it called readable input? why getReader return readable input and not reader?

import org.apache.spark.sql.DataFrame

trait ReadableInput {
var name: String
Copy link
Member

Choose a reason for hiding this comment

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

@lyogev can this be val?

password: String, driver: Option[String], table: String,
partitionColumn: Option[String], numberOfPartitions: Option[Int]) extends ReadableInput {
def read(): DataFrame = {
val url = connectionUrl + "?zeroDateTimeBehavior=convertToNull"
Copy link
Member

Choose a reason for hiding this comment

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

whats this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's something that's only related to mysql we can move it to the client's side

Copy link
Contributor Author

Choose a reason for hiding this comment

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

RonBarabash
RonBarabash previously approved these changes Mar 13, 2018
@lyogev lyogev merged commit 3f85c9f into master Aug 1, 2018
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.

3 participants