Kaynağa Gözat

特征验证

丁云鹏 10 ay önce
ebeveyn
işleme
197a9775bb

+ 4 - 0
recommend-feature-produce/pom.xml

@@ -35,6 +35,10 @@
                     <groupId>io.netty</groupId>
                     <artifactId>netty-all</artifactId>
                 </exclusion>
+                <exclusion>
+                    <artifactId>slf4j-log4j12</artifactId>
+                    <groupId>org.slf4j</groupId>
+                </exclusion>
             </exclusions>
         </dependency>
         <dependency>

+ 3 - 2
recommend-feature-produce/src/main/java/com/tzld/piaoquan/recommend/feature/produce/Test.java

@@ -84,7 +84,7 @@ public class Test {
         odps.setDefaultProject("loghubods");
 
         String sql = "select * from loghubods.alg_recsys_sample_all_new where dt=20240616 and hh=18 and flowpool = '' \n" +
-                "and vid = 21281133 AND abcode='ab0' order by uid desc limit 10;";
+                "AND abcode='ab0';";
 
         List<Record> records = null;
         try {
@@ -110,7 +110,8 @@ public class Test {
 
 
         int diff = 0;
-        A:for (Map<String, String> map : fieldValues) {
+        A:
+        for (Map<String, String> map : fieldValues) {
             Map<String, Map<String, String>> metaFeatureMap = JSONUtils.fromJson(map.get("metafeaturemap"),
                     new TypeToken<Map<String, Map<String, String>>>() {
                     }, Collections.emptyMap());