This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'csv' | |
| require 'optparse' | |
| class AWSELBAccessLogParser | |
| def initialize() | |
| @@elb_access_log_format=%Q(timestamp elb client:port backend:port request_processing_time backend_processing_time response_processing_time elb_status_code backend_status_code received_bytes sent_bytes "request" "user_agent" ssl_cipher ssl_protocol) | |
| # puts "elb_access_log_format is #{elb_access_log_format.split(" ")}" | |
| @@line_regex = / |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """coalesce_parquets.py | |
| gist of how to coalesce small row groups into larger row groups. | |
| Solves the problem described in https://issues.apache.org/jira/browse/PARQUET-1115 | |
| """ | |
| from __future__ import annotations | |
| from pathlib import Path | |
| from typing import Callable, Iterable, TypeVar |
OlderNewer