<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to 2: 'ON DATA CONVERSION ERROR SKIP' does not work</title><link href="https://sourceforge.net/p/cloudbase/bugs/2/" rel="alternate"/><link href="https://sourceforge.net/p/cloudbase/bugs/2/feed.atom" rel="self"/><id>https://sourceforge.net/p/cloudbase/bugs/2/</id><updated>2009-02-17T05:01:32Z</updated><subtitle>Recent changes to 2: 'ON DATA CONVERSION ERROR SKIP' does not work</subtitle><entry><title>'ON DATA CONVERSION ERROR SKIP' does not work</title><link href="https://sourceforge.net/p/cloudbase/bugs/2/" rel="alternate"/><published>2009-02-17T05:01:32Z</published><updated>2009-02-17T05:01:32Z</updated><author><name>YoungWoo Kim</name><uri>https://sourceforge.net/u/warwithin/</uri></author><id>https://sourceforge.net070f2b62e3546fa47d9054bd993d1e356859feef</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I have a data conversion problem on 'ON ERROR' clause.&lt;br /&gt;
I'd like to skip dirty rows using 'ON DATA CONVERSION ERROR SKIP' clause, but it doesnt work.&lt;/p&gt;
&lt;p&gt;DDL:&lt;br /&gt;
create table MYLOGS&lt;br /&gt;
(anonid  int, query varchar, querytime datetime format 'yyyy-MM-dd&lt;br /&gt;
HH:mm:ss', itemrank  int, clickurl varchar )&lt;br /&gt;
column sep '\t';&lt;/p&gt;
&lt;p&gt;Query:&lt;br /&gt;
select&lt;br /&gt;
year(querytime) as qy, month(querytime) as qm, count(*) as qcnt&lt;br /&gt;
from MYLOGS&lt;br /&gt;
group by qy, qm ON DATA CONVERSION ERROR SKIP&lt;br /&gt;
;&lt;/p&gt;
&lt;p&gt;On Reduce, I got an error:&lt;br /&gt;
java.io.IOException: Could not convert to date:null&lt;br /&gt;
at com.business.cloudbase.hadoop.job.AggFunHandler&lt;br /&gt;
$AggFunReducer.reduce(Unknown Source)&lt;br /&gt;
at com.business.cloudbase.hadoop.job.AggFunHandler&lt;br /&gt;
$AggFunReducer.reduce(Unknown Source)&lt;br /&gt;
at org.apache.hadoop.mapred.ReduceTask.run(ReduceTask.java:&lt;br /&gt;
318)&lt;br /&gt;
at org.apache.hadoop.mapred.TaskTracker$Child.main&lt;br /&gt;
(TaskTracker.java:2198)&lt;/p&gt;
&lt;p&gt;Thanks,&lt;br /&gt;
Youngwoo&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>