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

Shawn Heisey commented on SOLR-5551:
------------------------------------

[~csbubbles]: You'll need to provide options to your JDBC driver that force it 
to use standard Java data types, or you'll need to change the SQL that you are 
sending so that it produces standard types.  You'll need to contact your 
database vendor for help constructing the JDBC URL or the SQL query.

I have no idea why the issue reporter was able to get it working on an older 
release of Solr.  I've seen similar issues with older releases of Solr.

Closing the issue as invalid.  If you want to support nonstandard data types in 
DIH, you'll need to write custom code.

Repeating my followup on the mailing list thread:

{quote}
The real problem here is not DIH, but the JDBC driver.  The convertType 
parameter that you have set is for your JDBC driver. For most people, these 
details don't matter, because they are writing Java code themselves and can 
adjust according to the peculiarities of a specific JDBC driver.  DIH is a 
*generic* solution that can only deal with standard types.

BigDecimal is not a standard java data type. Although it is included in the 
standard JVM, it is part of the *math* package, it is not built into Java.

http://docs.oracle.com/javase/7/docs/api/java/math/BigDecimal.html

You might wonder why DIH doesn't convert the data.  The answer is that without 
the programmer explicitly providing code to detect each nonstandard type, it 
won't know *HOW* to convert it. Solr and Lucene can't be expected to support 
every data type, especially if the data type is not even available until you 
import a class. 
{quote}


> Error while updating replicas
> -----------------------------
>
>                 Key: SOLR-5551
>                 URL: https://issues.apache.org/jira/browse/SOLR-5551
>             Project: Solr
>          Issue Type: Bug
>          Components: SolrCloud
>    Affects Versions: 4.6
>            Reporter: David Boychuck
>
> There is an error with peersynch in SolrCloud mode with decimal values. I 
> have described the issue in detail here: 
> http://lucene.472066.n3.nabble.com/Solr-Cloud-error-with-shard-update-td4106260.html



--
This message was sent by Atlassian JIRA
(v6.2#6252)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to