You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2021/07/03 09:03:30 UTC

[GitHub] [airflow] BertCatsburg opened a new issue #16791: Deprecation warning on Sqlite operator

BertCatsburg opened a new issue #16791:
URL: https://github.com/apache/airflow/issues/16791


   <!--
   
   Welcome to Apache Airflow!  For a smooth issue process, try to answer the following questions.
   Don't worry if they're not all applicable; just try to include what you can :-)
   
   If you need to include code snippets or logs, please put them in fenced code
   blocks.  If they're super-long, please use the details tag like
   <details><summary>super-long log</summary> lots of stuff </details>
   
   Please delete these comment blocks before submitting the issue.
   
   -->
   
   <!--
   
   IMPORTANT!!!
   
   PLEASE CHECK "SIMILAR TO X EXISTING ISSUES" OPTION IF VISIBLE
   NEXT TO "SUBMIT NEW ISSUE" BUTTON!!!
   
   PLEASE CHECK IF THIS ISSUE HAS BEEN REPORTED PREVIOUSLY USING SEARCH!!!
   
   Please complete the next sections or the issue will be closed.
   These questions are the first thing we need to know to understand the context.
   
   -->
   
   **Apache Airflow version**: 2.1.0
   
   
   **Kubernetes version (if you are using kubernetes)** (use `kubectl version`): No Kubernetes
   
   **Environment**: Docker on OSX
   
   - **Cloud provider or hardware configuration**:
   - **OS** (e.g. from /etc/os-release): OSX
   - **Kernel** (e.g. `uname -a`): (In the Docker Container) : Linux e06c1b70e310 5.10.25-linuxkit 1 SMP Tue Mar 23 09:27:39 UTC 2021 x86_64 GNU/Linux
   - **Install tools**: Docker-compose, following the Airflow docs
   - **Others**:
   
   **What happened**:
   When running a DAG using the SQLite Operator, I get a DeprecationWarning on the SQLite Operator. 
   This is the line in Python: 
   ```python
   from airflow.providers.sqlite.operators.sqlite import SqliteOperator
   ```
   
   And this is the message in the logfile:
   ```bash
   [2021-07-03 08:52:31,107] {logging_mixin.py:104} WARNING - /home/airflow/.local/lib/python3.6/site-packages/airflow/providers/sqlite/operators/sqlite.py:25 DeprecationWarning: This decorator is deprecated.
   ```
   
   But according to the Airflow Docs the SQLiteOperator is imported from airflow.providers.sqlite.operators.sqlite
   
   Why the DeprecationWarning?
   
   **What you expected to happen**:
   
   No Deprecation Warning, since I'm using the latest import for Sqlite
   
   
   
   **How to reproduce it**:
   
   - Install Airflow for Docker, following the Docs. 
   - Create an empty DAG with the import statement in it 
   - Run the DAG
   - Check the logfile
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [airflow] boring-cyborg[bot] commented on issue #16791: Deprecation warning on Sqlite operator

Posted by GitBox <gi...@apache.org>.
boring-cyborg[bot] commented on issue #16791:
URL: https://github.com/apache/airflow/issues/16791#issuecomment-873373699


   Thanks for opening your first issue here! Be sure to follow the issue template!
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [airflow] potiuk edited a comment on issue #16791: Deprecation warning on Sqlite operator

Posted by GitBox <gi...@apache.org>.
potiuk edited a comment on issue #16791:
URL: https://github.com/apache/airflow/issues/16791#issuecomment-873374682


   Please upgrade to latest version of sqlite provider or (even better) to latest 2.1.1 version of Airflow which already has constraints set to include latest provider versions (released last night). 
   
   The warning is about deprecated "apply_defaults" decorator not import and with 2.1.0 'apply_defaults' is not needed any more - so we recently released all providers without "apply_default" decorator - for example for sqlite: https://airflow.apache.org/docs/apache-airflow-providers-sqlite/stable/index.html#breaking-changes. 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [airflow] potiuk commented on issue #16791: Deprecation warning on Sqlite operator

Posted by GitBox <gi...@apache.org>.
potiuk commented on issue #16791:
URL: https://github.com/apache/airflow/issues/16791#issuecomment-873374682


   Please upgrade to latest version of sqlite provider or (even better) to latest 2.1.1 version of Airflow which already has consraints set to include latest provider versions (released last night). 
   
   The warning is about deprecated "apply_defaults" decorator not import and with 2.1.0 'apply_defaults' is not needed any more - so we recently released all providers without "apply_default" decorator - for example for sqlite: https://airflow.apache.org/docs/apache-airflow-providers-sqlite/stable/index.html#breaking-changes. 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [airflow] potiuk closed issue #16791: Deprecation warning on Sqlite operator

Posted by GitBox <gi...@apache.org>.
potiuk closed issue #16791:
URL: https://github.com/apache/airflow/issues/16791


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org