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/09/01 19:34:29 UTC

[GitHub] [airflow] blcksrx opened a new pull request #17974: WIP: Implement before stm and after stm in DBApiHooks

blcksrx opened a new pull request #17974:
URL: https://github.com/apache/airflow/pull/17974


   <!--
   Thank you for contributing! Please make sure that your code changes
   are covered with tests. And in case of new features or big changes
   remember to adjust the documentation.
   
   Feel free to ping committers for the review!
   
   In case of existing issue, reference it using one of the following:
   
   closes: #ISSUE
   related: #ISSUE
   
   How to write a good git commit message:
   http://chris.beams.io/posts/git-commit/
   -->
   This new feature  on top of `insert_rows` method gives more flexibility to the users to control type of `INSERT` statement and  also after statement. it can help users to implement more complex insert statements such as `partitioning`, `update`, `conflicts`, etc.
   
   ---
   **^ Add meaningful description above**
   
   related: #17938
   
   Read the **[Pull Request Guidelines](https://github.com/apache/airflow/blob/main/CONTRIBUTING.rst#pull-request-guidelines)** for more information.
   In case of fundamental code change, Airflow Improvement Proposal ([AIP](https://cwiki.apache.org/confluence/display/AIRFLOW/Airflow+Improvements+Proposals)) is needed.
   In case of a new dependency, check compliance with the [ASF 3rd Party License Policy](https://www.apache.org/legal/resolved.html#category-x).
   In case of backwards incompatible changes please leave a note in [UPDATING.md](https://github.com/apache/airflow/blob/main/UPDATING.md).
   


-- 
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] eladkal commented on pull request #17974: WIP: Implement before stm and after stm in DBApiHooks

Posted by GitBox <gi...@apache.org>.
eladkal commented on pull request #17974:
URL: https://github.com/apache/airflow/pull/17974#issuecomment-917410833


   Should we as part of this change deprecate the `_generate_insert_sql` of  `PostgesSQLHook`?
   It supports `ON CONFLICT` with a unique parameter `replace_index` in `insert_rows`?
   
   https://github.com/apache/airflow/blob/4ee8f82d482974b634a81cb684703c01ef6ce7c4/airflow/providers/postgres/hooks/postgres.py#L235-L251


-- 
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] blcksrx commented on pull request #17974: Implement before stm and after stm

Posted by GitBox <gi...@apache.org>.
blcksrx commented on pull request #17974:
URL: https://github.com/apache/airflow/pull/17974#issuecomment-937678146






-- 
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] blcksrx commented on pull request #17974: WIP: Implement before stm and after stm in DBApiHooks

Posted by GitBox <gi...@apache.org>.
blcksrx commented on pull request #17974:
URL: https://github.com/apache/airflow/pull/17974#issuecomment-913141852


   > The string concatenation against free-form user input feels a bit fragile to me though. Would it be possible to explicitly declare what additions we allow instead? I’m thinking something like
   > 
   > ```python
   > hook.inser_rows("table", rows, after_statement=OnConflictDoNothing())
   > ```
   
   And also about this. we can Implement it but as far as syntax is different for each database, we need to implement it for each of them


-- 
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] github-actions[bot] commented on pull request #17974: Implement before stm and after stm

Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on pull request #17974:
URL: https://github.com/apache/airflow/pull/17974#issuecomment-984170084


   This pull request has been automatically marked as stale because it has not had recent activity. It will be closed in 5 days if no further activity occurs. Thank you for your contributions.


-- 
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] github-actions[bot] commented on pull request #17974: Implement before stm and after stm

Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on pull request #17974:
URL: https://github.com/apache/airflow/pull/17974#issuecomment-937739374


   The PR most likely needs to run full matrix of tests because it modifies parts of the core of Airflow. However, committers might decide to merge it quickly and take the risk. If they don't merge it quickly - please rebase it to the latest main at your convenience, or amend the last commit of the PR, and push it with --force-with-lease.


-- 
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] blcksrx commented on pull request #17974: Implement before stm and after stm

Posted by GitBox <gi...@apache.org>.
blcksrx commented on pull request #17974:
URL: https://github.com/apache/airflow/pull/17974#issuecomment-937678146


   Yup, Im on it.


-- 
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] eladkal edited a comment on pull request #17974: WIP: Implement before stm and after stm in DBApiHooks

Posted by GitBox <gi...@apache.org>.
eladkal edited a comment on pull request #17974:
URL: https://github.com/apache/airflow/pull/17974#issuecomment-917410833


   Should we as part of this change deprecate the `_generate_insert_sql` of  `PostgresHook`?
   It supports `ON CONFLICT` with a unique parameter `replace_index` in `insert_rows`?
   
   https://github.com/apache/airflow/blob/4ee8f82d482974b634a81cb684703c01ef6ce7c4/airflow/providers/postgres/hooks/postgres.py#L235-L251


