When writing Arcade scrips that make queries to the DB:
It would help to see what SQL is being used, by outputting the SQL to the console().
For example, I’m an SQL guy, yet I find the GroupBy() function easy to mess up. It would help if I could easily see the SQL that’s being sent to the DB — to make sure the query is right.
Could Esri consider making the SQL text available as a variable, so that we can output it to the console for debugging purposes?