Skip to content

Commit 33a176d

Browse files
authored
SNOW-1865910: fixing minor typos (#2792)
<!--- Please answer these questions before creating your pull request. Thanks! ---> 1. Which Jira issue is this PR addressing? Make sure that there is an accompanying issue to your PR. <!--- In this section, please add a Snowflake Jira issue number. Note that if a corresponding GitHub issue exists, you should still include the Snowflake Jira issue number. For example, for GitHub issue #1400, you should add "SNOW-1335071" here. ---> Fixes SNOW-1865910 2. Fill out the following pre-review checklist: - [ ] I am adding a new automated test(s) to verify correctness of my new code - [ ] If this test skips Local Testing mode, I'm requesting review from @snowflakedb/local-testing - [ ] I am adding new logging messages - [ ] I am adding a new telemetry message - [ ] I am adding new credentials - [ ] I am adding a new dependency - [ ] If this is a new feature/behavior, I'm adding the Local Testing parity changes. - [x] I acknowledge that I have ensured my changes to be thread-safe. Follow the link for more information: [Thread-safe Developer Guidelines](https://github.com/snowflakedb/snowpark-python/blob/main/CONTRIBUTING.md#thread-safe-development) 3. Please describe how your code solves the related issue. Please write a short description of how your code change solves the related issue.
1 parent 95ca97f commit 33a176d

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/snowflake/snowpark/functions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3430,7 +3430,7 @@ def charindex(
34303430
s = _to_col_if_str(source_expr, "charindex")
34313431
# Build AST here to prevent `position` from being recorded as a literal instead of int/None.
34323432
ast = (
3433-
build_function_expr("char_index", [t, s, position], ignore_null_args=True)
3433+
build_function_expr("charindex", [t, s, position], ignore_null_args=True)
34343434
if _emit_ast
34353435
else None
34363436
)

src/snowflake/snowpark/mock/_udtf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def _do_register_udtf(
7878
ast = with_src_position(stmt.expr.udtf, stmt)
7979
ast_id = stmt.var_id.bitfield1
8080

81-
object_name = kwargs["_registrated_object_name"]
81+
object_name = kwargs["_registered_object_name"]
8282
udtf = MockUserDefinedTableFunction(
8383
handler,
8484
output_schema,

tests/ast/data/functions1.test

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -550,7 +550,7 @@ df123 = df111.select(regexp_replace(col("A"), "B", "", 1, 0), regexp_replace(col
550550

551551
df124 = df111.select(replace(col("A"), "", ""), replace(col("A"), "B", "ahsgj"))
552552

553-
df125 = df111.select(char_index(col("A"), col("B"), 20), char_index(col("A"), col("B"), col("C")))
553+
df125 = df111.select(charindex(col("A"), col("B"), 20), charindex(col("A"), col("B"), col("C")))
554554

555555
df126 = df111.select(collate(col("A"), "sp-upper"))
556556

@@ -15229,7 +15229,7 @@ body {
1522915229
name {
1523015230
name {
1523115231
sp_name_flat {
15232-
name: "char_index"
15232+
name: "charindex"
1523315233
}
1523415234
}
1523515235
}
@@ -15313,7 +15313,7 @@ body {
1531315313
name {
1531415314
name {
1531515315
sp_name_flat {
15316-
name: "char_index"
15316+
name: "charindex"
1531715317
}
1531815318
}
1531915319
}

0 commit comments

Comments
 (0)