Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dbchangelog-ext.xsd schema is missing definition for MaterializedViewRefreshType #17

Open
JaroKuruc opened this issue Aug 20, 2015 · 1 comment

Comments

@JaroKuruc
Copy link

JaroKuruc commented Aug 20, 2015

MaterializedViewRefreshType simple type referenced in refreshMaterializedView element definition for refreshType attribute (line 205) is not defined in the schema anywhere. This renders the whole schema invalid.

src-resolve: Cannot resolve the name 'MaterializedViewRefreshType' to a(n) 'simpleType definition' component.
src-resolve: Cannot resolve the name 'MaterializedViewRefreshType' to a(n) 'type definition' component.

┆Issue is synchronized with this Jira Bug by Unito

@gitfool
Copy link

gitfool commented Mar 24, 2016

I'm no expert, but according to DBMS_MVIEW.REFRESH it looks like the xsd should be updated to contain something like:

<xsd:simpleType name="MaterializedViewRefreshType">
    <xsd:restriction base="xsd:string">
        <xsd:enumeration value="always"></xsd:enumeration>
        <xsd:enumeration value="complete"></xsd:enumeration>
        <xsd:enumeration value="fast"></xsd:enumeration>
        <xsd:enumeration value="force"></xsd:enumeration>
        <xsd:enumeration value="partitions"></xsd:enumeration>
    </xsd:restriction>
</xsd:simpleType>

This will require more than an xsd schema change though - the values expected can be found at RefreshMaterializedViewOracle.java#L42; most of the above are missing and the second complete should be force.

(I'd submit a PR, but I haven't programmed in Java for a couple of decades.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants