• <legend id='6SF1i'><style id='6SF1i'><dir id='6SF1i'><q id='6SF1i'></q></dir></style></legend>
    <tfoot id='6SF1i'></tfoot>

    <small id='6SF1i'></small><noframes id='6SF1i'>

      <bdo id='6SF1i'></bdo><ul id='6SF1i'></ul>
    <i id='6SF1i'><tr id='6SF1i'><dt id='6SF1i'><q id='6SF1i'><span id='6SF1i'><b id='6SF1i'><form id='6SF1i'><ins id='6SF1i'></ins><ul id='6SF1i'></ul><sub id='6SF1i'></sub></form><legend id='6SF1i'></legend><bdo id='6SF1i'><pre id='6SF1i'><center id='6SF1i'></center></pre></bdo></b><th id='6SF1i'></th></span></q></dt></tr></i><div id='6SF1i'><tfoot id='6SF1i'></tfoot><dl id='6SF1i'><fieldset id='6SF1i'></fieldset></dl></div>

      1. Pyspark DataFrameWriter jdbc 函数的 ignore 选项是忽略整

        时间:2023-08-22
        <i id='rt2IJ'><tr id='rt2IJ'><dt id='rt2IJ'><q id='rt2IJ'><span id='rt2IJ'><b id='rt2IJ'><form id='rt2IJ'><ins id='rt2IJ'></ins><ul id='rt2IJ'></ul><sub id='rt2IJ'></sub></form><legend id='rt2IJ'></legend><bdo id='rt2IJ'><pre id='rt2IJ'><center id='rt2IJ'></center></pre></bdo></b><th id='rt2IJ'></th></span></q></dt></tr></i><div id='rt2IJ'><tfoot id='rt2IJ'></tfoot><dl id='rt2IJ'><fieldset id='rt2IJ'></fieldset></dl></div>
      2. <tfoot id='rt2IJ'></tfoot>

            <tbody id='rt2IJ'></tbody>
        1. <legend id='rt2IJ'><style id='rt2IJ'><dir id='rt2IJ'><q id='rt2IJ'></q></dir></style></legend>

                <bdo id='rt2IJ'></bdo><ul id='rt2IJ'></ul>

                1. <small id='rt2IJ'></small><noframes id='rt2IJ'>

                  本文介绍了Pyspark DataFrameWriter jdbc 函数的 ignore 选项是忽略整个事务还是只是有问题的行?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  Pyspark DataFrameWriter 类有一个 jdbc 函数 用于将数据帧写入 sql.这个函数有一个 --ignore 选项,文档说:

                  The Pyspark DataFrameWriter class has a jdbc function for writing a dataframe to sql. This function has an --ignore option that the documentation says will:

                  如果数据已经存在,则静默忽略此操作.

                  Silently ignore this operation if data already exists.

                  但是它会忽略整个事务,还是只会忽略插入重复的行?如果我将 --ignore--append 标志结合起来会怎样?行为会改变吗?

                  But will it ignore the entire transaction, or will it only ignore inserting the rows that are duplicates? What if I were to combine --ignore with the --append flag? Would the behavior change?

                  推荐答案

                  mode("ingore") 如果表(或另一个接收器)已经存在并且无法组合写入模式,则只是 NOOP.如果您正在寻找诸如 INSERT IGNOREINSERT INTO ... WHERE NOT EXISTS ... 之类的内容,则必须手动执行,例如使用 mapPartitions.

                  mode("ingore") is just NOOP if table (or another sink) already exists and writing modes cannot be combined. If you're looking for something like INSERT IGNORE or INSERT INTO ... WHERE NOT EXISTS ... you'll have to do it manually, for example with mapPartitions.

                  这篇关于Pyspark DataFrameWriter jdbc 函数的 ignore 选项是忽略整个事务还是只是有问题的行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:使用 INSERT INTO table ON DUPLICATE KEY 时出错,使用 下一篇:在“GROUP BY"中重用选择表达式的结果;条款

                  相关文章

                  最新文章

                  1. <small id='9YDIo'></small><noframes id='9YDIo'>

                      <i id='9YDIo'><tr id='9YDIo'><dt id='9YDIo'><q id='9YDIo'><span id='9YDIo'><b id='9YDIo'><form id='9YDIo'><ins id='9YDIo'></ins><ul id='9YDIo'></ul><sub id='9YDIo'></sub></form><legend id='9YDIo'></legend><bdo id='9YDIo'><pre id='9YDIo'><center id='9YDIo'></center></pre></bdo></b><th id='9YDIo'></th></span></q></dt></tr></i><div id='9YDIo'><tfoot id='9YDIo'></tfoot><dl id='9YDIo'><fieldset id='9YDIo'></fieldset></dl></div>

                        <bdo id='9YDIo'></bdo><ul id='9YDIo'></ul>
                      <tfoot id='9YDIo'></tfoot>
                    1. <legend id='9YDIo'><style id='9YDIo'><dir id='9YDIo'><q id='9YDIo'></q></dir></style></legend>