问题描述
镶木地板条目示例(所有条目的is_active_entity
为真)
{
"is_active_entity": true,"is_removed": false
}
表明所有值都为NULL的查询
select $1:IS_ACTIVE_ENTITY::boolean,count(*) from @practitioner_delta_stage/part-00000-49224c02-150b-493b-8036-54ab30a8ff40-c000.snappy.parquet group by $1:IS_ACTIVE_ENTITY::boolean ;
输出只有一组为NULL
$1:IS_ACTIVE_ENTITY::BOOLEAN COUNT(*)
NULL 4930277
我不知道我要去哪里哪里,Spark在镶木地板中编写了正确的架构,如示例所示,但雪花将其视为NULL。
我该如何解决?
解决方法
文件中的列被引用。因此,"is_active_entity"
与"IS_ACTIVE_ENTITY"
请尝试以下查询:
select $1:is_active_entity::boolean,count(*) from @practitioner_delta_stage/part-00000-49224c02-150b-493b-8036-54ab30a8ff40-c000.snappy.parquet group by $1:IS_ACTIVE_ENTITY::boolean ;