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

ASF GitHub Bot commented on GORA-419:
-------------------------------------

GitHub user gerhardgossen opened a pull request:

    https://github.com/apache/gora/pull/23

    GORA-419: putMap and putArray use column instead of field name to 
deleteByQuery

    JIRA issue: https://issues.apache.org/jira/browse/GORA-419

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/gerhardgossen/gora master

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/gora/pull/23.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #23
    
----
commit fac0e177dbb3e5125543f3a0527ad2dad5f9e050
Author: Gerhard Gossen <[email protected]>
Date:   2015-04-13T11:49:04Z

    Use field instead of column name in argument to deleteByQuery

----


> putMap and putArray use column instead of field name to deleteByQuery
> ---------------------------------------------------------------------
>
>                 Key: GORA-419
>                 URL: https://issues.apache.org/jira/browse/GORA-419
>             Project: Apache Gora
>          Issue Type: Bug
>          Components: gora-accumulo
>    Affects Versions: 0.6
>            Reporter: Gerhard Gossen
>
> In {{AccumuloStore.put(k, v)}} fields of type MAP or ARRAY are cleared first 
> before they are set to the new value. This is done in the methods 
> {{putMap}}/{{putArray}} using a call to {{deleteByQuery(q)}}. The name for 
> fields to be deleted is taken from the current column. However, 
> {{deleteByQuery}} tries to translate the field names of the query to column 
> names again, which fails with a log message like
> {code}
> 2015-04-13 13:43:35.084 ERROR 16733 --- [ool-46-thread-1] 
> o.a.gora.accumulo.store.AccumuloStore    : Mapping not found for field: ol
> 2015-04-13 13:43:35.104 ERROR 16733 --- [ool-46-thread-1] 
> o.a.gora.accumulo.store.AccumuloStore    : Mapping not found for field: mk
> 2015-04-13 13:43:35.115 ERROR 16733 --- [ool-46-thread-1] 
> o.a.gora.accumulo.store.AccumuloStore    : Mapping not found for field: mtdt
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to