Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1009,7 +1009,7 @@ public void testStringFunctions()
// Reverse
assertQuery("SELECT comment, reverse(comment) FROM orders");

// Normalize
// Normalize, key_sampling_percent.
String tmpTableName = generateRandomTableName();
try {
getQueryRunner().execute(String.format("CREATE TABLE %s (c0 VARCHAR)", tmpTableName));
Expand All @@ -1023,6 +1023,17 @@ public void testStringFunctions()
assertQuery("SELECT normalize(comment, NFD) FROM nation");
assertQuery(String.format("SELECT normalize(c0) from %s", tmpTableName));
assertQuery(String.format("SELECT normalize(c0, NFKD) from %s", tmpTableName));
getQueryRunner().execute(String.format("INSERT INTO %s VALUES " +
"(NULL), " +
"('abc'), " +
"('abcdefghskwkjadhwd'), " +
"('001yxzuj'), " +
"('56wfythjhdhvgewuikwemn'), " +
"('special_#@,$|%%/^~?{}+-'), " +
"(' '), " +
"(''), " +
"('Hello World from Velox!')", tmpTableName));
assertQuery(String.format("SELECT key_sampling_percent(c0) FROM %s", tmpTableName));
}
finally {
dropTableIfExists(tmpTableName);
Expand Down
Loading