You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+6-1Lines changed: 6 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,8 +8,10 @@
8
8
9
9
- Invoking snowflake system procedures does not invoke an additional `describe procedure` call to check the return type of the procedure.
10
10
- Added support for `Session.create_dataframe()` with the stage URL and FILE data type.
11
-
- Added support for different modes for dealing with corrupt XML records when reading an XML file using `session.read.option('rowTag', <tag_name>).xml(<stage_file_path>)`. Currently `PERMISSIVE`, `DROPMALFORMED` and `FAILFAST` are supported.
11
+
- Added support for different modes for dealing with corrupt XML records when reading an XML file using `session.read.option('mode', <mode>), option('rowTag', <tag_name>).xml(<stage_file_path>)`. Currently `PERMISSIVE`, `DROPMALFORMED` and `FAILFAST` are supported.
12
+
- Improved the error message of the XML reader when the specified row tag is not found in the file.
12
13
- Improved query generation for `Dataframe.drop` to use `SELECT * EXCLUDE ()` to exclude the dropped columns. To enable this feature, set `session.conf.set("use_simplified_query_generation", True)`.
14
+
- Added support for `VariantType` to `StructType.from_json`
13
15
14
16
#### Bug Fixes
15
17
@@ -21,13 +23,16 @@
21
23
#### Bug Fixes
22
24
23
25
- Fixed a bug in `snowflake.snowpark.functions.rank` that would cause sort direction to not be respected.
26
+
- Fixed a bug in `snowflake.snowpark.functions.to_timestamp_*` that would cause incorrect results on filtered data.
24
27
25
28
### Snowpark pandas API Updates
26
29
27
30
#### New Features
28
31
29
32
- Added support for dict values in `Series.str.get`, `Series.str.slice`, and `Series.str.__getitem__` (`Series.str[...]`).
30
33
- Added support for `DataFrame.to_html`.
34
+
- Added support for `DataFrame.to_string` and `Series.to_string`.
35
+
- Added support for reading files from S3 buckets using `pd.read_csv`.
f"Cannot create the target table {table_name} because Snowpark cannot determine the column names to use. You should create the table before calling copy_into_table()."
128
128
)
129
129
130
+
@staticmethod
131
+
defDF_XML_ROW_TAG_NOT_FOUND(
132
+
row_tag: Optional[str] =None,
133
+
file_path: Optional[str] =None,
134
+
) ->SnowparkDataframeReaderException:
135
+
ifrow_tagisnotNoneandfile_pathisnotNone:
136
+
msg=f"Cannot find the row tag '{row_tag}' in the XML file {file_path}."
0 commit comments