-
Notifications
You must be signed in to change notification settings - Fork 52
MLE-26340 expose vec.precision and vec.trunc in Node client. #1046
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
Conversation
|
Copyright Validation Results ✅ Valid Files
✅ All files have valid copyright headers! |
513e69f to
09aac63
Compare
973a87c to
5e05814
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR exposes two new vector functions (vec.precision and vec.trunc) in the Node.js client library and updates existing vector function tests with improved assertions and comments.
Key Changes:
- Added
vec.precisionandvec.truncfunction definitions to the plan builder - Updated test suite with clearer assertions and explanatory comments
- Modernized test code by replacing
pwithopfor plan builder references - Updated copyright year to 2026 across affected files
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
| lib/plan-builder-generated.js | Added precision and trunc function definitions for the vec namespace with JSDoc documentation |
| lib/plan-builder-base.js | Modified VecVector type handling in castArg to return the arg directly instead of arg._args |
| test-basic/optic-vector.js | Refactored tests with improved assertions, added skipped tests for new vec functions, and updated variable naming from p to op |
| test-basic/plan-builder-generated.js | Updated vec.base64Decode test with corrected test data and assertion |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
5e05814 to
72d2c79
Compare
Update high vulnerability Add comment about VecVector Update copyright
72d2c79 to
3024522
Compare
|
Ling added vec.precision and vec.trunc and now op calls work. |
rjrudin
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
|
|
||
| const marklogic = require('../'); | ||
| const p = marklogic.planBuilder; | ||
| const op = marklogic.planBuilder; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❤️
No description provided.