It is often helpful to correlate an AtScale query ID with the ID found in the SQL engine.
To pass query ID as a SQL comment, add the following configuration in Engine Advanced configurations and setting it to true:
query.includeComments.general.queryId
To ensure that the change is implemented, restart AtScale.