Skip to content

Commit

Permalink
update news, fix postgres autoswitch
Browse files Browse the repository at this point in the history
  • Loading branch information
drizk1 committed Aug 27, 2024
1 parent a2481f1 commit 4447478
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# TidierDB.jl updates


## v0.3.2 - 2024-08-**
## v0.3.2 - 2024-08-26
- adds `@head` for limiting number of collected rows
- adds support for reading URLS in `db_table` with ClickHouse
- adds support for reading from multiple files at once as a vector of urls in `db_table` when using ClickHouse
Expand Down
2 changes: 1 addition & 1 deletion ext/LibPQExt.jl
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ end


function TidierDB.get_table_metadata(conn::LibPQ.Connection, table_name::String)
set_sql_mode(libpq());
set_sql_mode(postgres());
if occursin(".", table_name)
table_name = split(table_name, ".")[2]
end
Expand Down
2 changes: 1 addition & 1 deletion src/joins_sq.jl
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ macro left_join(sqlquery, join_table, lhs_column, rhs_column)
cte_name = "cte_" * string(sq.cte_count)

most_recent_source = !isempty(sq.ctes) ? "cte_" * string(sq.cte_count - 1) : sq.from

join_sql = " " * most_recent_source * ".*, " * string(gbq_join_parse($(esc(join_table)))) * ".* FROM " * gbq_join_parse(most_recent_source) *
" LEFT JOIN " * string($(esc(join_table))) * " ON " * string(gbq_join_parse($(esc(join_table))), ".", $lhs_col_str, " = ", gbq_join_parse(most_recent_source), ".", $rhs_col_str)

Expand Down

2 comments on commit 4447478

@drizk1
Copy link
Member Author

@drizk1 drizk1 commented on 4447478 Aug 27, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator register

Release notes:

Adds

  • @head for limiting number of collected rows
  • support for reading URLS in db_table with ClickHouse
  • support for reading from multiple files at once as a vector of urls in db_table when using ClickHouse
    • ie db_table(db, ["url1", "url2"])
  • connect() support for MS SQL
  • show_tables for most backends to view existing tables on connection

Bug Fixes

  • Bugfix: @count updates metadata
  • Bugfix: update_con can be part of chain (useful for expiring Snowflake tokens)
  • Bugfix to allow CrateDB and RisingWave backends via LibPQ

Docs

  • Docs comparing TidierDB to Ibis
  • Docs around using * for reading in multiple files from folder
  • Docs for db_table
  • Docs for previewing or saving intermediate tables in ongoing @chain

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/113904

Tagging

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.3.2 -m "<description of version>" 444747861cdfa9d5a22c765ebbbe37b9cc75e895
git push origin v0.3.2

Please sign in to comment.