|
@@ -40,6 +40,11 @@ object PhoenixHelper {
|
|
|
import org.apache.spark.sql.functions.col
|
|
|
df.select(cols.map(column => col(column).cast("string")): _*).save2PhoenixByJDBC(tableName)
|
|
|
}
|
|
|
+
|
|
|
+ def save2PhoenixByJDBCPro(tableName: String): Unit = {
|
|
|
+ import org.apache.spark.sql.functions.col
|
|
|
+ df.select(df.columns.map(column => col(column).cast("string")): _*).save2PhoenixByJDBC(tableName)
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
}
|