-- 
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] blcksrx commented on a change in pull request #17974: WIP: Implement before stm and after stm in DBApiHooks

Posted by GitBox <gi...@apache.org>.
blcksrx commented on a change in pull request #17974:
URL: https://github.com/apache/airflow/pull/17974#discussion_r702414445



##########
File path: airflow/hooks/dbapi.py
##########
@@ -286,11 +290,20 @@ def _generate_insert_sql(table, values, target_fields, replace, **kwargs):
         else:
             target_fields = ''
 
-        if not replace:
-            sql = "INSERT INTO "
+        if not kwargs.get("before_statement"):
+            if not replace:
+                sql = "INSERT INTO "
+            else:
+                sql = "REPLACE INTO "
         else:
-            sql = "REPLACE INTO "
+            sql = (
+                kwargs.get("before_statement") + " "
+            )  # ensure that there is at least a white space after that
+
         sql += f"{table} {target_fields} VALUES ({','.join(placeholders)})"
+        if kwargs.get("after_statement"):
+            sql += " " + kwargs.get("after_statement")

Review comment:
       Oh, thanks for remarks. I will fix it




-- 
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] blcksrx commented on pull request #17974: WIP: Implement before stm and after stm in DBApiHooks

Posted by GitBox <gi...@apache.org>.
blcksrx commented on pull request #17974:
URL: https://github.com/apache/airflow/pull/17974#issuecomment-910637521


   @potiuk I did implement it as WIP to give you guys (committers) a sight about this new feature. 
   I appreciate to hear your remarks and suggestion about it.


-- 
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] blcksrx commented on pull request #17974: WIP: Implement before stm and after stm in DBApiHooks

Posted by GitBox <gi...@apache.org>.
blcksrx commented on pull request #17974:
URL: https://github.com/apache/airflow/pull/17974#issuecomment-919387845


   @uranusjr I implemented some methods on MySQLHook about what you said. can you verify that its the one that you described and after that I can continue it to other hooks.


-- 
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] blcksrx commented on a change in pull request #17974: WIP: Implement before stm and after stm in DBApiHooks

Posted by GitBox <gi...@apache.org>.
blcksrx commented on a change in pull request #17974:
URL: https://github.com/apache/airflow/pull/17974#discussion_r703692871



##########
File path: airflow/hooks/dbapi.py
##########
@@ -286,11 +300,19 @@ def _generate_insert_sql(table, values, target_fields, replace, **kwargs):
         else:
             target_fields = ''
 
-        if not replace:
-            sql = "INSERT INTO "
+        if not before_statement:
+            if not replace:
+                sql = "INSERT INTO "
+            else:
+                sql = "REPLACE INTO "
         else:
-            sql = "REPLACE INTO "
+            sql = f"{before_statement} "

Review comment:
       if `before_statement` is `None`, it produce `None` on the `sql`




-- 
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 pull request #17974: Implement before stm and after stm

Posted by GitBox <gi...@apache.org>.
potiuk commented on pull request #17974:
URL: https://github.com/apache/airflow/pull/17974#issuecomment-937677201


   > There are two new files in `airflow/providers/email`. probably added by mistake?
   
   I think it just needs rebase. It's 267 commits behind :P . Can you please rebase @blcksrx ?
   


-- 
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 pull request #17974: WIP: Implement before stm and after stm in DBApiHooks

Posted by GitBox <gi...@apache.org>.
potiuk commented on pull request #17974:
URL: https://github.com/apache/airflow/pull/17974#issuecomment-910706253


   Looks like a  good start. Needs quite some explanations/docs. tests in order to be mergable, but I like the versatility. (and you need space before 'after_statement' :) 


-- 
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] github-actions[bot] closed pull request #17974: Implement before stm and after stm

Posted by GitBox <gi...@apache.org>.
github-actions[bot] closed pull request #17974:
URL: https://github.com/apache/airflow/pull/17974


   


-- 
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] blcksrx commented on pull request #17974: Implement before stm and after stm

Posted by GitBox <gi...@apache.org>.
blcksrx commented on pull request #17974:
URL: https://github.com/apache/airflow/pull/17974#issuecomment-945174168


   > We need to split that change into two independent ones and add pre-commit protection to make sure that no provider will use the new before/aftter statements without bumping minimum Airflow version.
   
   Actually I cant follow you about separating thing, could you please describe it more that what you mean?


-- 
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] uranusjr commented on a change in pull request #17974: WIP: Implement before stm and after stm in DBApiHooks

