-
Notifications
You must be signed in to change notification settings - Fork 156
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
Conversation
# Conflicts: # src/main/scala/com/yotpo/metorikku/utils/TestUtils.scala
override def getReader(name: String): ReadableInput = throw new UnknownInputTypeException() | ||
} | ||
|
||
trait Input { |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
whats this?
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No description provided.