久久久久久久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失敗的處理方法,對(duì)大家解決問題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

                  問題描述

                  我的用例是查詢一組表的一組數(shù)據(jù)并將其插入到一個(gè)表中.所以我的 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(查詢數(shù)據(jù)集) >>> convertAvrotoJson >>>> convetJSONtoSQL(轉(zhuǎn)換為插入語句) >>>> putSQL (插入語句) >>> executeSQL(刪除與第一個(gè)處理器查詢相關(guān)的行表)

                  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)

                  問題出在最后一個(gè) executeSQL 處理器中,當(dāng)它沒有執(zhí)行我的 sql 時(shí),它一直試圖運(yùn)行 putSQL 查詢.

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

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

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

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

                  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:

                  這是錯(cuò)誤,錯(cuò)誤清楚地表明我沒有提供參數(shù),而我顯然不希望它執(zhí)行插入語句:

                  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 上執(zhí)行刪除語句?請(qǐng)幫助我堅(jiān)持這一點(diǎn).請(qǐng)不要與圖像混淆,因?yàn)槲抑皇怯闷胀ㄟx擇測試它以確保 nifi 可以正確執(zhí)行我的查詢.我使用的是 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 將嘗試使用它們用參數(shù)填充 PreparedStatement.這是因?yàn)橹付ǖ牟樵?無論是通過流文件正文還是通過 SQL 選擇查詢 屬性傳入)可以具有 ? 參數(shù),由流文件屬性填充.對(duì)于上面的流程,您可以在 PutSQL 和 ExecuteSQL 之間放置一個(gè) UpdateAttribute 處理器,將 Delete Attributes Expression 屬性設(shè)置為 sql\.args\..* 或其他內(nèi)容,以刪除參數(shù).

                  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.

                  話雖如此,我建議您將整個(gè)流程替換為 ExecuteSQL -> PutDatabaseRecord -> ExecuteSQL.這繞過了轉(zhuǎn)換邏輯,SQL 生成/執(zhí)行在內(nèi)部完成(因此不需要 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).

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

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

                  相關(guān)文檔推薦

                  How to use windowing functions efficiently to decide next N number of rows based on N number of previous values(如何有效地使用窗口函數(shù)根據(jù) N 個(gè)先前值來決定接下來的 N 個(gè)行)
                  reuse the result of a select expression in the quot;GROUP BYquot; clause?(在“GROUP BY中重用選擇表達(dá)式的結(jié)果;條款?)
                  Does ignore option of Pyspark DataFrameWriter jdbc function ignore entire transaction or just offending rows?(Pyspark DataFrameWriter jdbc 函數(shù)的 ignore 選項(xiàng)是忽略整個(gè)事務(wù)還是只是有問題的行?) - IT屋-程序員軟件開發(fā)技
                  Error while using INSERT INTO table ON DUPLICATE KEY, using a for loop array(使用 INSERT INTO table ON DUPLICATE KEY 時(shí)出錯(cuò),使用 for 循環(huán)數(shù)組)
                  pyspark mysql jdbc load An error occurred while calling o23.load No suitable driver(pyspark mysql jdbc load 調(diào)用 o23.load 時(shí)發(fā)生錯(cuò)誤 沒有合適的驅(qū)動(dòng)程序)
                  How to integrate Apache Spark with MySQL for reading database tables as a spark dataframe?(如何將 Apache Spark 與 MySQL 集成以將數(shù)據(jù)庫表作為 Spark 數(shù)據(jù)幀讀取?)
                    <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在线 | 久操福利| 欧美一级淫片免费视频魅影视频 | 久久久国产一区二区三区 | 亚洲www| 91tv国产成人福利 | 精品国产一区二区三 | 91综合在线 | 精品婷婷 | 日韩小视频 | 国产精品一品二区三区的使用体验 | 黄色福利视频 | 日本看片网站 | 国产成人99久久亚洲综合精品 | 国产日批视频 | 五月天婷婷激情网 | 久久久久久一区 | 99热这里 | 欧美成年人视频 | 九九在线精品 | 中文字幕在线观看一区二区三区 | 在线观看a视频 | 成人羞羞国产免费游戏 | 国产福利视频在线观看 | 国产一区二区在线播放 | 婷婷综合五月天 | 日韩 国产 欧美 | 亚洲激情第一页 | 国产精品成人一区二区 | 中文字幕国产 | 97视频免费| 欧美午夜精品久久久久免费视 | 国产伦精品一区二区三区视频网站 | 国产日本在线观看 | 亚洲免费成人 | h网站在线 | 午夜性福利| www久久| 日韩精品不卡 | 亚洲一区二区av | 日韩在线视频一区二区三区 |