skorper opened a new pull request, #282: URL: https://github.com/apache/incubator-sdap-nexus/pull/282
- Removed `resultSizeLimit` from /match_spark. This is no longer needed as the result size limit is specified in the cdmsresults pagination endpoint. - Updated /job output with two new fields: - `totalPrimaryMatched`: The total number of primary matches - `averageSecondaryMatched`: The average number of secondaries per primary. Calculated like so: `round(num_secondaries/num_primaries)` - This will always be 1 when matchOnce=True - Updated /job endpoint output from `jobId` to `executionId` to maintain consistency with `cdmsresults` endpoint. --- ### Example: Query: ``` {{big_data_url}}/match_spark?primary=VIIRS_NPP-2018_Heatwave&secondary=ASCATB-L2-Coastal&startTime=2018-08-01T00%3A00%3A00Z&endTime=2018-08-01T23%3A59%3A59Z&b=-122%2C%2026%2C%20-114%2C%2034&platforms=30&depthMin=-1&depthMax=1&tt=43200&rt=18750&matchOnce=false&prioritizeDistance=true ``` Output: ```json { "status": "success", "message": "", "createdAt": "2023-09-25 22:35:27.598000", "updatedAt": "2023-09-25 22:36:41.819000", "links": [ { "href": "http://localhost:8083/job?id=39bc409f-e990-4b38-b3a5-b1dfd41eae06", "title": "The current page", "type": "application/json", "rel": "self" }, { "href": "http://localhost:8083/cdmsresults?id=39bc409f-e990-4b38-b3a5-b1dfd41eae06&output=CSV", "title": "Download results", "type": "text/csv", "rel": "data" }, { "href": "http://localhost:8083/cdmsresults?id=39bc409f-e990-4b38-b3a5-b1dfd41eae06&output=JSON", "title": "Download results", "type": "application/json", "rel": "data" }, { "href": "http://localhost:8083/cdmsresults?id=39bc409f-e990-4b38-b3a5-b1dfd41eae06&output=NETCDF", "title": "Download results", "type": "binary/octet-stream", "rel": "data" } ], "params": { "primary": "MUR25-JPL-L4-GLOB-v04.2", "matchup": "ASCATB-L2-Coastal", "startTime": "2018-08-01 00:00:00+00:00", "endTime": "2018-08-31 23:59:59+00:00", "bbox": "-122,26,-114,34", "timeTolerance": 43200, "radiusTolerance": 18750.0, "platforms": "30", "parameter": null, "depthMin": -1.0, "depthMax": 1.0 }, "executionID": "39bc409f-e990-4b38-b3a5-b1dfd41eae06", "totalPrimaryMatched": 17475, "averageSecondaryMatched": 8 } ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@sdap.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org