mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
bug fxied for schema_stat
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user