lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adrien RUFFIE <a.ruf...@e-deal.com>
Subject bog dataimport split
Date Mon, 05 Mar 2012 12:54:47 GMT
Hello all,

I try the following :

deltaQuery="SELECT PerID AS &quot;PerID&quot; FROM Person WHERE PerUpd &gt; to_date('${dataimporter.functions.formatDate(dataimporter.last_index_time,dd/MM/yyyy
HH:mm:ss)}','DD/MM/YYYY HH24:MI:SS')"

But when I pass into VariableResolverImpl.resolve of dataimport the following code (into VariableResolverImpl),
split '\.' From DOT_SPLIT constant

The problem is the following String dataimporter.functions.formatDate(dataimporter.last_index_time,dd-MM-yyyy
HH:mm:ss) was splitted into this array :

[dataimporter, functions, formatDate(dataimporter, last_index_time,dd-MM-yyyy HH:mm:ss)]

The resolve function is (into solr dataimport 3.3.0):

@Override
  @SuppressWarnings("unchecked")
  public Object resolve(String name) {
    if (name == null)
      return container;
    if ("".equals(name))
      return null;
    String[] parts = DOT_SPLIT.split(name, 0);
    CURRENT_VARIABLE_RESOLVER.set(this);
    try {
      Map<String, Object> namespace = container;
      for (int i = 0; i < parts.length; i++) {
        String thePart = parts[i];
        if (i == parts.length - 1) {
          Object val = namespace.get(thePart);
          return val == null ? getDefault(name): val ;
        }
        Object temp = namespace.get(thePart);
        if (temp == null) {
          Object val = namespace.get(mergeAll(parts, i));
          return val == null ? getDefault(name): val ;
        } else {
          if (temp instanceof Map) {
            namespace = (Map) temp;
          } else {
            return getDefault(name);
          }
        }
      }
    } finally {
      CURRENT_VARIABLE_RESOLVER.remove();
    }
    return getDefault(name);
  }


Some one have an idea, which I can correct this bug ?


Bien cordialement,

[cid:image001.png@01CCFAD7.86FE57F0]<http://e-deal.biz/kd/9eZ>

[cid:image002.png@01CCFAD7.86FE57F0]<http://e-deal.biz/kd/UOh>[cid:image003.png@01CCFAD7.86FE57F0]<http://e-deal.biz/kd/X9Q>[cid:image004.png@01CCFAD7.86FE57F0]<http://e-deal.biz/kd/bTG>

Adrien RUFFIE
Ingénieur R&D

40, rue du Village d'Entreprises
31670 Labège
www.e-deal.com<http://www.e-deal.com/>


LD : +33 1 73 03 29 XX
Std : +33 1 73 03 29 80
Fax : +33 1 73 01 69 77
a.ruffie@e-deal.com <mailto:a.ruffie@e-deal.com%20>


E-DEAL soutient le Pacte Mondial de l'ONU<http://e-deal.biz/kd/mPQ>


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.


Mime
  • Unnamed multipart/related (inline, None, 0 bytes)
View raw message