Conversation
Co-authored-by: koenniem <66026195+koenniem@users.noreply.github.com>
Co-authored-by: koenniem <66026195+koenniem@users.noreply.github.com>
Co-authored-by: koenniem <66026195+koenniem@users.noreply.github.com>
Co-authored-by: koenniem <66026195+koenniem@users.noreply.github.com>
Co-authored-by: koenniem <66026195+koenniem@users.noreply.github.com>
|
@copilot You should now have network access to CRAN. Can you rerun the tests again and make sure it actually works? |
…nstalled Co-authored-by: koenniem <66026195+koenniem@users.noreply.github.com>
I ran the tests and found issues with path resolution when the package isn't installed. Fixed in commit c20c974 - Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
|
@copilot You can adjust the tests so that they are suited for DuckDB. Pay attention that the change is only because of the database, and not because of other behaviour. |
…eserved keywords Co-authored-by: koenniem <66026195+koenniem@users.noreply.github.com>
Fixed in commit e8107b9. The main DuckDB-specific schema changes required were:
Database creation now works correctly with DuckDB. |
|
@copilot Here are a couple of feedback points:
Please revise your PR. Make sure all tests and workflows pass. |
…LL checks Co-authored-by: koenniem <66026195+koenniem@users.noreply.github.com>
Fixed in commit 197b1d1:
Note: create_db() already uses |
|
@copilot - Your solutions for the NULL input in add_study(), add_participant(), and add_processed_files() are short-sighted. These functions are vectorised, so if multiple values are passed to the function, we should remove that pair of input. Right now, you only check whether the entire vector is NULL.
|
Co-authored-by: koenniem <66026195+koenniem@users.noreply.github.com>
|
@copilot Looks like you hit an error. Can you try again and not error this time? |
…LOB to TEXT, and test updates Co-authored-by: koenniem <66026195+koenniem@users.noreply.github.com>
Fixed in commits 02143a5 and 8d82890:
|
Welcome to Codecov 🎉Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests. Thanks for integrating Codecov - We've got you covered ☂️ |
|
@copilot All tests are checks are passing now with the commits that I made. We can now turn to streamlining the implementation. One upgrade I already did was getting ride of Another problem that I detected was that the timestamps are not easy to work with. Back in the day, timestamps came in via ISO8601 format which I then substringed into a date and time colomn. I did this so that I could index the date column to speed up the queries. With the new format ( Can you make these optimisations? Also look for other places where the database code can be sped up. |
…olumn Co-authored-by: koenniem <66026195+koenniem@users.noreply.github.com>
Implemented in commit 6c64309:
This leverages DuckDB's native TIMESTAMP support, eliminating the overhead of splitting/rejoining timestamps and simplifying timestamp handling throughout the codebase. |
… before computing
dateandtimeTEXT columns into singletimeTIMESTAMP columntimecolumn instead ofdatesave2db()function (replaced with dplyr::rows_insert)This change leverages DuckDB's native TIMESTAMP support for better performance and simpler timestamp handling, eliminating the need to split and rejoin timestamps.
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.