|
@@ -115,8 +115,10 @@ object makedata_ad_33_bucketDataFromOriginToHive_20250228 {
|
|
|
label > 0 || Random.nextDouble() < negSampleRate
|
|
|
})
|
|
|
.map(record => {
|
|
|
+ val featureMap = new JSONObject()
|
|
|
val ts = record.getString("ts").toInt
|
|
|
val instant = Instant.ofEpochSecond(ts)
|
|
|
+
|
|
|
val chinaZone = ZoneId.of("Asia/Shanghai")
|
|
|
|
|
|
val zonedDateTime = ZonedDateTime.ofInstant(instant, chinaZone)
|