[ 
https://issues.apache.org/jira/browse/ATLAS-3712?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17508208#comment-17508208
 ] 

hongsp commented on ATLAS-3712:
-------------------------------

1、springboot project,pom:
{code:java}
<dependency>
    <groupId>org.apache.atlas</groupId>
    <artifactId>atlas-client-v2</artifactId>
    <version>2.2.0</version>
</dependency> {code}
 

2、which one API is Full-update?
{code:java}
atlasClientV2.updateEntity(entityWithExtInfo);{code}
 

the attribute type of array<atlasEntityType>,call this APi will be appended to 
value,whether  'isAppendOnPartialUpdate' true or false.how to overwrite value?

3、which one API is partial-update API?

 
{code:java}
atlasClientV2.partialUpdateEntityByGuid();{code}
the attribute type of array<atlasEntityType>,call this APi will throw exception 
 "ATLAS-400-00-027,atlasEntityTypeName.arrribute<objectid> : attribute update 
not supported",whether  'isAppendOnPartialUpdate' true or false.

 

> Add 'isAppendOnPartialUpdate' option in ML model to append updates
> ------------------------------------------------------------------
>
>                 Key: ATLAS-3712
>                 URL: https://issues.apache.org/jira/browse/ATLAS-3712
>             Project: Atlas
>          Issue Type: Improvement
>          Components:  atlas-core
>    Affects Versions: 3.0.0
>            Reporter: Na Li
>            Assignee: Na Li
>            Priority: Major
>             Fix For: 2.1.0, 3.0.0
>
>
> Atlas adds a new feature to allow client to append attributes during 
> partial-update operation in ATLAS-3700.
> We need to add 'isAppendOnPartialUpdate' option in ML model at 
> [https://github.com/apache/atlas/blob/master/addons/models/4000-MachineLearning/4010-ml_model.json]
>  to append updates using this new feature.
> Example:
> {code:java}
> {
>     "name":        "metadata",
>     "typeName":    "map<string,string>",
>     "isIndexable": false,
>     "isOptional":  true,
>     "isUnique":    false,
>     "options": {
>       "isAppendOnPartialUpdate": "true"
>     }
>   } {code}
> The value specified for this attribute in partial-update API calls will be 
> appended to existing value - if present.
> Full-update API calls will overwrite the value of the attribute, as it does 
> currently; there is no change in full-update behavior.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to