You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{
"find": {
"filter" : {},
"projection" : {},
"sort" : {},
"options" : {}
}}
{
"data": {
"documents": [
{
"list_type": [],
"map_type": {
"map_key": "map_value"
},
"set_type": [],
"key": "map-row"
},
{
"list_type": [],
"map_type": {
"map_key": "map_value"
},
"set_type": [],
"key": "map-row-nulls"
},
{
"list_type": [],
"map_type": {
"map_key": "map_value"
},
"set_type": [],
"key": "map-row-empty"
}
],
"nextPageState": null
},
"status": {
"warnings": [
{
"errorCode": "ZERO_FILTER_OPERATIONS",
"message": "Zero filters were provided in the filter for this query. \n\nProviding zero filters will return all rows in the table, which may have poor performance when the table is large. For the best performance, include one or more filters using the primary key or indexes.\n\nThe table demo.collections has the primary key: key(text).\nAnd has indexes on the columns: values(list_type), entries(map_type), keys(map_type), values(map_type), values(set_type).\n\nThe query was executed without taking advantage of the primary key or indexes on the table, this can have performance implications on large tables.\n\nSee documentation at XXXX for best practices for filtering.",
"family": "REQUEST",
"scope": "WARNING",
"title": "Zero operations provided in query filter",
"id": "5db56e11-2efe-490e-a616-57586bd9ab09"
}
],
"projectionSchema": {
"list_type": {
"type": "list",
"valueType": "text"
},
"map_type": {
"type": "map",
"keyType": "text",
"valueType": "text"
},
"set_type": {
"type": "set",
"valueType": "text"
},
"key": {
"type": "text"
}
}
}
}
The driver will auto turn a null for a collection type into the empty instance of the type, and we have no way of knowing the difference between null and empty.
the idea of sparse data is to avoid sending data that conveys no information, so we should exclude empty collections from the result.
The text was updated successfully, but these errors were encountered:
If we have this table and data
CQLSH looks like this
And the API will return
The driver will auto turn a null for a collection type into the empty instance of the type, and we have no way of knowing the difference between null and empty.
the idea of sparse data is to avoid sending data that conveys no information, so we should exclude empty collections from the result.
The text was updated successfully, but these errors were encountered: