Skip to content

Instantly share code, notes, and snippets.

View vibhatha's full-sized avatar
🏠
Working from home

Vibhatha Lakmal Abeykoon vibhatha

🏠
Working from home
View GitHub Profile
@msharp
msharp / FileSplitter.py
Last active August 25, 2023 04:33
python script to split a (large) file into multiple (smaller) files with specified number of lines
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
import os
class FileSplitter:
def __init__(self):
self.parse_args(sys.argv)
@ianmcook
ianmcook / acero_execplan.cpp
Last active January 30, 2023 21:55
Create and execute an Acero ExecPlan
#include <iostream>
#include <arrow/api.h>
#include <arrow/result.h>
#include <arrow/compute/api.h>
#include <arrow/compute/exec/exec_plan.h>
arrow::Status ExecutePlanAndCollectAsTable(
std::shared_ptr<arrow::compute::ExecPlan> plan,
std::shared_ptr<arrow::Schema> schema,
arrow::AsyncGenerator<std::optional<arrow::compute::ExecBatch>> sink_gen) {