[ 
https://issues.apache.org/jira/browse/SQOOP-1846?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Veena Basavaraj updated SQOOP-1846:
-----------------------------------
    Description: 
I saw this test case I partially was responsible for and it does not make any 
sense to me anymore...

{code}
@Test
  public void testDateTimePrecisionWithCSVTextInObjectArrayOut() {
    Schema schema = new Schema("test");
    schema.addColumn(new DateTime("1"));
    dataFormat.setSchema(schema);
    dataFormat.setTextData("'2014-10-01 12:00:00.000'");
    assertEquals("2014-10-01T12:00:00.000-07:00", 
dataFormat.getObjectData()[0].toString());
  }
{code}

the spec in 
https://cwiki.apache.org/confluence/display/SQOOP/Sqoop2+CSV+Intermediate+representation
 does not mention 

  was:
I saw this test case I partially was responsible for and it does not make any 
sense to me anymore...

{code}
@Test
  public void testDateTimePrecisionWithCSVTextInObjectArrayOut() {
    Schema schema = new Schema("test");
    schema.addColumn(new DateTime("1"));
    dataFormat.setSchema(schema);
    dataFormat.setTextData("'2014-10-01 12:00:00.000'");
    assertEquals("2014-10-01T12:00:00.000-07:00", 
dataFormat.getObjectData()[0].toString());
  }
{code}


> Does DateTime have be iso8601 compliant ? JODA requires it to be
> ----------------------------------------------------------------
>
>                 Key: SQOOP-1846
>                 URL: https://issues.apache.org/jira/browse/SQOOP-1846
>             Project: Sqoop
>          Issue Type: Sub-task
>          Components: sqoop2-framework
>            Reporter: Veena Basavaraj
>             Fix For: 1.99.5
>
>
> I saw this test case I partially was responsible for and it does not make any 
> sense to me anymore...
> {code}
> @Test
>   public void testDateTimePrecisionWithCSVTextInObjectArrayOut() {
>     Schema schema = new Schema("test");
>     schema.addColumn(new DateTime("1"));
>     dataFormat.setSchema(schema);
>     dataFormat.setTextData("'2014-10-01 12:00:00.000'");
>     assertEquals("2014-10-01T12:00:00.000-07:00", 
> dataFormat.getObjectData()[0].toString());
>   }
> {code}
> the spec in 
> https://cwiki.apache.org/confluence/display/SQOOP/Sqoop2+CSV+Intermediate+representation
>  does not mention 



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

Reply via email to