Posted by GitBox <gi...@apache.org>.
uranusjr commented on a change in pull request #17974:
URL: https://github.com/apache/airflow/pull/17974#discussion_r702756827



##########
File path: airflow/hooks/dbapi.py
##########
@@ -286,11 +300,19 @@ def _generate_insert_sql(table, values, target_fields, replace, **kwargs):
         else:
             target_fields = ''
 
-        if not replace:
-            sql = "INSERT INTO "
+        if not before_statement:
+            if not replace:
+                sql = "INSERT INTO "
+            else:
+                sql = "REPLACE INTO "
         else:
-            sql = "REPLACE INTO "
+            sql = f"{before_statement} "

Review comment:
       ```suggestion
               sql = f"{before_statement} {sql}"
   ```
   
   ?




-- 
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] uranusjr commented on a change in pull request #17974: WIP: Implement before stm and after stm in DBApiHooks

Posted by GitBox <gi...@apache.org>.
uranusjr commented on a change in pull request #17974:
URL: https://github.com/apache/airflow/pull/17974#discussion_r702393245



##########
File path: airflow/hooks/dbapi.py
##########
@@ -273,6 +273,10 @@ def _generate_insert_sql(table, values, target_fields, replace, **kwargs):
         :type target_fields: iterable of strings
         :param replace: Whether to replace instead of insert
         :type replace: bool
+
+        :keyword str before_statement: before statement sql eg: `INSERT IGNORE INTO TABLE`
+        :keyword str after_statement: after statement sql eg: `ON CONFLICT DO NOTHING`

Review comment:
       Is `:keyword` a thing?




-- 
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] blcksrx commented on pull request #17974: Implement before stm and after stm

Posted by GitBox <gi...@apache.org>.
blcksrx commented on pull request #17974:
URL: https://github.com/apache/airflow/pull/17974#issuecomment-937729728


   Done!


-- 
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] uranusjr commented on a change in pull request #17974: WIP: Implement before stm and after stm in DBApiHooks

Posted by GitBox <gi...@apache.org>.
uranusjr commented on a change in pull request #17974:
URL: https://github.com/apache/airflow/pull/17974#discussion_r702393699



##########
File path: airflow/hooks/dbapi.py
##########
@@ -286,11 +290,20 @@ def _generate_insert_sql(table, values, target_fields, replace, **kwargs):
         else:
             target_fields = ''
 
-        if not replace:
-            sql = "INSERT INTO "
+        if not kwargs.get("before_statement"):
+            if not replace:
+                sql = "INSERT INTO "
+            else:
+                sql = "REPLACE INTO "
         else:
-            sql = "REPLACE INTO "
+            sql = (
+                kwargs.get("before_statement") + " "
+            )  # ensure that there is at least a white space after that
+
         sql += f"{table} {target_fields} VALUES ({','.join(placeholders)})"
+        if kwargs.get("after_statement"):
+            sql += " " + kwargs.get("after_statement")

Review comment:
       This repeated `dict.get(key)` is needless. It’s better to make `before_statement` and `after_statement` [keyword-only arguments](https://www.python.org/dev/peps/pep-3102/#specification) instead.
   
   The `" " + kwargs.get("after_statement")` idiom is also fragile since both `before_statement` and `after_statement` can be arbitrary values at run-time. You need to first check they are valid strings (and raise `TypeError` if they are not), or use f-string to join them instead.




-- 
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] blcksrx commented on a change in pull request #17974: WIP: Implement before stm and after stm in DBApiHooks

Posted by GitBox <gi...@apache.org>.
blcksrx commented on a change in pull request #17974:
URL: https://github.com/apache/airflow/pull/17974#discussion_r702414271



##########
File path: airflow/hooks/dbapi.py
##########
@@ -273,6 +273,10 @@ def _generate_insert_sql(table, values, target_fields, replace, **kwargs):
         :type target_fields: iterable of strings
         :param replace: Whether to replace instead of insert
         :type replace: bool
+
+        :keyword str before_statement: before statement sql eg: `INSERT IGNORE INTO TABLE`
+        :keyword str after_statement: after statement sql eg: `ON CONFLICT DO NOTHING`

Review comment:
       Yup. it reference to kwargs args keys 




-- 
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] blcksrx commented on pull request #17974: WIP: Implement before stm and after stm in DBApiHooks

