久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

    <bdo id='UQCDb'></bdo><ul id='UQCDb'></ul>
  • <i id='UQCDb'><tr id='UQCDb'><dt id='UQCDb'><q id='UQCDb'><span id='UQCDb'><b id='UQCDb'><form id='UQCDb'><ins id='UQCDb'></ins><ul id='UQCDb'></ul><sub id='UQCDb'></sub></form><legend id='UQCDb'></legend><bdo id='UQCDb'><pre id='UQCDb'><center id='UQCDb'></center></pre></bdo></b><th id='UQCDb'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='UQCDb'><tfoot id='UQCDb'></tfoot><dl id='UQCDb'><fieldset id='UQCDb'></fieldset></dl></div>
    1. <small id='UQCDb'></small><noframes id='UQCDb'>

        <tfoot id='UQCDb'></tfoot>

      1. <legend id='UQCDb'><style id='UQCDb'><dir id='UQCDb'><q id='UQCDb'></q></dir></style></legend>
      2. putSql處理器后executeSql失敗

        executeSql failing after putSql processor(putSql處理器后executeSql失敗)
        <legend id='Dx4O4'><style id='Dx4O4'><dir id='Dx4O4'><q id='Dx4O4'></q></dir></style></legend>

          • <tfoot id='Dx4O4'></tfoot>
            • <bdo id='Dx4O4'></bdo><ul id='Dx4O4'></ul>

                <tbody id='Dx4O4'></tbody>

            • <small id='Dx4O4'></small><noframes id='Dx4O4'>

              1. <i id='Dx4O4'><tr id='Dx4O4'><dt id='Dx4O4'><q id='Dx4O4'><span id='Dx4O4'><b id='Dx4O4'><form id='Dx4O4'><ins id='Dx4O4'></ins><ul id='Dx4O4'></ul><sub id='Dx4O4'></sub></form><legend id='Dx4O4'></legend><bdo id='Dx4O4'><pre id='Dx4O4'><center id='Dx4O4'></center></pre></bdo></b><th id='Dx4O4'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='Dx4O4'><tfoot id='Dx4O4'></tfoot><dl id='Dx4O4'><fieldset id='Dx4O4'></fieldset></dl></div>

                  本文介紹了putSql處理器后executeSql失敗的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  我的用例是查詢一組表的一組數據并將其插入到一個表中.所以我的 nifi 處理器基本上是這樣的:

                  my use case is to query a set of data for bunch of table and insert it into one table. so my nifi processor basically is like this:

                  executeSql(查詢數據集) >>> convertAvrotoJson >>>> convetJSONtoSQL(轉換為插入語句) >>>> putSQL (插入語句) >>> executeSQL(刪除與第一個處理器查詢相關的行表)

                  executeSql(query set of dataset) >>> convertAvrotoJson >>>> convetJSONtoSQL(convert to insert statement) >>>> putSQL (insert statement) >>> executeSQL(delete a row associated with first processor query in set of table)

                  問題出在最后一個 executeSQL 處理器中,當它沒有執行我的 sql 時,它一直試圖運行 putSQL 查詢.

                  the problem is in the last executeSQL processor, when its not executing my sql, instead it keep trying to run putSQL query.

                  為了測試(這是在executeSQL中),我只用一個普通的選擇替換了我的刪除查詢:

                  i replace my delete query with just a normal select for the sake of testing (this is in the executeSQL) :

                  這是 executeSQL 的數據來源,我們可以清楚地看到它仍在嘗試執行來自 putSQL 的插入語句,即使我已經指定只執行查詢:

                  and this is the data provenance for executeSQL, we can clearly see its still trying to execute the insert statement coming from putSQL even i already specified to just do a query:

                  這是錯誤,錯誤清楚地表明我沒有提供參數,而我顯然不希望它執行插入語句:

                  and this is the error, the error clearly say i didnt provide parameter when im clearly dont want it to execute an insert statement:

                  如何在表 A 中成功插入記錄后在表 B 上執行刪除語句?請幫助我堅持這一點.請不要與圖像混淆,因為我只是用普通選擇測試它以確保 nifi 可以正確執行我的查詢.我使用的是 mysql 5.7

                  how to execute a delete statement on table B after i successfully insert a record in Table A? please help as im stuck at this. please dont get confuse with the image, as im just testing it with normal select to ensure that nifi can execute my query correctly. im using mysql 5.7

                  推薦答案

                  如果流文件上有 sql.args 屬性,則 ExecuteSQL 將嘗試使用它們用參數填充 PreparedStatement.這是因為指定的查詢(無論是通過流文件正文還是通過 SQL 選擇查詢 屬性傳入)可以具有 ? 參數,由流文件屬性填充.對于上面的流程,您可以在 PutSQL 和 ExecuteSQL 之間放置一個 UpdateAttribute 處理器,將 Delete Attributes Expression 屬性設置為 sql\.args\..* 或其他內容,以刪除參數.

                  If there are sql.args attributes on the flow file, ExecuteSQL will attempt to use them to populate a PreparedStatement with parameters. This is because the specified query (whether coming in via the flowfile body or the SQL select query property) can have ? parameters, to be filled in by the flow file attributes. For your flow above, you could put an UpdateAttribute processor between the PutSQL and ExecuteSQL, setting the Delete Attributes Expression property to sql\.args\..* or something, to remove the parameters.

                  話雖如此,我建議您將整個流程替換為 ExecuteSQL -> PutDatabaseRecord -> ExecuteSQL.這繞過了轉換邏輯,SQL 生成/執行在內部完成(因此不需要 sql.args 屬性).

                  Having said that, I recommend you replace your whole flow with ExecuteSQL -> PutDatabaseRecord -> ExecuteSQL. This bypasses the conversion logic and the SQL generation/execution is done internally (so no need for sql.args attributes).

                  這篇關于putSql處理器后executeSql失敗的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                  【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

                  相關文檔推薦

                  How to use windowing functions efficiently to decide next N number of rows based on N number of previous values(如何有效地使用窗口函數根據 N 個先前值來決定接下來的 N 個行)
                  reuse the result of a select expression in the quot;GROUP BYquot; clause?(在“GROUP BY中重用選擇表達式的結果;條款?)
                  Does ignore option of Pyspark DataFrameWriter jdbc function ignore entire transaction or just offending rows?(Pyspark DataFrameWriter jdbc 函數的 ignore 選項是忽略整個事務還是只是有問題的行?) - IT屋-程序員軟件開發技
                  Error while using INSERT INTO table ON DUPLICATE KEY, using a for loop array(使用 INSERT INTO table ON DUPLICATE KEY 時出錯,使用 for 循環數組)
                  pyspark mysql jdbc load An error occurred while calling o23.load No suitable driver(pyspark mysql jdbc load 調用 o23.load 時發生錯誤 沒有合適的驅動程序)
                  How to integrate Apache Spark with MySQL for reading database tables as a spark dataframe?(如何將 Apache Spark 與 MySQL 集成以將數據庫表作為 Spark 數據幀讀取?)
                    <tbody id='Hwc1j'></tbody>

                    <legend id='Hwc1j'><style id='Hwc1j'><dir id='Hwc1j'><q id='Hwc1j'></q></dir></style></legend><tfoot id='Hwc1j'></tfoot>

                      • <small id='Hwc1j'></small><noframes id='Hwc1j'>

                      • <i id='Hwc1j'><tr id='Hwc1j'><dt id='Hwc1j'><q id='Hwc1j'><span id='Hwc1j'><b id='Hwc1j'><form id='Hwc1j'><ins id='Hwc1j'></ins><ul id='Hwc1j'></ul><sub id='Hwc1j'></sub></form><legend id='Hwc1j'></legend><bdo id='Hwc1j'><pre id='Hwc1j'><center id='Hwc1j'></center></pre></bdo></b><th id='Hwc1j'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='Hwc1j'><tfoot id='Hwc1j'></tfoot><dl id='Hwc1j'><fieldset id='Hwc1j'></fieldset></dl></div>
                          <bdo id='Hwc1j'></bdo><ul id='Hwc1j'></ul>
                          1. 主站蜘蛛池模板: 日韩在线观看一区 | 精品一区av | 性生生活大片免费看视频 | 亚洲午夜精品 | 玖玖国产精品视频 | 奇米超碰 | a免费视频| 国产一级片免费视频 | 999www视频免费观看 | 中文字幕在线观看一区 | 国产精品一区二区三区久久久 | 国产免费观看久久黄av片涩av | 噜噜噜噜狠狠狠7777视频 | 成人精品一区二区三区中文字幕 | 久久久久久久国产 | 成人高清视频在线观看 | 国产精品入口久久 | 国产一区亚洲 | 亚洲国产精品视频一区 | 欧美日韩在线综合 | 九九久久精品 | 国产精品国产三级国产aⅴ原创 | 99re在线播放| 天天曰夜夜 | 午夜影院在线观看 | 国产精品久久在线 | 亚洲精品自在在线观看 | 久久蜜桃资源一区二区老牛 | 免费h视频 | 精品免费视频 | 欧美日韩高清在线一区 | 国产羞羞视频在线观看 | 在线成人免费观看 | 欧美成人精品二区三区99精品 | 国产美女视频一区 | 国产亚洲精品久久19p | 在线一区二区三区 | 日韩在线视频一区 | 免费的网站www | 九色视频网站 | 欧美99久久精品乱码影视 |