Skip to content

Commit

Permalink
Change blacklist and whitelist nomenclature (#560)
Browse files Browse the repository at this point in the history
Signed-off-by: Chen Dai <[email protected]>
  • Loading branch information
dai-chen authored Apr 14, 2022
1 parent c8b58da commit b56cd4c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,7 @@ public void concat_ws_field_and_string() throws Exception {
}

/**
* Ignore this test case because painless doesn't whitelist String.split function.
* Ignore this test case because painless doesn't allowlist String.split function.
*
* @see <a href="https://www.elastic.co/guide/en/elasticsearch/painless/7.0/painless-api-reference.html">https://www.elastic.co/guide/en/elasticsearch/painless/7.0/painless-api-reference.html</a>
*/
Expand All @@ -517,7 +517,7 @@ public void whereConditionLeftFunctionRightVariableEqualTest() throws Exception
}

/**
* Ignore this test case because painless doesn't whitelist String.split function.
* Ignore this test case because painless doesn't allowlist String.split function.
*
* @see <a href="https://www.elastic.co/guide/en/elasticsearch/painless/7.0/painless-api-reference.html">https://www.elastic.co/guide/en/elasticsearch/painless/7.0/painless-api-reference.html</a>
*/
Expand Down Expand Up @@ -810,7 +810,7 @@ public void isnullWithMathExpr() throws IOException {
}

/**
* Ignore this test case because painless doesn't whitelist String.split function.
* Ignore this test case because painless doesn't allowlist String.split function.
*
* @see <a href="https://www.elastic.co/guide/en/elasticsearch/painless/7.0/painless-api-reference.html">https://www.elastic.co/guide/en/elasticsearch/painless/7.0/painless-api-reference.html</a>
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ public Tuple<String, String> function(String methodName, List<KVValue> paramers,
break;
}

// Split is currently not supported since its using .split() in painless which is not whitelisted
// Split is currently not supported since its using .split() in painless which is not allow-listed
case "split":
if (paramers.size() == 3) {
functionStr = split((SQLExpr) paramers.get(0).value,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import org.opensearch.sql.legacy.antlr.syntax.SyntaxAnalysisException;

/**
* Test cases focused on illegal syntax testing (blacklist) along with a few normal cases not covered previously.
* Test cases focused on illegal syntax testing (denylist) along with a few normal cases not covered previously.
* All other normal cases should be covered in existing unit test and IT.
*/
public class SyntaxAnalysisTest {
Expand Down

0 comments on commit b56cd4c

Please sign in to comment.