I always thought, that integrability of a function is a global property while differentiability is a local property. After reading What's the definition of a "local property"? I doubt my opinion. In the linked MSE question Najib Idrissi gives the following definition of a local property:
a property $P$ is local when, for all spaces $X$, if $\{U_i\}$ is an open cover of $X$ and all the $U_i$ have $P$, then $X$ has $P$.
Now I think that the property, whether a function $f:[a,b]\to\mathbb R$ is integrable, fulfills this definition. If $\{U_i\}$ is an open cover of $[a,b]$ and $f|_{U_i}$ is integrable for all $U_i$, then also $f:[a,b]\to\mathbb R$ is integrable since $[a,b]$ is compact.
My Question: Am I right, that he property "The function $f:[a,b]\to\mathbb R$ is integrable." is a local property of $f$? If not: Where have I made a mistake?
Note: I restrict the domain of $f$ to a closed interval $[a,b]$. I am aware, that the above argumentation does not hold for functions with arbitrary domains. For example $f:(0,1)\to\mathbb R : x \mapsto \frac 1x$ is not integrable but one can find an open cover $\{U_i\}$ of $(0,1)$ where all $f|_{U_i}$ are integrable.
Update: It might be an explanation, that we have to use another definition of a local property for a function. See What is the definition of a local property for a function? with more details...