v0.4.3
- Bump actions/checkout from 4.1.2 to 4.1.3 (#97). The
actions/checkout
dependency has been updated from version 4.1.2 to 4.1.3 in theupdate-main-version.yml
file. This new version includes a check to verify the git version before attempting to disablesparse-checkout
, and adds an SSH user parameter to improve functionality and compatibility. The release notes and CHANGELOG.md file provide detailed information on the specific changes and improvements. The pull request also includes a detailed commit history and links to corresponding issues and pull requests on GitHub for transparency. You can review and merge the pull request to update theactions/checkout
dependency in your project. - Maintain PySpark compatibility for databricks.labs.lsql.core.Row (#99). In this release, we have added a new method
asDict
to theRow
class in thedatabricks.labs.lsql.core
module to maintain compatibility with PySpark. This method returns a dictionary representation of theRow
object, with keys corresponding to column names and values corresponding to the values in each column. Additionally, we have modified thefetch
function in thebackends.py
file to returnRow
objects ofpyspark.sql
when usingself._spark.sql(sql).collect()
. This change is temporary and marked with aTODO
comment, indicating that it will be addressed in the future. We have also added error handling code in thefetch
function to ensure the function operates as expected. TheasDict
method in this implementation simply calls the existingas_dict
method, meaning the behavior of theasDict
method is identical to theas_dict
method. Theas_dict
method returns a dictionary representation of theRow
object, with keys corresponding to column names and values corresponding to the values in each column. The optionalrecursive
argument in theasDict
method, when set toTrue
, enables recursive conversion of nestedRow
objects to nested dictionaries. However, this behavior is not currently implemented, and therecursive
argument is alwaysFalse
by default.
Dependency updates:
- Bump actions/checkout from 4.1.2 to 4.1.3 (#97).
Contributors: @dependabot[bot], @bishwajit-db