Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tanclary committed Oct 18, 2023
1 parent 41b34c8 commit 6826e5b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions babel/src/test/resources/sql/redshift.iq
Original file line number Diff line number Diff line change
Expand Up @@ -1777,7 +1777,7 @@ SELECT "LENGTH"('ily')

-- returns 8 (cf OCTET_LENGTH)
select length('français');
SELECT "LENGTH"(u&'fran\00e7ais')
SELECT "LENGTH"('français')
!explain-validated-on calcite

# LOWER
Expand Down Expand Up @@ -1824,7 +1824,7 @@ f7415e33f972c03abd4f3fed36748f7a
# OCTET_LENGTH
-- returns 9 (cf LENGTH)
select octet_length('français');
SELECT OCTET_LENGTH(CAST(u&'fran\00e7ais' AS VARBINARY))
SELECT OCTET_LENGTH(CAST('français' AS VARBINARY))
!explain-validated-on calcite

# POSITION is a synonym for STRPOS
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2576,7 +2576,7 @@ private SqlDialect nonOrdinalDialect() {
.withBigQuery().ok(expectedBigQuery);
}

@Test void testBigQueryCharLiteralEncoding() {
@Test void testStringLiteralEncoding() {
final SqlParser.Config parserConfig =
BigQuerySqlDialect.DEFAULT.configureParser(SqlParser.config());
final String query = "select 'ק' from `foodmart`.`product`";
Expand Down

0 comments on commit 6826e5b

Please sign in to comment.