久久久久久久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凹凸 | 91极品视频 | 久久亚洲国产精品 | 日韩一区二区三区视频在线播放 | 国产欧美日韩综合精品一区二区 | 欧美成人精品在线观看 | 精品一区国产 | 亚洲精品国产偷自在线观看 | 久久激情视频 | 中文字幕人成人 | 狠狠狠 | 日韩欧美中文在线 | 欧美日韩一区二区在线 | 成人高清在线 | 偷拍亚洲色图 | 成人国产精品久久 | 一区二区三区视频在线免费观看 | 水蜜桃亚洲一二三四在线 | 日韩在线欧美 | 免费观看一区二区三区毛片 | 亚洲交性 | 一起操网站 | 国产一级淫片a直接免费看 免费a网站 | 免费在线看黄视频 | av永久 | 欧美男人天堂 | 97色在线视频 | 久久99精品久久久久久国产越南 | www.99热| 中文字幕第一页在线 | 成人在线免费电影 | 99国产精品99久久久久久 | jlzzxxxx18hd护士| 日韩视频在线播放 | 久久国产精品一区二区三区 | 97视频网站 | 龙珠z在线观看 | 亚洲精品在线视频 | 亚洲精品九九 | 国产在线区 | 伊人网站在线 |