[
https://issues.jboss.org/browse/TEIID-3279?page=com.atlassian.jira.plugin...
]
Van Halbert reopened TEIID-3279:
--------------------------------
Still experiencing problems with solr date/time/timestamp literals
SELECT BQT1.SmallA.TimeValue FROM BQT1.SmallA WHERE BQT1.SmallA.TimeValue <
'17:00:00' ORDER BY TimeValue
Remote org.teiid.core.TeiidException: Invalid Date String:'1970-01-01T16'
SELECT BQT1.SmallA.DateValue FROM BQT1.SmallA WHERE BQT1.SmallA.DateValue <>
'2000-02-02' ORDER BY DateValue
Remote org.teiid.core.TeiidException: Invalid Date String:'2000-02-01T23'
SELECT BQT1.SmallA.DateValue FROM BQT1.SmallA WHERE BQT1.SmallA.DateValue =
'2000-02-02'
Remote org.teiid.core.TeiidException: Invalid Date String:'2000-02-01T23'
SELECT BQT1.SmallA.TimeStampValue FROM BQT1.SmallA WHERE BQT1.SmallA.TimeStampValue
<> '2000-01-01 00:00:30.0' ORDER BY TimestampValue
Remote org.teiid.core.TeiidException: Invalid Date String:'1999-12-31T23'
SOLR: Error when date,time or timestamp literal is in where clause
------------------------------------------------------------------
Key: TEIID-3279
URL:
https://issues.jboss.org/browse/TEIID-3279
Project: Teiid
Issue Type: Bug
Components: Connector API
Affects Versions: 8.7
Reporter: Filip Elias
Assignee: Ramesh Reddy
Labels: Beta1
Fix For: 8.7.1, 8.10
Query fails when time,date or timestamp literal is used in where clause.
Examples:
Query:
{code}select intkey from smalla where timevalue = '11:30:20'{code}
Error:
{code}
'11:30:20'org.apache.solr.client.solrj.impl.HttpSolrServer$RemoteSolrException:
Invalid Date String:'11-30-20'
at org.apache.solr.client.solrj.impl.HttpSolrServer.request(HttpSolrServer.java:491)
{code}
Query:
{code}select intkey from smalla where datevalue = '2002-02-02'{code}
Error:
{code}
org.apache.solr.client.solrj.impl.HttpSolrServer$RemoteSolrException: Invalid Date
String:'11-30-20'
at org.apache.solr.client.solrj.impl.HttpSolrServer.request(HttpSolrServer.java:491)
{code}
Query:
{code}select intkey from smalla where timestampvalue = '2000-01-01
00:00:04'{code}
Error:
{code} org.apache.solr.client.solrj.impl.HttpSolrServer$RemoteSolrException: Invalid Date
String:'2000-01-01T00-00-04'
at org.apache.solr.client.solrj.impl.HttpSolrServer.request(HttpSolrServer.java:491)
{code}
SOLR supports only timestamps (YYYY-mm-ddThh:mm:ssZ) so date and time types should be
converted into timestamp before a query is send to SOLR.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)