You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
NIFI-2829 - Add Date and Time Format Support for PutSQL
Fix unit test for Date and Time type time zone problem
Enhance Time type to record milliseconds
This closes#1983.
Signed-off-by: Koji Kawamura <ijokarumawak@apache.org>
Copy file name to clipboardExpand all lines: nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/PutSQL.java
+9-9Lines changed: 9 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -73,6 +73,7 @@
73
73
importjava.text.SimpleDateFormat;
74
74
importjava.time.Instant;
75
75
importjava.time.LocalDate;
76
+
importjava.time.LocalDateTime;
76
77
importjava.time.LocalTime;
77
78
importjava.time.ZoneId;
78
79
importjava.time.format.DateTimeFormatter;
@@ -119,7 +120,10 @@
119
120
+ "hex: the string is hex encoded with all letters in upper case and no '0x' at the beginning. "
120
121
+ "Dates/Times/Timestamps - "
121
122
+ "Date, Time and Timestamp formats all support both custom formats or named format ('yyyy-MM-dd','ISO_OFFSET_DATE_TIME') "
122
-
+ "as specified according to java.time.format.DateTimeFormatter.")
123
+
+ "as specified according to java.time.format.DateTimeFormatter. "
124
+
+ "If not specified, a long value input is expected to be an unix epoch (milli seconds from 1970/1/1), or a string value in "
125
+
+ "'yyyy-MM-dd' format for Date, 'HH:mm:ss.SSS' for Time (some database engines e.g. Derby or MySQL do not support milliseconds and will truncate milliseconds), "
126
+
+ "'yyyy-MM-dd HH:mm:ss.SSS' for Timestamp is used.")
123
127
})
124
128
@WritesAttributes({
125
129
@WritesAttribute(attribute = "sql.generated.key", description = "If the database generated a key for an INSERT statement and the Obtain Generated Keys property is set to true, "
@@ -840,9 +844,6 @@ private void setParameter(final PreparedStatement stmt, final String attrName, f
Copy file name to clipboardExpand all lines: nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/test/java/org/apache/nifi/processors/standard/TestPutSQL.java
0 commit comments