-
Notifications
You must be signed in to change notification settings - Fork 3
feat: Add Postgres Reader #53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
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.
lgtm
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.
I tested the failing lint and tests in local, after merging with PR#52 and they are passing, so seems like the failure is because that PR isn't yet merged to main
.
Changing base branch in GH UI didn't fix the tests!
Test log
Tests pass when run together with async version of code
(venv311) (base) ➜ llama-index-cloud-sql-pg-python git:(add-sync-reader) ✗ PYTHONPATH=src pytest -v -k reader
======================================================================================================================= test session starts =======================================================================================================================
platform linux -- Python 3.11.9, pytest-8.3.4, pluggy-1.5.0 -- /usr/local/google/home/vishwarajanand/github/llama-index-cloud-sql-pg-python/venv311/bin/python
cachedir: .pytest_cache
rootdir: /usr/local/google/home/vishwarajanand/github/llama-index-cloud-sql-pg-python
configfile: pyproject.toml
plugins: anyio-4.8.0, asyncio-0.25.2
asyncio: mode=Mode.STRICT, asyncio_default_fixture_loop_scope=class
collected 221 items / 200 deselected / 21 selected
tests/test_async_reader.py::TestAsyncPostgresReader::test_create_reader_with_invalid_parameters PASSED [ 4%]
tests/test_async_reader.py::TestAsyncPostgresReader::test_load_from_query_default PASSED [ 9%]
tests/test_async_reader.py::TestAsyncPostgresReader::test_load_from_query_customized_content_customized_metadata PASSED [ 14%]
tests/test_async_reader.py::TestAsyncPostgresReader::test_load_from_query_customized_content_default_metadata PASSED [ 19%]
tests/test_async_reader.py::TestAsyncPostgresReader::test_load_from_query_with_json PASSED [ 23%]
tests/test_async_reader.py::TestAsyncPostgresReader::test_load_from_query_customized_content_default_metadata_custom_formatter PASSED [ 28%]
tests/test_async_reader.py::TestAsyncPostgresReader::test_load_from_query_customized_content_default_metadata_custom_page_content_format PASSED [ 33%]
tests/test_reader.py::TestPostgresReaderAsync::test_create_reader_with_invalid_parameters PASSED [ 38%]
tests/test_reader.py::TestPostgresReaderAsync::test_load_from_query_default PASSED [ 42%]
tests/test_reader.py::TestPostgresReaderAsync::test_load_from_query_customized_content_customized_metadata PASSED [ 47%]
tests/test_reader.py::TestPostgresReaderAsync::test_load_from_query_customized_content_default_metadata PASSED [ 52%]
tests/test_reader.py::TestPostgresReaderAsync::test_load_from_query_with_json PASSED [ 57%]
tests/test_reader.py::TestPostgresReaderAsync::test_load_from_query_customized_content_default_metadata_custom_formatter PASSED [ 61%]
tests/test_reader.py::TestPostgresReaderAsync::test_load_from_query_customized_content_default_metadata_custom_page_content_format PASSED [ 66%]
tests/test_reader.py::TestPostgresReaderSync::test_create_reader_with_invalid_parameters PASSED [ 71%]
tests/test_reader.py::TestPostgresReaderSync::test_load_from_query_default PASSED [ 76%]
tests/test_reader.py::TestPostgresReaderSync::test_load_from_query_customized_content_customized_metadata PASSED [ 80%]
tests/test_reader.py::TestPostgresReaderSync::test_load_from_query_customized_content_default_metadata PASSED [ 85%]
tests/test_reader.py::TestPostgresReaderSync::test_load_from_query_with_json PASSED [ 90%]
tests/test_reader.py::TestPostgresReaderSync::test_load_from_query_customized_content_default_metadata_custom_formatter PASSED [ 95%]
tests/test_reader.py::TestPostgresReaderSync::test_load_from_query_customized_content_default_metadata_custom_page_content_format PASSED [100%]
========================================================================================================== 21 passed, 200 deselected in 94.28s (0:01:34) ==========================================================================================================
(venv311) (base) ➜ llama-index-cloud-sql-pg-python git:(add-sync-reader) ✗
By mistake, I pushed the merged branch with PR#52. Either we can merge that PR first, and rebase to see async interfaces go away. |
fb0cc36
to
e5334ab
Compare
feat: Add Postgres Reader