The dialect converts the OGM representation of the data into the backend one. A native query depends only by the datastore you are using. Even if someone using mongodb changes the dialect he still have to use mongodb native queries to retrieve the data. So the datastore provider seems a better fit for it to me.

That was my train of thoughts but I might miss something.