Skip to content

Instantly share code, notes, and snippets.

View ankitsultana's full-sized avatar

Ankit Sultana ankitsultana

View GitHub Profile
@ankitsultana
ankitsultana / LucenePlayground.java
Created March 28, 2024 00:22
Sample Lucene Query Test. Context is Pinot PR 12680
package com.ankitsultana.pinot.lucene;
import com.google.common.base.Preconditions;
import java.io.File;
import java.io.IOException;
import java.nio.file.Path;
import java.util.ArrayList;
import org.apache.commons.io.FileUtils;
import org.apache.lucene.analysis.standard.StandardAnalyzer;
import org.apache.lucene.document.Document;
@ankitsultana
ankitsultana / pupsert_e1.incorrect_data.csv
Created February 11, 2024 00:35
Partial Upsert Issue | Incorrect Data
We can make this file beautiful and searchable if this error is corrected: It looks like row 8 should actually have 8 columns, instead of 7. in line 7.
is_online,some_int_column,city_id,some_other_int_column,secondsSinceEpoch,comparison_column,uuid,$segmentName
null,-9223372036854775808,-9223372036854775808,-9223372036854775808,1707444765,0,some-uuid,ankitsultana_pupsert_e1__9__2__20240209T0206Z
null,-9223372036854775808,-9223372036854775808,-9223372036854775808,1707444765,0,some-uuid,ankitsultana_pupsert_e1__9__2__20240209T0206Z
null,-9223372036854775808,-9223372036854775808,-9223372036854775808,1707444446,0,some-uuid,ankitsultana_pupsert_e1__9__2__20240209T0206Z
null,-9223372036854775808,-9223372036854775808,-9223372036854775808,1707444445,0,some-uuid,ankitsultana_pupsert_e1__9__2__20240209T0206Z
null,-9223372036854775808,-9223372036854775808,-9223372036854775808,1707444445,0,some-uuid,ankitsultana_pupsert_e1__9__2__20240209T0206Z
null,-9223372036854775808,-9223372036854775808,-9223372036854775808,1707444419,0,some-uuid,ankitsultana_pupsert_e1__9__2__20240209T0206Z
null,-9223372036854775808,-9223372036854775808,-9223372036854775808,1707444418,0,some-uuid
@ankitsultana
ankitsultana / pupsert_e1.correct_data.csv
Created February 11, 2024 00:34
Partial Upsert Issue | Correct Data
is_online some_int_column city_id some_other_int_column secondsSinceEpoch comparison_column uuid $segmentName
null 2238 -9223372036854775808 514 1707444765 0 some-uuid ankitsultana_pupsert_e1__9__2__20240209T0206Z
null 2238 -9223372036854775808 514 1707444765 0 some-uuid ankitsultana_pupsert_e1__9__2__20240209T0206Z
null 2238 -9223372036854775808 514 1707444446 0 some-uuid ankitsultana_pupsert_e1__9__2__20240209T0206Z
null 2238 -9223372036854775808 514 1707444445 0 some-uuid ankitsultana_pupsert_e1__9__2__20240209T0206Z
null 2238 -9223372036854775808 514 1707444445 0 some-uuid ankitsultana_pupsert_e1__9__2__20240209T0206Z
null 2238 -9223372036854775808 514 1707444419 0 some-uuid ankitsultana_pupsert_e1__9__2__20240209T0206Z
null 2238 -9223372036854775808 514 1707444418 0 some-uuid ankitsultana_pupsert_e1__9__2__20240209T0206Z
@ankitsultana
ankitsultana / cpsig-schedule-advanced.md
Last active January 24, 2018 10:02
Contains schedule, links etc. for CPSIG BITS Pilani (Winter/Spring 2018) (Advanced only | Beginners has separate gist)

CPSIG BITS Pilani (Winter/Spring 2018) (Advanced)

Moved to my website

@ankitsultana
ankitsultana / listicle-sophistical.md
Last active January 23, 2018 12:16
Listicle Sophistical

Introduction

This list was created as part of CPSIG's initiative to promote coding culture in BITS-Pilani. The proper way of using this list would be to fork it, and keep checking the todo boxes as and when you complete stuff.

Stage 1 (Zero to non Zero)

Follow this list to go basically from zero to non zero.

  • Asymptotic Notation
@ankitsultana
ankitsultana / RunInstall.sh
Last active August 29, 2015 14:24
Sub-Downloader Code
mv ~/bk2dcradle-Sub-Downloader-0cecdb2 ~/Sub-Downloader
cd ~/Sub-Downloader
chmod +x install.sh
./install.sh
@ankitsultana
ankitsultana / README.md
Last active August 29, 2015 14:22 — forked from agnoster/README.md

agnoster.zsh-theme

A ZSH theme optimized for people who use:

  • Solarized
  • Git
  • Unicode-compatible fonts and terminals (I use iTerm2 + Menlo)

For Mac users, I highly recommend iTerm 2 + Solarized Dark