-
Notifications
You must be signed in to change notification settings - Fork 0
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
Type handler #7
base: main
Are you sure you want to change the base?
Type handler #7
Conversation
...o-sourcedb/src/main/java/com/google/cloud/teleport/v2/templates/dbutils/dml/TypeHandler.java
Outdated
Show resolved
Hide resolved
return ByteBuffer.wrap(byteArray); | ||
} | ||
|
||
public static Date handleCassandraDateType(String colName, JSONObject valuesJson) { |
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.
What is the need of passing column name? We can just pass the value and get the new casted value in return? This will be for all the functions.
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.
as we are doing multiple parsing so it should be under the Handler Class
@pawankashyapollion Add a description with the list of datatypes covered in this PR alongwith the list of datatypes which are yet to covered. |
Type handler is used for Casting source type to Cassandra supported type
Current Supported data type are:
Boolean
Float
Double
Date
String
Text
Timestamp
Integer
List
Set
TODO
We are going to create a common method which is common integration point of this class and then we will mark all of this method to private. we have kept this method public for a while to wire up UT