Files
datastore/tests/performance/json_file_query.xml
Alexey MilovidovandClaude Opus 4.6 b7bf15ac3d Allow performance tests to use data files from tests/performance/user_files
Files placed in `tests/performance/user_files/` are now symlinked into
both left and right servers' `user_files` directories during the
performance test setup. This lets performance test queries reference
external data files via the `file` table function.

Added `instances.json` and an example performance test that queries it.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
2026-03-22 16:08:36 +01:00

19 lines
381 B
XML

<test>
<query>
SELECT
i.InstanceType,
i.VCpuInfo.DefaultVCpus AS cpu,
i.InstanceStorageInfo
FROM (
SELECT arrayJoin(InstanceTypes) AS i
FROM file('instances.json')
)
WHERE i.InstanceStorageSupported
ORDER BY cpu DESC
LIMIT 10
FORMAT Null
</query>
</test>