bug fxied for schema_stat

This commit is contained in:
高铁
2016-03-09 22:28:13 +08:00
parent a4e454fa11
commit 649ac38a3c
13 changed files with 109 additions and 23 deletions
@@ -0,0 +1,22 @@
package com.alibaba.druid.bvt.sql.odps.udf;
import org.junit.Assert;
import com.alibaba.druid.support.opds.udf.ExportSelectListColumns;
import junit.framework.TestCase;
public class ExportSelectListColumnsTest2 extends TestCase {
private ExportSelectListColumns udf = new ExportSelectListColumns();
public void test_0() throws Exception {
String sql = "SELECT * "
+ "\n FROM fund_base_cv_ad_auction_ocr_pv_tfs a"
+ "\n WHERE ds=20150819";
String text = udf.evaluate(sql, "odps");
Assert.assertEquals("fund_base_cv_ad_auction_ocr_pv_tfs.*", text);
}
}