When viewing job profiles from the Jobs listing in the Dremio UI, there is a field called "Query Type" which shows how the job was executed, for example, from a Preview in the UI, or via JDBC, etc.
Dremio Enterprise Edition
If you download the profile and unzip it, there are two or more files inside.
One is header.json, and the others are the profile_attempt_X.json files.
Inside the header.json there is a field, job.info.queryType which holds an integer value.
These values correspond to the following query types: