Commit 00ac6e85 by guos

会员标签4.0

parent 47e57b62
......@@ -265,7 +265,7 @@ public class TagProcessManager {
SparkSession sparkSession=SparkEnvManager.getInstance().getSparkSession();
Dataset<Row>tagGroupInfoDataset=sparkSession.createDataFrame(tagGroupInfoRDD,TagGroupInfo.class);
tagGroupInfoDataset.createOrReplaceTempView("tag_group_info_tmp");
sparkSession.sql(String.format("INSERT overwrite table tag.tag_group_info PARTITION(enterprise_id = '%s') SELECT id,enterprise_id,tag_group_info from tag_group_info_tmp", enterpriseId));
sparkSession.sql(String.format("INSERT overwrite table '%s'.tag_group_info PARTITION(enterprise_id = '%s') SELECT id,enterprise_id,tag_group_info from tag_group_info_tmp",isProduction?"tag4_prod":"tag4_test", enterpriseId));
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment