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/03/08 20:45:10 UTC

[GitHub] [airflow] fjmacagno opened a new issue #14671: Error when trying to search dag runs by conf

fjmacagno opened a new issue #14671:
URL: https://github.com/apache/airflow/issues/14671


   **Apache Airflow version**: 2.0.1
   
   **Kubernetes version (if you are using kubernetes)** (use `kubectl version`):
   
   **Environment**:
   
   - **Cloud provider or hardware configuration**: k8s on bare metal
   - **OS** (e.g. from /etc/os-release):
   - **Kernel** (e.g. `uname -a`):
   - **Install tools**: pip
   - **Others**:
   
   **What happened**:
   
   <details><summary>
   Something bad has happened.
   Please consider letting us know by creating a bug report using GitHub.
   
   Python version: 3.8.7
   Airflow version: 2.0.1
   Node: airflow-webserver-57f76df565-ztfb5
   -------------------------------------------------------------------------------
   Traceback (most recent call last):
     File "/usr/local/lib/python3.8/site-packages/sqlalchemy/engine/base.py", line 1276, in _execute_context
       self.dialect.do_execute(
     File "/usr/local/lib/python3.8/site-packages/sqlalchemy/engine/default.py", line 608, in do_execute
       cursor.execute(statement, parameters)
   psycopg2.errors.UndefinedFunction: operator does not exist: bytea ~~* bytea
   LINE 4: ...e' AND dag_run.state = 'running' AND dag_run.conf ILIKE '\x8...
                                                                ^
   HINT:  No operator matches the given name and argument types. You might need to add explicit type casts.
   
   
   The above exception was the direct cause of the following exception:
   
   Traceback (most recent call last):
     File "/usr/local/lib/python3.8/site-packages/flask/app.py", line 2447, in wsgi_app
       response = self.full_dispatch_request()
     File "/usr/local/lib/python3.8/site-packages/flask/app.py", line 1952, in full_dispatch_request
       rv = self.handle_user_exception(e)
     File "/usr/local/lib/python3.8/site-packages/flask/app.py", line 1821, in handle_user_exception
       reraise(exc_type, exc_value, tb)
     File "/usr/local/lib/python3.8/site-packages/flask/_compat.py", line 39, in reraise
       raise value
     File "/usr/local/lib/python3.8/site-packages/flask/app.py", line 1950, in full_dispatch_request
       rv = self.dispatch_request()
     File "/usr/local/lib/python3.8/site-packages/flask/app.py", line 1936, in dispatch_request
       return self.view_functions[rule.endpoint](**req.view_args)
     File "/usr/local/lib/python3.8/site-packages/flask_appbuilder/security/decorators.py", line 109, in wraps
       return f(self, *args, **kwargs)
     File "/usr/local/lib/python3.8/site-packages/flask_appbuilder/views.py", line 551, in list
       widgets = self._list()
     File "/usr/local/lib/python3.8/site-packages/flask_appbuilder/baseviews.py", line 1122, in _list
       widgets = self._get_list_widget(
     File "/usr/local/lib/python3.8/site-packages/flask_appbuilder/baseviews.py", line 1021, in _get_list_widget
       count, lst = self.datamodel.query(
     File "/usr/local/lib/python3.8/site-packages/flask_appbuilder/models/sqla/interface.py", line 425, in query
       count = self.query_count(query, filters, select_columns)
     File "/usr/local/lib/python3.8/site-packages/flask_appbuilder/models/sqla/interface.py", line 346, in query_count
       return self._apply_inner_all(
     File "/usr/local/lib/python3.8/site-packages/sqlalchemy/orm/query.py", line 3803, in count
       return self.from_self(col).scalar()
     File "/usr/local/lib/python3.8/site-packages/sqlalchemy/orm/query.py", line 3523, in scalar
       ret = self.one()
     File "/usr/local/lib/python3.8/site-packages/sqlalchemy/orm/query.py", line 3490, in one
       ret = self.one_or_none()
     File "/usr/local/lib/python3.8/site-packages/sqlalchemy/orm/query.py", line 3459, in one_or_none
       ret = list(self)
     File "/usr/local/lib/python3.8/site-packages/sqlalchemy/orm/query.py", line 3535, in __iter__
       return self._execute_and_instances(context)
     File "/usr/local/lib/python3.8/site-packages/sqlalchemy/orm/query.py", line 3560, in _execute_and_instances
       result = conn.execute(querycontext.statement, self._params)
     File "/usr/local/lib/python3.8/site-packages/sqlalchemy/engine/base.py", line 1011, in execute
       return meth(self, multiparams, params)
     File "/usr/local/lib/python3.8/site-packages/sqlalchemy/sql/elements.py", line 298, in _execute_on_connection
       return connection._execute_clauseelement(self, multiparams, params)
     File "/usr/local/lib/python3.8/site-packages/sqlalchemy/engine/base.py", line 1124, in _execute_clauseelement
       ret = self._execute_context(
     File "/usr/local/lib/python3.8/site-packages/sqlalchemy/engine/base.py", line 1316, in _execute_context
       self._handle_dbapi_exception(
     File "/usr/local/lib/python3.8/site-packages/sqlalchemy/engine/base.py", line 1510, in _handle_dbapi_exception
       util.raise_(
     File "/usr/local/lib/python3.8/site-packages/sqlalchemy/util/compat.py", line 182, in raise_
       raise exception
     File "/usr/local/lib/python3.8/site-packages/sqlalchemy/engine/base.py", line 1276, in _execute_context
       self.dialect.do_execute(
     File "/usr/local/lib/python3.8/site-packages/sqlalchemy/engine/default.py", line 608, in do_execute
       cursor.execute(statement, parameters)
   sqlalchemy.exc.ProgrammingError: (psycopg2.errors.UndefinedFunction) operator does not exist: bytea ~~* bytea
   LINE 4: ...e' AND dag_run.state = 'running' AND dag_run.conf ILIKE '\x8...
                                                                ^
   HINT:  No operator matches the given name and argument types. You might need to add explicit type casts.
   
   [SQL: SELECT count(*) AS count_1 
   FROM (SELECT dag_run.state AS dag_run_state, dag_run.id AS dag_run_id, dag_run.dag_id AS dag_run_dag_id, dag_run.execution_date AS dag_run_execution_date, dag_run.start_date AS dag_run_start_date, dag_run.end_date AS dag_run_end_date, dag_run.run_id AS dag_run_run_id, dag_run.creating_job_id AS dag_run_creating_job_id, dag_run.external_trigger AS dag_run_external_trigger, dag_run.run_type AS dag_run_run_type, dag_run.conf AS dag_run_conf, dag_run.last_scheduling_decision AS dag_run_last_scheduling_decision, dag_run.dag_hash AS dag_run_dag_hash 
   FROM dag_run 
   WHERE dag_run.dag_id = %(dag_id_1)s AND dag_run.state = %(state_1)s AND dag_run.conf ILIKE %(conf_1)s) AS anon_1]
   [parameters: {'dag_id_1': 'privacy-scrubbing-service', 'state_1': 'running', 'conf_1': <psycopg2.extensions.Binary object at 0x7f2e119d90c0>}]
   (Background on this error at: http://sqlalche.me/e/13/f405)
   </summary></details>
   
   **What you expected to happen**:
   
   Be able to search dag runs by conf contents
   
   **How to reproduce it**:
   ![image](https://user-images.githubusercontent.com/42754983/110379451-b1bed000-800b-11eb-9c78-92c22db244c6.png)
   ![image](https://user-images.githubusercontent.com/42754983/110378866-fc8c1800-800a-11eb-93fc-ddf0715c6b12.png)
   
   
   
   **Anything else we need to know**:
   
   


----------------------------------------------------------------
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.

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



[GitHub] [airflow] ryanahamilton commented on issue #14671: Error when trying to search dag runs by conf

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


   This appears to be a duplicate of #14374


-- 
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.

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



[GitHub] [airflow] ryanahamilton closed issue #14671: Error when trying to search dag runs by conf

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


   


-- 
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.

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