Posted by GitBox <gi...@apache.org>.
blcksrx commented on pull request #17974:
URL: https://github.com/apache/airflow/pull/17974#issuecomment-911338465


   @uranusjr At the first step I was thinking exactly like your Idea, but in the end, I realized that this implementation reduces its flexibility and also avoids combination(Consider a situation that the user is interested in to handle duplication and also wants to do partitioning)
   Besides that handling duplication in each database is specific to it.
   In addition, SQLAlchemy has a feature like this `prefix_with`: 
   https://docs.sqlalchemy.org/en/14/core/compiler.html?highlight=prefix_with#changing-the-default-compilation-of-existing-constructs


-- 
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] uranusjr commented on pull request #17974: WIP: Implement before stm and after stm in DBApiHooks

Posted by GitBox <gi...@apache.org>.
uranusjr commented on pull request #17974:
URL: https://github.com/apache/airflow/pull/17974#issuecomment-911272411


   The string concatenation against free-form user input feels a bit fragile to me though. Would it be possible to explicitly declare what additions we allow instead? I’m thinking something like
   
   ```python
   hook.inser_rows("table", rows, after_statement=OnConflictDoNothing())
   ```


-- 
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] github-actions[bot] commented on pull request #17974: Implement before stm and after stm

Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on pull request #17974:
URL: https://github.com/apache/airflow/pull/17974#issuecomment-937739374


   The PR most likely needs to run full matrix of tests because it modifies parts of the core of Airflow. However, committers might decide to merge it quickly and take the risk. If they don't merge it quickly - please rebase it to the latest main at your convenience, or amend the last commit of the PR, and push it with --force-with-lease.


-- 
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 a change in pull request #17974: Implement before stm and after stm

Posted by GitBox <gi...@apache.org>.
potiuk commented on a change in pull request #17974:
URL: https://github.com/apache/airflow/pull/17974#discussion_r725644559



##########
File path: airflow/providers/mysql/hooks/mysql.py
##########
@@ -282,3 +282,25 @@ def bulk_load_custom(
 
         cursor.close()
         conn.commit()
+

Review comment:
       I think this has nothing to dow with before/after statement? Could you please separate it out ? 

##########
File path: airflow/hooks/dbapi.py
##########
@@ -260,7 +260,15 @@ def get_cursor(self):
         return self.get_conn().cursor()
 
     @staticmethod
-    def _generate_insert_sql(table, values, target_fields, replace, **kwargs):
+    def _generate_insert_sql(
+        table,
+        values,
+        target_fields,
+        replace,
+        *args,
+        before_statement: Optional[str] = None,

Review comment:
       We have a potential backwards/forwards compatibility problem here. Similarly as in #17329 https://github.com/apache/airflow/pull/17329#pullrequestreview-775561528  we have to add protection for future versions of providers using the before/after statementts to start depending on Airflow 2.3 version (or handle backwards compatibility). Because if new providers will use those, they will not work with already released versions of Airflow.




-- 
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] uranusjr commented on a change in pull request #17974: WIP: Implement before stm and after stm in DBApiHooks

Posted by GitBox <gi...@apache.org>.
uranusjr commented on a change in pull request #17974:
URL: https://github.com/apache/airflow/pull/17974#discussion_r702757017



##########
File path: airflow/hooks/dbapi.py
##########
@@ -286,11 +300,19 @@ def _generate_insert_sql(table, values, target_fields, replace, **kwargs):
         else:
             target_fields = ''
 
-        if not replace:
-            sql = "INSERT INTO "
+        if not before_statement:
+            if not replace:
+                sql = "INSERT INTO "
+            else:
+                sql = "REPLACE INTO "
         else:
-            sql = "REPLACE INTO "
+            sql = f"{before_statement} "
+
         sql += f"{table} {target_fields} VALUES ({','.join(placeholders)})"
+
+        if after_statement:
+            sql += f" {after_statement}"

Review comment:
       ```suggestion
               sql = f"{sql} {after_statement}"
   ```




-- 
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 pull request #17974: Implement before stm and after stm

Posted by GitBox <gi...@apache.org>.
potiuk commented on pull request #17974:
URL: https://github.com/apache/airflow/pull/17974#issuecomment-937677201


   > There are two new files in `airflow/providers/email`. probably added by mistake?
   
   I think it just needs rebase. It's 267 commits behind :P . Can you please rebase @blcksrx ?
   


-- 
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] blcksrx commented on pull request #17974: WIP: Implement before stm and after stm in DBApiHooks

Posted by GitBox <gi...@apache.org>.
blcksrx commented on pull request #17974:
URL: https://github.com/apache/airflow/pull/17974#issuecomment-917411521


   I believe after acceptance of this proposal on `DBApiHook`, We should work on Hooks that is child of this Hook and provide functionality like @uranusjr suggested. We can Implement `OnConflictDoNothing()` or `OnConflictUpdate(col1, ...)` , etc.


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