improve odps sql support

This commit is contained in:
shaojin.wensj
2015-08-04 09:32:51 +08:00
parent eb7b7037c4
commit c38ce08786
11 changed files with 81 additions and 66 deletions
@@ -0,0 +1,15 @@
package com.alibaba.druid.bvt.sql.odps;
import org.junit.Assert;
import com.alibaba.druid.sql.SQLUtils;
import junit.framework.TestCase;
public class OdpsFormatCommentTest27 extends TestCase {
public void test_drop_function() throws Exception {
String sql = "select split(val, ',')[1] from dual";
Assert.assertEquals("SELECT SPLIT(val, ',')[1]"
+ "\nFROM dual", SQLUtils.formatOdps(sql));
}
}