Theoretical Analysis of Learned Database Operations under Distribution Shift through Distribution Learnability