v0.4.3
- Bump actions/checkout from 4.1.2 to 4.1.3 (#97). The
actions/checkoutdependency has been updated from version 4.1.2 to 4.1.3 in theupdate-main-version.ymlfile. 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/checkoutdependency in your project. - Maintain PySpark compatibility for databricks.labs.lsql.core.Row (#99). In this release, we have added a new method
asDictto theRowclass in thedatabricks.labs.lsql.coremodule to maintain compatibility with PySpark. This method returns a dictionary representation of theRowobject, with keys corresponding to column names and values corresponding to the values in each column. Additionally, we have modified thefetchfunction in thebackends.pyfile to returnRowobjects ofpyspark.sqlwhen usingself._spark.sql(sql).collect(). This change is temporary and marked with aTODOcomment, indicating that it will be addressed in the future. We have also added error handling code in thefetchfunction to ensure the function operates as expected. TheasDictmethod in this implementation simply calls the existingas_dictmethod, meaning the behavior of theasDictmethod is identical to theas_dictmethod. Theas_dictmethod returns a dictionary representation of theRowobject, with keys corresponding to column names and values corresponding to the values in each column. The optionalrecursiveargument in theasDictmethod, when set toTrue, enables recursive conversion of nestedRowobjects to nested dictionaries. However, this behavior is not currently implemented, and therecursiveargument is alwaysFalseby default.
Dependency updates:
- Bump actions/checkout from 4.1.2 to 4.1.3 (#97).
Contributors: @dependabot[bot], @bishwajit-db