hello, I was working on the data source created by the data lake from the MongoDB chart.
but, data source load failed

Initially, the data source load was successful, but errors began to occur after entering the query I created in the query bar.
The query I made is this.
[{
$group:{
'_id':{
uid:'$uid',date:'$date'
}
,'methods':{
'$addToSet':'$urlmethod'
}
}},{
$project:{
_id:1,methods:1,appuser:{
$setDifference:[["POST_/v0.1/measure","POST_/v0.1/exercise"],{
$ifNull:['$methods',[]]}]}}},{
$set:{
exercise:{
$cond:[{$in:["POST_/v0.1/measure","$appuser"]},1,0]}}},{
$set:{
measure:{
$cond:[{$in:["POST_/v0.1/exercise","$appuser"]},1,0]}}},{
$set:{
all:{
$cond:[{$eq:[{$size:"$appuser"
}
,0]},1,0]}}},{
$set:{
notall:{
$cond:[{$eq:[{$size:"$appuser"
}
,2]},1,0]}}}]
I want to know why this error occurs.