Hyunsik Choi created TAJO-876:
---------------------------------
Summary: Remove the use of direct paths in TestSQLAnalyzer
Key: TAJO-876
URL: https://issues.apache.org/jira/browse/TAJO-876
Project: Tajo
Issue Type: Improvement
Reporter: Hyunsik Choi
Priority: Trivial
Most of the unit tests in TestSQLAnalyzer use direct path for SQL files and the
expected result. It causes errors when we run the unit tests via IDE without
specifying the correct base dir.
Example:
{code}
@Test
public void testSelect1() throws IOException {
String sql = FileUtil.readTextFile(new
File("src/test/resources/queries/default/select_1.sql"));
parseQuery(sql);
}
{code}
The recent unit test uses an utility method for tests as follows:
{code}
@Test
public void windowFunction7() throws IOException {
assertParseResult("window7.sql", "window7.result");
}
{code}
The main purpose of this issue is to change existing problematic unit tests to
use the utility method {{assertParseResult()}}.
--
This message was sent by Atlassian JIRA
(v6.2#6252)