Skip to content

Commit

Permalink
Add desc
Browse files Browse the repository at this point in the history
  • Loading branch information
herunkang2018 committed Oct 26, 2023
1 parent eef8eee commit 01c0662
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4520,6 +4520,10 @@ void testBitGetFunc(SqlOperatorFixture f, String functionName) {
f.checkNull("to_hex(cast(null as varbinary))");
}

/** Test case for
* <a href="https://issues.apache.org/jira/browse/CALCITE-6065">[CALCITE-6065]
* Add HEX and UNHEX functions (enabled in Hive and Spark libraries)</a>.
*/
@Test void testHex() {
final SqlOperatorFixture f0 = fixture().setFor(SqlLibraryOperators.HEX);
f0.checkFails("^hex(x'')^",
Expand Down Expand Up @@ -4554,6 +4558,10 @@ void testBitGetFunc(SqlOperatorFixture f, String functionName) {
f0.forEachLibrary(list(SqlLibrary.HIVE, SqlLibrary.SPARK), consumer);
}

/** Test case for
* <a href="https://issues.apache.org/jira/browse/CALCITE-6065">[CALCITE-6065]
* Add HEX and UNHEX functions (enabled in Hive and Spark libraries)</a>.
*/
@Test void testUnHex() {
final SqlOperatorFixture f0 = fixture().setFor(SqlLibraryOperators.UNHEX);
f0.checkFails("^unhex('')^",
Expand Down

0 comments on commit 01c0662

Please sign in to comment.