It is well-known that the function $f(z)=\sum_{n=0}^\infty z^{n!}$ is analytic in the open unit disk and it can not be extended analytically to any proper open superset of the unit disk, i.e., the unit circle is the natural boundary of $f$.
Is there an example of a function, analytical in the unit disk, with "natural boundary" a part (of positive 1-dimensional measure) of the unit circle, which extends analytically to rest of $\mathbb C$.
I am not asking for a variation of $g(z)=\sqrt{z^2-1}$, which is defined in $\mathbb C\smallsetminus [-1,1]$, since the segment $[-1,1]$ is not a "natural boundary" of $g$, as $g$ can be analytically continued through this segment.