[
  {
    "id": "$toLong baseline",
    "operator": "$toLong",
    "kind": "baseline",
    "operand": "all",
    "expression": {
      "$toLong": "12"
    },
    "input": {},
    "srotax": {
      "bson": "{\"v\": {\"$numberLong\": \"12\"}}",
      "present": true
    },
    "mongo": {
      "bson": "{\"v\": {\"$numberLong\": \"12\"}}",
      "present": true
    },
    "status": "EXACT_MATCH"
  },
  {
    "id": "$toLong input: null",
    "operator": "$toLong",
    "kind": "null",
    "operand": "input",
    "expression": {
      "$toLong": "$probe"
    },
    "input": {
      "probe": null
    },
    "srotax": {
      "bson": "{\"v\": null}",
      "present": true
    },
    "mongo": {
      "bson": "{\"v\": null}",
      "present": true
    },
    "status": "EXACT_MATCH"
  },
  {
    "id": "$toLong input: missing",
    "operator": "$toLong",
    "kind": "missing",
    "operand": "input",
    "expression": {
      "$toLong": "$probe"
    },
    "input": {},
    "srotax": {
      "bson": "{\"v\": null}",
      "present": true
    },
    "mongo": {
      "bson": "{\"v\": null}",
      "present": true
    },
    "status": "EXACT_MATCH"
  },
  {
    "id": "$toLong input: zero",
    "operator": "$toLong",
    "kind": "zero",
    "operand": "input",
    "expression": {
      "$toLong": "$probe"
    },
    "input": {
      "probe": 0
    },
    "srotax": {
      "bson": "{\"v\": {\"$numberLong\": \"0\"}}",
      "present": true
    },
    "mongo": {
      "bson": "{\"v\": {\"$numberLong\": \"0\"}}",
      "present": true
    },
    "status": "EXACT_MATCH"
  },
  {
    "id": "$toLong input: negative",
    "operator": "$toLong",
    "kind": "negative",
    "operand": "input",
    "expression": {
      "$toLong": "$probe"
    },
    "input": {
      "probe": -2
    },
    "srotax": {
      "bson": "{\"v\": {\"$numberLong\": \"-2\"}}",
      "present": true
    },
    "mongo": {
      "bson": "{\"v\": {\"$numberLong\": \"-2\"}}",
      "present": true
    },
    "status": "EXACT_MATCH"
  },
  {
    "id": "$toLong input: decimal",
    "operator": "$toLong",
    "kind": "decimal",
    "operand": "input",
    "expression": {
      "$toLong": "$probe"
    },
    "input": {
      "probe": 2.5
    },
    "srotax": {
      "bson": "{\"v\": {\"$numberLong\": \"2\"}}",
      "present": true
    },
    "mongo": {
      "bson": "{\"v\": {\"$numberLong\": \"2\"}}",
      "present": true
    },
    "status": "EXACT_MATCH"
  },
  {
    "id": "$toLong input: numeric string",
    "operator": "$toLong",
    "kind": "numeric string",
    "operand": "input",
    "expression": {
      "$toLong": "$probe"
    },
    "input": {
      "probe": "12"
    },
    "srotax": {
      "bson": "{\"v\": {\"$numberLong\": \"12\"}}",
      "present": true
    },
    "mongo": {
      "bson": "{\"v\": {\"$numberLong\": \"12\"}}",
      "present": true
    },
    "status": "EXACT_MATCH"
  },
  {
    "id": "$toLong input: text",
    "operator": "$toLong",
    "kind": "text",
    "operand": "input",
    "expression": {
      "$toLong": "$probe"
    },
    "input": {
      "probe": "hello"
    },
    "srotax": {
      "error": "IllegalArgumentException",
      "message": "$convert failed for target long"
    },
    "mongo": {
      "message": "Executor error during aggregate command on namespace: fluxion_operator_parity_disposable.$cmd.aggregate :: caused by :: Failed to parse number 'hello' in $convert with no onError value: Did not consume whole string.",
      "code": 241,
      "error": "ConversionFailure"
    },
    "status": "BOTH_REJECTED"
  },
  {
    "id": "$toLong input: empty string",
    "operator": "$toLong",
    "kind": "empty string",
    "operand": "input",
    "expression": {
      "$toLong": "$probe"
    },
    "input": {
      "probe": ""
    },
    "srotax": {
      "error": "IllegalArgumentException",
      "message": "$convert failed for target long"
    },
    "mongo": {
      "message": "Executor error during aggregate command on namespace: fluxion_operator_parity_disposable.$cmd.aggregate :: caused by :: Failed to parse number '' in $convert with no onError value: No digits",
      "code": 241,
      "error": "ConversionFailure"
    },
    "status": "BOTH_REJECTED"
  },
  {
    "id": "$toLong input: boolean",
    "operator": "$toLong",
    "kind": "boolean",
    "operand": "input",
    "expression": {
      "$toLong": "$probe"
    },
    "input": {
      "probe": true
    },
    "srotax": {
      "bson": "{\"v\": {\"$numberLong\": \"1\"}}",
      "present": true
    },
    "mongo": {
      "bson": "{\"v\": {\"$numberLong\": \"1\"}}",
      "present": true
    },
    "status": "EXACT_MATCH"
  },
  {
    "id": "$toLong input: false",
    "operator": "$toLong",
    "kind": "false",
    "operand": "input",
    "expression": {
      "$toLong": "$probe"
    },
    "input": {
      "probe": false
    },
    "srotax": {
      "bson": "{\"v\": {\"$numberLong\": \"0\"}}",
      "present": true
    },
    "mongo": {
      "bson": "{\"v\": {\"$numberLong\": \"0\"}}",
      "present": true
    },
    "status": "EXACT_MATCH"
  },
  {
    "id": "$toLong input: typed date",
    "operator": "$toLong",
    "kind": "typed date",
    "operand": "input",
    "expression": {
      "$toLong": "$probe"
    },
    "input": {
      "probe": {
        "$date": "2026-01-15T15:00:00Z"
      }
    },
    "srotax": {
      "bson": "{\"v\": {\"$numberLong\": \"1768489200000\"}}",
      "present": true
    },
    "mongo": {
      "bson": "{\"v\": {\"$numberLong\": \"1768489200000\"}}",
      "present": true
    },
    "status": "EXACT_MATCH"
  },
  {
    "id": "$toLong input: decimal128",
    "operator": "$toLong",
    "kind": "decimal128",
    "operand": "input",
    "expression": {
      "$toLong": "$probe"
    },
    "input": {
      "probe": {
        "$numberDecimal": "1.25"
      }
    },
    "srotax": {
      "bson": "{\"v\": {\"$numberLong\": \"1\"}}",
      "present": true
    },
    "mongo": {
      "bson": "{\"v\": {\"$numberLong\": \"1\"}}",
      "present": true
    },
    "status": "EXACT_MATCH"
  },
  {
    "id": "$toLong input: empty array",
    "operator": "$toLong",
    "kind": "empty array",
    "operand": "input",
    "expression": {
      "$toLong": "$probe"
    },
    "input": {
      "probe": []
    },
    "srotax": {
      "error": "IllegalArgumentException",
      "message": "$convert failed for target long"
    },
    "mongo": {
      "message": "Executor error during aggregate command on namespace: fluxion_operator_parity_disposable.$cmd.aggregate :: caused by :: Unsupported conversion from array to long in $convert with no onError value",
      "code": 241,
      "error": "ConversionFailure"
    },
    "status": "BOTH_REJECTED"
  },
  {
    "id": "$toLong input: numeric array",
    "operator": "$toLong",
    "kind": "numeric array",
    "operand": "input",
    "expression": {
      "$toLong": "$probe"
    },
    "input": {
      "probe": [
        1,
        2,
        3
      ]
    },
    "srotax": {
      "error": "IllegalArgumentException",
      "message": "$convert failed for target long"
    },
    "mongo": {
      "message": "Executor error during aggregate command on namespace: fluxion_operator_parity_disposable.$cmd.aggregate :: caused by :: Unsupported conversion from array to long in $convert with no onError value",
      "code": 241,
      "error": "ConversionFailure"
    },
    "status": "BOTH_REJECTED"
  },
  {
    "id": "$toLong input: mixed array",
    "operator": "$toLong",
    "kind": "mixed array",
    "operand": "input",
    "expression": {
      "$toLong": "$probe"
    },
    "input": {
      "probe": [
        1,
        null,
        "x",
        3
      ]
    },
    "srotax": {
      "error": "IllegalArgumentException",
      "message": "$convert failed for target long"
    },
    "mongo": {
      "message": "Executor error during aggregate command on namespace: fluxion_operator_parity_disposable.$cmd.aggregate :: caused by :: Unsupported conversion from array to long in $convert with no onError value",
      "code": 241,
      "error": "ConversionFailure"
    },
    "status": "BOTH_REJECTED"
  },
  {
    "id": "$toLong input: nested array",
    "operator": "$toLong",
    "kind": "nested array",
    "operand": "input",
    "expression": {
      "$toLong": "$probe"
    },
    "input": {
      "probe": [
        [
          1,
          2
        ],
        [
          3
        ]
      ]
    },
    "srotax": {
      "error": "IllegalArgumentException",
      "message": "$convert failed for target long"
    },
    "mongo": {
      "message": "Executor error during aggregate command on namespace: fluxion_operator_parity_disposable.$cmd.aggregate :: caused by :: Unsupported conversion from array to long in $convert with no onError value",
      "code": 241,
      "error": "ConversionFailure"
    },
    "status": "BOTH_REJECTED"
  },
  {
    "id": "$toLong input: empty object",
    "operator": "$toLong",
    "kind": "empty object",
    "operand": "input",
    "expression": {
      "$toLong": "$probe"
    },
    "input": {
      "probe": {}
    },
    "srotax": {
      "error": "IllegalArgumentException",
      "message": "$convert failed for target long"
    },
    "mongo": {
      "message": "Executor error during aggregate command on namespace: fluxion_operator_parity_disposable.$cmd.aggregate :: caused by :: Unsupported conversion from object to long in $convert with no onError value",
      "code": 241,
      "error": "ConversionFailure"
    },
    "status": "BOTH_REJECTED"
  },
  {
    "id": "$toLong input: object",
    "operator": "$toLong",
    "kind": "object",
    "operand": "input",
    "expression": {
      "$toLong": "$probe"
    },
    "input": {
      "probe": {
        "x": 1
      }
    },
    "srotax": {
      "error": "IllegalArgumentException",
      "message": "$convert failed for target long"
    },
    "mongo": {
      "message": "Executor error during aggregate command on namespace: fluxion_operator_parity_disposable.$cmd.aggregate :: caused by :: Unsupported conversion from object to long in $convert with no onError value",
      "code": 241,
      "error": "ConversionFailure"
    },
    "status": "BOTH_REJECTED"
  },
  {
    "id": "$toLong input: ISO date string",
    "operator": "$toLong",
    "kind": "ISO date string",
    "operand": "input",
    "expression": {
      "$toLong": "$probe"
    },
    "input": {
      "probe": "2026-01-15T15:00:00Z"
    },
    "srotax": {
      "error": "IllegalArgumentException",
      "message": "$convert failed for target long"
    },
    "mongo": {
      "message": "Executor error during aggregate command on namespace: fluxion_operator_parity_disposable.$cmd.aggregate :: caused by :: Failed to parse number '2026-01-15T15:00:00Z' in $convert with no onError value: Did not consume whole string.",
      "code": 241,
      "error": "ConversionFailure"
    },
    "status": "BOTH_REJECTED"
  },
  {
    "id": "$toLong empty arguments",
    "operator": "$toLong",
    "kind": "empty arguments",
    "operand": "all",
    "expression": {
      "$toLong": []
    },
    "input": {},
    "srotax": {
      "error": "IllegalArgumentException",
      "message": "$convert failed for target long"
    },
    "mongo": {
      "message": "Invalid $project :: caused by :: $toLong requires a single argument, got 0",
      "code": 50723,
      "error": "Location50723"
    },
    "status": "BOTH_REJECTED"
  },
  {
    "id": "$toLong unknown option",
    "operator": "$toLong",
    "kind": "unknown option",
    "operand": "all",
    "expression": {
      "$toLong": {
        "unexpected": 1
      }
    },
    "input": {},
    "srotax": {
      "error": "IllegalArgumentException",
      "message": "$convert failed for target long"
    },
    "mongo": {
      "message": "Failed to optimize pipeline :: caused by :: Unsupported conversion from object to long in $convert with no onError value",
      "code": 241,
      "error": "ConversionFailure"
    },
    "status": "BOTH_REJECTED"
  }
]
