Commit ab18ef36 authored by 王志伟's avatar 王志伟

chang

parent c9604b08
...@@ -40,7 +40,7 @@ object WeafareStat { ...@@ -40,7 +40,7 @@ object WeafareStat {
val sc = spark_env._2 val sc = spark_env._2
val ti = new TiContext(sc) val ti = new TiContext(sc)
ti.tidbMapTable(dbName = "jerry_prod",tableName = "diary_video") ti.tidbMapTable(dbName = "eagle",tableName = "diary_video")
ti.tidbMapTable(dbName = "jerry_prod",tableName = "data_feed_click") ti.tidbMapTable(dbName = "jerry_prod",tableName = "data_feed_click")
ti.tidbMapTable(dbName = "eagle",tableName = "feed_diary_boost") ti.tidbMapTable(dbName = "eagle",tableName = "feed_diary_boost")
......
...@@ -75,10 +75,15 @@ object testt { ...@@ -75,10 +75,15 @@ object testt {
get_data_dura.printSchema get_data_dura.printSchema
get_data_dura.show(5) get_data_dura.show(5)
val tst = get_data_dura.filter("params[duration] > 0")
val tst2 = tst.filter("params[duration] > 0")
val result = get_data_dura.rdd.map(row =>{ val result = get_data_dura.rdd.map(row =>{
println(row) val rowa = row.
}) })
......
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