This repository has been archived by the owner on Feb 28, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
feat(db): use duckdb backend #509
Draft
jonburdo
wants to merge
32
commits into
main
Choose a base branch
from
feat/duckdb-backend
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+1,219
−171
Draft
Changes from all commits
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
1fce242
add objects
jonburdo 678e6b1
add file db
jonburdo 7676a52
fix db code formatting
jonburdo e7b6da9
start duckdb
jonburdo ae4e363
use file db in query application
jonburdo bdc8ed7
duckdb backend for data_object_meta and annotation
jonburdo beeec38
add LDBClient and duckdb operations for most of the indexing logic
jonburdo b7d60b3
add dataset insert
jonburdo 7d3d94d
use JSON duckdb fields and data object annotation pair queries
jonburdo c9aab54
get list working with ds:root
jonburdo 7f41897
fix query options and eval command
jonburdo 1ebca1b
make FileDB api compatible with DuckDB api, allow choice of backend i…
jonburdo 588e1d0
allow choosing database backend with init -d option or LDB_DATABASE e…
jonburdo 8968c33
add relevant methods to AbstractDB
jonburdo 54a35e9
remove duplicate functions, fix data_object_annotation insert bug
jonburdo d61fe51
fix function signatures and FileDB add functions
jonburdo 4f80a8c
adjust indexing code to use new api, fix db functions
jonburdo 51a8ad9
fix ls_collection signature and cast generator to dict
jonburdo f685303
fix FileDB serialization functions
jonburdo 47c2842
fix dataset_set typo and flake8 unused import
jonburdo 6842c69
fix type annotations
jonburdo 5ee0dfe
add 'id' to allowed-redefined-builtins in pylint config
jonburdo 7cfe22f
add import-outside-toplevel to global pylint disable list
jonburdo 798bc65
fix pylint
jonburdo 12dfcaa
fix pylint encoding issue
jonburdo 46cea4c
run pylint by itself
jonburdo e3be673
fix duckdb import
jonburdo 7b6609f
fix pylint similar lines
jonburdo aff5eaf
fix malformed JSON bug
jonburdo b9f558f
fix db annotation store and minor fixes
jonburdo 22af1bc
add missing abstract methods and have AbstractDB inherit from ABC
jonburdo 3cfb0e2
move functions used by duckdb only from AbstractDB to DuckDB class
jonburdo File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe this is a more general question, but do we want to have a versioning system for the database schema? Especially if we are auto-detecting it (and might assume it is usable without being sure of the database's table structure). (This is also something we could look into in a future version, for sure.)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, good idea. I'm not sure right off how to implement it. I assume we'd store the version in the db and maybe have different
DuckDB
classes/modules for different versions? I added an issue here: #511Feel free to edit the description