Giter VIP home page Giter VIP logo

Comments (4)

pmt-takayoshi-shiraki avatar pmt-takayoshi-shiraki commented on September 26, 2024 1

Thank you for your information. Now parquet dump file is loaded successfully.

from tsubakuro.

kuron99 avatar kuron99 commented on September 26, 2024

Thank you for reporting. The generated SQL looks good. According to status:err_illegal_operation, the write preserve setup might be missing. Can you check the following?

  • Is the transaction (used for load operation) type Long?
  • If so, is demo table correctly specified as write preserve? This is necessary declaration for long transaction when writing.

from tsubakuro.

pmt-takayoshi-shiraki avatar pmt-takayoshi-shiraki commented on September 26, 2024
  • Is the transaction (used for load operation) type Long?
    • Transaction Type Long is specified as opts for transaction in the Load operation.
  • If so, is demo table correctly specified as write preserve? This is necessary declaration for long transaction when writing.
    • This is not clear for me. Can I ask how to specify declaration for write preserve?

We must specifiy that in the CREATE TABLE clause or use GRANT authorization for database user?

from tsubakuro.

kuron99 avatar kuron99 commented on September 26, 2024

Write Preserve is the required for any long transaction that does write operation. At the creation of transaction, write target table names should be passed as write preserve as part of transaction option as below:

        var builder = SqlRequest.TransactionOption.newBuilder();
        builder.setType(SqlRequest.TransactionType.LONG);
        var table = SqlRequest.WritePreserve.newBuilder().setTableName("demo").build();
        builder.addWritePreserves(table);
        var transaction = sqlClient.createTransaction(builder.build()).await();
        ...
        ....

from tsubakuro.

Related Issues (15)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.