我正在尝试检查来自输入Parquet文件的列的数据类型,如果数据类型是Integer或Decimal,则运行Spark SQL。)) //get the field name
val dfs = x.map(field => spark.sqlapprox_count_distinct($field)/count(1
我正在尝试通过Spark在BigQuery中存储日期数据类型列 cast(from_unixtime(eventtime*60) as date) as createdDate 我也尝试过to_date,如下所示,但没有成功 to_date(from_unixtime(eventtime*60)) as createdDate 现在我正在尝试使用Spark-BigQuery连接器保存这个数据集,它给我的错误是字段但是当我尝试打印spark中的模式时