Uploaded image for project: 'CarbonData'
  1. CarbonData
  2. CARBONDATA-4227

SDK CarbonWriterBuilder cannot execute `build()` several times with different output path

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 2.1.1
    • Fix Version/s: None
    • Component/s: core
    • Labels:
      None

      Description

      Sometimes we want to reuse CarbonWriterBuilder object to build CarbonWriter with different output paths, but it does not work.

      For example:

      val builder = CarbonWriter.builder().withCsvInput(...).writtenBy(...)
      
      // 1. first writing with path1
      val writer1 = builder.outputPath(path1).build()
      // write data, it works 
      
      // 2. second writing with path2
      val writer2 = builder.outputPath(path2).build()
      // write data, it does not work. It still writes data to path1
      
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              514793425@qq.com ChenKai
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 2h 10m
                2h 10m