-
Notifications
You must be signed in to change notification settings - Fork 84
Implement schema import and validation expression support in the compiler #1784
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
Open
Open
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
1585ee4
Fix validateExpr grammar in XQuery parser, it should use typeName to …
CaiJimmy 3525cec
Implement schema import and validation expression support in the comp…
CaiJimmy 38d9208
Update QT3 suite workflow to use the 'jimmy/xml-schema' branch for JS…
CaiJimmy 1ff8d3f
Fix QT3 workflow to differentiate between push and pull request event…
CaiJimmy 2bce332
Sort baseline runs by creation date in descending order
CaiJimmy 89a0bfc
Remove status filter from baseline run retrieval in QT3 workflow
CaiJimmy dc8ed45
Refine baseline run retrieval by filtering events and logging run count
CaiJimmy ea44554
Trigger Build
CaiJimmy 554316e
Revert "Refine baseline run retrieval by filtering events and logging…
CaiJimmy 4ce2e55
Update validateExpr in JSONiq grammar to sync with XQuery
CaiJimmy 83e3bbb
Revert "Update validateExpr in JSONiq grammar to sync with XQuery"
CaiJimmy ebf2fb1
Handle XML validation modes in JSONiq translator
CaiJimmy dc3f152
Apply spotless
CaiJimmy File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -37,6 +37,7 @@ | |
| import org.rumbledb.errorcodes.ErrorCode; | ||
| import org.rumbledb.exceptions.ExceptionMetadata; | ||
| import org.rumbledb.exceptions.OurBadException; | ||
| import org.rumbledb.exceptions.UnsupportedFeatureException; | ||
| import org.rumbledb.expressions.AbstractNodeVisitor; | ||
| import org.rumbledb.expressions.CommaExpression; | ||
| import org.rumbledb.expressions.ExecutionMode; | ||
|
|
@@ -119,6 +120,7 @@ | |
| import org.rumbledb.expressions.typing.CastableExpression; | ||
| import org.rumbledb.expressions.typing.InstanceOfExpression; | ||
| import org.rumbledb.expressions.typing.TreatExpression; | ||
| import org.rumbledb.expressions.typing.ValidateExpression; | ||
| import org.rumbledb.expressions.typing.ValidateTypeExpression; | ||
| import org.rumbledb.expressions.update.AppendExpression; | ||
| import org.rumbledb.expressions.update.CopyDeclaration; | ||
|
|
@@ -1480,6 +1482,12 @@ public ItemRuntimePlan visitValidateTypeExpression(ValidateTypeExpression expres | |
| return resultIterator; | ||
| } | ||
|
|
||
| @Override | ||
| public ItemRuntimePlan visitValidateExpression(ValidateExpression expression, ItemRuntimePlan argument) { | ||
| throw new UnsupportedFeatureException( | ||
| "XML Schema validate expressions are not executable yet.", expression.getMetadata()); | ||
| } | ||
|
|
||
| @Override | ||
|
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This will be implemented in the upcoming PRs. |
||
| public ItemRuntimePlan visitTreatExpression(TreatExpression expression, ItemRuntimePlan argument) { | ||
| ItemRuntimePlan childExpression = this.visit(expression.getMainExpression(), argument); | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.