Hi

I think the structure proposed by Yufei makes sense. It's aligned and
similar to what I'm proposing in https://github.com/apache/polaris/pull/1695
by renaming the quarkus folder as runtime folder.

For persistence, I think it makes more sense than a separate repository
because:
1. It avoids deviation of a persistence backend compared to another, and
also using the right/updated API
2. It's easier to bundle with Polaris runtime application

So, having persistence/common (or persistence/api), and impl
(persistence/eclipselink, persistence/jdbc, etc) looks cleaner to me.

Regards
JB

Le dim. 1 juin 2025 à 01:33, Yufei Gu <flyrain...@gmail.com> a écrit :

> Dmitri, thanks for the feedback.
>
> The PR focus on removing the layer of directories("extensions"). It is
> unnecessary and confusing. I'm glad we got a consensus here.
>
> After the refactor, there is a top level directory named "persistence",
> which holds two implementations -- EclipseLink and JDBC. I think it makes
> sense to hold more persistence impl. in the future in parallel with them
> like the following example shows. WDYT?
>
> persistence/
> ├── eclipselink/
> ├── relational-jdbc/
> ├── mongodb/
> └── .../
>
> Yufei
>
>
> On Fri, May 30, 2025 at 5:16 PM Dmitri Bourlatchkov <di...@apache.org>
> wrote:
>
> > Hi Yufei,
> >
> > Thanks for opening a dev list discussion for this.
> >
> > Re: PR #1724 - moving "persistence" from the "extensions" sub-dir to the
> > project root level, LGTM.
> >
> > However, my comment in GH about dev list discussions was more general.
> > Since we start moving things around in one sub-tree, I'd like to clarify
> > what target repository layout is envisioned across all modules.
> >
> > Do you have any similar moves in mind or is this change limited only to
> the
> > "extensions" directory?
> >
> > I suppose now may be a good time to have that discussion.
> > Specifically having in mind the proposed NoSQL persistence (which is not
> > merged yet).
> >
> > Thanks,
> > Dmitri.
> >
> > On Thu, May 29, 2025 at 5:00 PM Yufei Gu <flyrain...@gmail.com> wrote:
> >
> > > Hi everyone,
> > >
> > > I’d like to draw attention to PR #1724 (
> > > https://github.com/apache/polaris/pull/1724) which reorganises our
> > > persistence modules:
> > >
> > >    -
> > >
> > >    Moves *EclipseLink* and *JDBC* from extension/persistence/impl/* to
> a
> > >    top-level persistence/* directory.
> > >    -
> > >
> > >    Aligns most Java packages from
> > >    org.apache.polaris.extension.persistence.impl.* →
> > >    org.apache.polaris.persistence.impl.*.
> > >    -
> > >
> > >       *Note:* EclipseLink keeps its original package to avoid breaking
> > >       external integrations and because we plan to deprecate/remove
> > > the module in
> > >       a future release.
> > >       -
> > >
> > >    *No behavioural changes* – the PR is strictly a mechanical
> > move/rename.
> > >
> > > *Why?*
> > > This cleans up the repo structure ahead of 1.0, making it clearer where
> > > first-class vs. extension modules live, and reduces depth in package
> > names.
> > >
> > > I’d like to get agreement on this new layout before we merge. Please
> > reply
> > > with any concerns or +1s. If there are no objections within 72 hours,
> > we’ll
> > > proceed.
> > >
> > > Thanks,
> > > Yufei
> > >
> >
>

Reply via email to