batch sink

stream sink

  1. schema = 'sepal_length double, sepal_width double, petal_length double, petal_width double, category string'
  2. csvSource = CsvSourceStreamOp()\
  3. .setFilePath(filePath)\
  4. csvSink = CsvSinkStreamOp()\
  5. .setFilePath('~/csv_test_s.txt')
  6. csvSource.link(csvSink)
  7. StreamOperator.execute()