-
Notifications
You must be signed in to change notification settings - Fork 40
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
Add MSSQL support #1538
Add MSSQL support #1538
Conversation
Codecov ReportBase: 97.72% // Head: 97.72% // No change to project coverage 👍
Additional details and impacted files@@ Coverage Diff @@
## main #1538 +/- ##
=======================================
Coverage 97.72% 97.72%
=======================================
Files 21 21
Lines 835 835
=======================================
Hits 816 816
Misses 19 19 Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
8b7794b
to
404ab20
Compare
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.
Added comments but i think we should also add few integration test as part of example DAG for mysql as well. WDYT?
ba8a335
to
b2366e5
Compare
c91e941
to
f2f5b75
Compare
fff847c
to
16b3a4d
Compare
This is completed |
Added documentation and example DAG |
# Description ## What is the current behavior? After including the SQL server support for astro-sdk in #1538 , we are unable to spin up the dev docker container using astro-runtime 7.2, with the below error.This error is due to the libraries required for `pymssql` successful installation on the container missing in the `dev/Dockerfile` ``` #0 41.91 Building wheel for pymssql (pyproject.toml): started #0 43.11 Building wheel for pymssql (pyproject.toml): finished with status 'error' #0 43.11 error: subprocess-exited-with-error #0 43.11 #0 43.11 × Building wheel for pymssql (pyproject.toml) did not run successfully. #0 43.11 │ exit code: 1 #0 43.11 ╰─> [25 lines of output] #0 43.11 setup.py: platform.system() => Linux #0 43.11 setup.py: platform.architecture() => ('64bit', '') #0 43.11 setup.py: platform.libc_ver() => ('glibc', '2.31') #0 43.11 setup.py: include_dirs => [] #0 43.11 setup.py: library_dirs => [] #0 43.11 running bdist_wheel #0 43.11 running build #0 43.11 running build_py #0 43.11 creating build #0 43.11 creating build/lib.linux-aarch64-3.9 #0 43.11 creating build/lib.linux-aarch64-3.9/pymssql #0 43.11 copying src/pymssql/__init__.py -> build/lib.linux-aarch64-3.9/pymssql #0 43.11 running build_ext #0 43.11 cythoning src/pymssql/_mssql.pyx to src/pymssql/_mssql.c #0 43.11 cythoning src/pymssql/_pymssql.pyx to src/pymssql/_pymssql.c #0 43.11 building 'pymssql._mssql' extension #0 43.11 creating build/temp.linux-aarch64-3.9 #0 43.11 creating build/temp.linux-aarch64-3.9/src #0 43.11 creating build/temp.linux-aarch64-3.9/src/pymssql #0 43.11 gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/usr/local/include/python3.9 -c src/pymssql/_mssql.c -o build/temp.linux-aarch64-3.9/src/pymssql/_mssql.o -DMSDBLIB #0 43.11 src/pymssql/_mssql.c:747:10: fatal error: sqlfront.h: No such file or directory #0 43.11 747 | #include "sqlfront.h" #0 43.11 | ^~~~~~~~~~~~ #0 43.11 compilation terminated. #0 43.11 error: command '/usr/bin/gcc' failed with exit code 1 #0 43.11 [end of output] ``` <!-- Please describe the current behavior that you are modifying. --> <!-- Issues are required for both bug fixes and features. Reference it using one of the following: closes: #ISSUE related: #ISSUE --> ## What is the new behavior? <!-- Please describe the behavior or changes that are being added by this PR. --> - Include the missing libraries for successful `pymssql` installation in the `dev/Dockerfile` ## Does this introduce a breaking change? No
# Description ## What is the current behavior? After including the SQL server support for astro-sdk in #1538 , we are unable to spin up the dev docker container using astro-runtime 7.2, with the below error.This error is due to the libraries required for `pymssql` successful installation on the container missing in the `dev/Dockerfile` ``` #0 41.91 Building wheel for pymssql (pyproject.toml): started #0 43.11 Building wheel for pymssql (pyproject.toml): finished with status 'error' #0 43.11 error: subprocess-exited-with-error #0 43.11 #0 43.11 × Building wheel for pymssql (pyproject.toml) did not run successfully. #0 43.11 │ exit code: 1 #0 43.11 ╰─> [25 lines of output] #0 43.11 setup.py: platform.system() => Linux #0 43.11 setup.py: platform.architecture() => ('64bit', '') #0 43.11 setup.py: platform.libc_ver() => ('glibc', '2.31') #0 43.11 setup.py: include_dirs => [] #0 43.11 setup.py: library_dirs => [] #0 43.11 running bdist_wheel #0 43.11 running build #0 43.11 running build_py #0 43.11 creating build #0 43.11 creating build/lib.linux-aarch64-3.9 #0 43.11 creating build/lib.linux-aarch64-3.9/pymssql #0 43.11 copying src/pymssql/__init__.py -> build/lib.linux-aarch64-3.9/pymssql #0 43.11 running build_ext #0 43.11 cythoning src/pymssql/_mssql.pyx to src/pymssql/_mssql.c #0 43.11 cythoning src/pymssql/_pymssql.pyx to src/pymssql/_pymssql.c #0 43.11 building 'pymssql._mssql' extension #0 43.11 creating build/temp.linux-aarch64-3.9 #0 43.11 creating build/temp.linux-aarch64-3.9/src #0 43.11 creating build/temp.linux-aarch64-3.9/src/pymssql #0 43.11 gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/usr/local/include/python3.9 -c src/pymssql/_mssql.c -o build/temp.linux-aarch64-3.9/src/pymssql/_mssql.o -DMSDBLIB #0 43.11 src/pymssql/_mssql.c:747:10: fatal error: sqlfront.h: No such file or directory #0 43.11 747 | #include "sqlfront.h" #0 43.11 | ^~~~~~~~~~~~ #0 43.11 compilation terminated. #0 43.11 error: command '/usr/bin/gcc' failed with exit code 1 #0 43.11 [end of output] ``` <!-- Please describe the current behavior that you are modifying. --> <!-- Issues are required for both bug fixes and features. Reference it using one of the following: closes: #ISSUE related: #ISSUE --> ## What is the new behavior? <!-- Please describe the behavior or changes that are being added by this PR. --> - Include the missing libraries for successful `pymssql` installation in the `dev/Dockerfile` ## Does this introduce a breaking change? No
# Description ## What is the current behavior? <!-- Please describe the current behavior that you are modifying. --> astro-sdk operators currently do not work with mssql closes: #1109 ## What is the new behavior? <!-- Please describe the behavior or changes that are being added by this PR. --> - Add mssql support ## Does this introduce a breaking change? No ### Checklist - [x] Created tests which fail without the change (if possible) - [x] Extended the README / documentation, if necessary
# Description ## What is the current behavior? After including the SQL server support for astro-sdk in #1538 , we are unable to spin up the dev docker container using astro-runtime 7.2, with the below error.This error is due to the libraries required for `pymssql` successful installation on the container missing in the `dev/Dockerfile` ``` #0 41.91 Building wheel for pymssql (pyproject.toml): started #0 43.11 Building wheel for pymssql (pyproject.toml): finished with status 'error' #0 43.11 error: subprocess-exited-with-error #0 43.11 #0 43.11 × Building wheel for pymssql (pyproject.toml) did not run successfully. #0 43.11 │ exit code: 1 #0 43.11 ╰─> [25 lines of output] #0 43.11 setup.py: platform.system() => Linux #0 43.11 setup.py: platform.architecture() => ('64bit', '') #0 43.11 setup.py: platform.libc_ver() => ('glibc', '2.31') #0 43.11 setup.py: include_dirs => [] #0 43.11 setup.py: library_dirs => [] #0 43.11 running bdist_wheel #0 43.11 running build #0 43.11 running build_py #0 43.11 creating build #0 43.11 creating build/lib.linux-aarch64-3.9 #0 43.11 creating build/lib.linux-aarch64-3.9/pymssql #0 43.11 copying src/pymssql/__init__.py -> build/lib.linux-aarch64-3.9/pymssql #0 43.11 running build_ext #0 43.11 cythoning src/pymssql/_mssql.pyx to src/pymssql/_mssql.c #0 43.11 cythoning src/pymssql/_pymssql.pyx to src/pymssql/_pymssql.c #0 43.11 building 'pymssql._mssql' extension #0 43.11 creating build/temp.linux-aarch64-3.9 #0 43.11 creating build/temp.linux-aarch64-3.9/src #0 43.11 creating build/temp.linux-aarch64-3.9/src/pymssql #0 43.11 gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/usr/local/include/python3.9 -c src/pymssql/_mssql.c -o build/temp.linux-aarch64-3.9/src/pymssql/_mssql.o -DMSDBLIB #0 43.11 src/pymssql/_mssql.c:747:10: fatal error: sqlfront.h: No such file or directory #0 43.11 747 | #include "sqlfront.h" #0 43.11 | ^~~~~~~~~~~~ #0 43.11 compilation terminated. #0 43.11 error: command '/usr/bin/gcc' failed with exit code 1 #0 43.11 [end of output] ``` <!-- Please describe the current behavior that you are modifying. --> <!-- Issues are required for both bug fixes and features. Reference it using one of the following: closes: #ISSUE related: #ISSUE --> ## What is the new behavior? <!-- Please describe the behavior or changes that are being added by this PR. --> - Include the missing libraries for successful `pymssql` installation in the `dev/Dockerfile` ## Does this introduce a breaking change? No
Description
What is the current behavior?
astro-sdk operators currently do not work with mssql
closes: #1109
What is the new behavior?
Does this introduce a breaking change?
No
Checklist