In your sonata, if u see a lot of variation u cant just said this is the scale..what i always believ is that we dont wanna get stucked in to a one scale or trying to undentify the scale.if the chords supports well thats all.because human imgination should go beyond structural music rules and expression