Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

TAJO-2166: Disallow csv file format in DDL Languages #1037

Closed
wants to merge 2 commits into from

Conversation

dongjinleekr
Copy link
Contributor

No description provided.

@dongjinleekr dongjinleekr force-pushed the feature/TAJO-2166 branch 2 times, most recently from a51583a to 9a5b065 Compare July 10, 2016 02:19
executeString("CREATE TABLE D1.table1 (age int) using csv;").close();
fail("It should not reach here.");
} catch (Throwable e) {
assertEquals(e.getClass(), SQLSyntaxError.class);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about using JUnit's Expected Exception? You can simply check the expected exception like in https://github.com/apache/tajo/blob/master/tajo-catalog/tajo-catalog-server/src/test/java/org/apache/tajo/catalog/TestCatalogExceptions.java#L65,
or do more things like described here https://github.com/junit-team/junit4/wiki/Exception-testing.

@dongjinleekr
Copy link
Contributor Author

I applied all your comments! :)

@jihoonson
Copy link
Contributor

+1 Thanks.

@asfgit asfgit closed this in fdd2ca2 Jul 20, 2016
@dongjinleekr dongjinleekr deleted the feature/TAJO-2166 branch July 22, 2016 11:23
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
2 participants