-
Notifications
You must be signed in to change notification settings - Fork 23
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
OracleRDBMSMetadataBuilder support for keyColumn path field - to support Mongo collection creation #16
Comments
Additionally , keyColumnAssignmentMethod("EMBEDDED_OID") needs support added. final OracleDocument metadata = cl.createMetadataBuilder().contentColumnName("DATA").keyColumnName("ID").keyColumnType("VARCHAR2").keyColumnMaxLength(255).keyColumnAssignmentMethod("EMBEDDED_OID").versionColumnName("VERSION").versionColumnMethod("UUID").lastModifiedColumnName("LAST_MODIFIED").creationTimeColumnName("CREATED_ON").schemaName(targetUser).tableName("COMPANY").build(); Currently the following exception is seen ... OracleException occurred : Invalid argument value "EMBEDDED_OID". |
createCollection() - OracleException occurred : Invalid argument value "EMBEDDED_OID". |
Looks like even PL/SQL doesn't work .. and the only hope is just using ORDS http request directly ... createCollection() - SQLException occurred : ORA-40842: unsupported value EMBEDDED_OID in the metadata for the field assignmentMethod java.sql.SQLException: ORA-40842: unsupported value EMBEDDED_OID in the metadata for the field assignmentMethod
Caused by: Error : 40842, Position : 0, Sql = DECLARE
|
Right, currently we only support EMBEDDED_OID thru Mongo API (as documented here). But we're working on adding it in the SODA drivers. For SODA Java, it's currently planned for the next release. May I ask if there's some urgency on this for you, so that we prioritize accordingly? Please feel free to email us directly with details if that's easier. My email is: maxim dot orgiyan at oracle dot com (remove the spaces, change "at" to "@", and change "dot" to "."). Thank you! |
Using a SODA REST client, I can create the mongo compatible collection. That collection though cannot be read using
It will give the error ... oracle.soda.OracleException: Invalid argument value "EMBEDDED_OID". |
Mongo compatible collection creation on 19c using ords PUT against /ords/admin/soda/latest/< collectionname > may look similar to ...
{"contentColumn":{"name":"DATA"},"keyColumn":{"name":"ID","sqlType":"VARCHAR2","maxLength":255,"assignmentMethod":"EMBEDDED_OID","path":"_id"},"versionColumn":{"name":"VERSION","method":"UUID"},"lastModifiedColumn":{"name":"LAST_MODIFIED"},"creationTimeColumn":{"name":"CREATED_ON"}}
OracleRDBMSMetadataBuilder doesn't appear to support that path parameter override.
The text was updated successfully, but these errors were encountered: