Documentation
¶
Index ¶
- Constants
- func CleanupCollectionTempDirs()
- func EnsureCollectionTempDir() string
- func GetParquetFileGlobForPartition(dataDir, tableName, partitionName, fileRoot string) string
- func GetParquetFileGlobForTable(dataDir, tableName, fileRoot string) string
- func GetParquetPartitionPath(dataDir, tableName, partitionName string) string
- func GetTempAndInvalidParquetFileGlobForPartition(dataDir, tableName, partitionName string) string
- func GetTempParquetFileGlobForPartition(dataDir, tableName, partitionName, fileRoot string) string
- func InvalidParquetFilePath() string
- func PruneTree(folder string) error
- func TailpipeDbFilePath() string
- type PartitionFields
Constants ¶
View Source
const TempParquetExtension = ".parquet.tmp"
Variables ¶
This section is empty.
Functions ¶
func CleanupCollectionTempDirs ¶ added in v0.2.0
func CleanupCollectionTempDirs()
func EnsureCollectionTempDir ¶ added in v0.2.0
func EnsureCollectionTempDir() string
func GetParquetPartitionPath ¶
func GetTempAndInvalidParquetFileGlobForPartition ¶ added in v0.2.0
GetTempAndInvalidParquetFileGlobForPartition returns a glob pattern for invalid and temporary parquet files for a partition
func GetTempParquetFileGlobForPartition ¶ added in v0.2.0
func InvalidParquetFilePath ¶ added in v0.2.0
func InvalidParquetFilePath() string
func TailpipeDbFilePath ¶
func TailpipeDbFilePath() string
Types ¶
type PartitionFields ¶ added in v0.2.0
PartitionFields represents the components of a parquet file path
func ExtractPartitionFields ¶ added in v0.2.0
func ExtractPartitionFields(parquetFilePath string) (PartitionFields, error)
ExtractPartitionFields parses a parquet file path and returns its components. Expected path format:
/path/to/dir/tp_table=<table_name>/tp_partition=<partition_id>/tp_date=<YYYY-MM-DD>/tp_index=<index>/file.parquet
Rules:
- Fields can appear in any order
- It is an error for the same field to appear with different values
- Date must be in YYYY-MM-DD format
- Missing fields are allowed (will have zero values)
Click to show internal directories.
Click to hide internal directories.