我需要使用sparksql.I在我的hive表中插入一些值。我使用以下代码。result(3) //filename
val e=LocalDateTime.now() //timestamp 首先,我尝试使用Insert Into Values,但后来我发现此功能在sparksqlinsert into mytable("filepath,filename,Start_Time") values('${filepath}','${fn}',
我正在使用远程mysql亚稳态作为蜂巢。当我运行蜂巢客户端时,它运行得非常完美。但是,当我试图使用火花-sql,无论是通过火花壳或通过火花提交,我无法连接到蜂箱。&得到以下错误:Caused by: java.lang.NoClassDefFoundError: Could not initialize class org.apache.derby.jdbc.EmbeddedDriver
我的表有一个类型为integer的date列sc.sql('select date from table).show(1)19860102sc.sql('select cast(date to Timestamp) from table).show(1)1970-08-18 20:41:42有没有办法用sql代替函数F呢?