streaming-sql-engine 0.1.14__tar.gz → 0.1.15__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {streaming_sql_engine-0.1.14/streaming_sql_engine.egg-info → streaming_sql_engine-0.1.15}/PKG-INFO +1 -1
- {streaming_sql_engine-0.1.14 → streaming_sql_engine-0.1.15}/__init__.py +1 -1
- {streaming_sql_engine-0.1.14 → streaming_sql_engine-0.1.15}/executor.py +21 -6
- {streaming_sql_engine-0.1.14 → streaming_sql_engine-0.1.15}/pyproject.toml +1 -1
- {streaming_sql_engine-0.1.14 → streaming_sql_engine-0.1.15}/setup.py +1 -1
- {streaming_sql_engine-0.1.14 → streaming_sql_engine-0.1.15/streaming_sql_engine.egg-info}/PKG-INFO +1 -1
- {streaming_sql_engine-0.1.14 → streaming_sql_engine-0.1.15}/DEPLOYMENT.md +0 -0
- {streaming_sql_engine-0.1.14 → streaming_sql_engine-0.1.15}/MANIFEST.in +0 -0
- {streaming_sql_engine-0.1.14 → streaming_sql_engine-0.1.15}/QUICK_DEPLOY.md +0 -0
- {streaming_sql_engine-0.1.14 → streaming_sql_engine-0.1.15}/QUICK_FIX.md +0 -0
- {streaming_sql_engine-0.1.14 → streaming_sql_engine-0.1.15}/README.md +0 -0
- {streaming_sql_engine-0.1.14 → streaming_sql_engine-0.1.15}/documentation/APACHE_DRILL_COMPARISON.md +0 -0
- {streaming_sql_engine-0.1.14 → streaming_sql_engine-0.1.15}/documentation/API_JOIN_OPERATIONS.md +0 -0
- {streaming_sql_engine-0.1.14 → streaming_sql_engine-0.1.15}/documentation/ARCHITECTURAL_RECOMMENDATION.md +0 -0
- {streaming_sql_engine-0.1.14 → streaming_sql_engine-0.1.15}/documentation/ARCHITECTURE_DECISION.md +0 -0
- {streaming_sql_engine-0.1.14 → streaming_sql_engine-0.1.15}/documentation/ARCHITECTURE_SYNCED.md +0 -0
- {streaming_sql_engine-0.1.14 → streaming_sql_engine-0.1.15}/documentation/BEST_USE_CASES.md +0 -0
- {streaming_sql_engine-0.1.14 → streaming_sql_engine-0.1.15}/documentation/BETTER_FILTER_APPROACH.md +0 -0
- {streaming_sql_engine-0.1.14 → streaming_sql_engine-0.1.15}/documentation/CHANGES_SUMMARY.md +0 -0
- {streaming_sql_engine-0.1.14 → streaming_sql_engine-0.1.15}/documentation/COMPREHENSIVE_ARTICLE.md +0 -0
- {streaming_sql_engine-0.1.14 → streaming_sql_engine-0.1.15}/documentation/COMPREHENSIVE_DOCUMENTATION.md +0 -0
- {streaming_sql_engine-0.1.14 → streaming_sql_engine-0.1.15}/documentation/DEVELOPER_GUIDE.md +0 -0
- {streaming_sql_engine-0.1.14 → streaming_sql_engine-0.1.15}/documentation/DUCKDB_COMPARISON.md +0 -0
- {streaming_sql_engine-0.1.14 → streaming_sql_engine-0.1.15}/documentation/FINAL_IMPLEMENTATION_RECOMMENDATIONS.md +0 -0
- {streaming_sql_engine-0.1.14 → streaming_sql_engine-0.1.15}/documentation/FINAL_RECOMMENDATION.md +0 -0
- {streaming_sql_engine-0.1.14 → streaming_sql_engine-0.1.15}/documentation/FIRST_MATCH_ONLY_WARNINGS.md +0 -0
- {streaming_sql_engine-0.1.14 → streaming_sql_engine-0.1.15}/documentation/HOW_PROTOCOL_DETECTION_WORKS.md +0 -0
- {streaming_sql_engine-0.1.14 → streaming_sql_engine-0.1.15}/documentation/HOW_TO_ADD_TO_PROJECT.md +0 -0
- {streaming_sql_engine-0.1.14 → streaming_sql_engine-0.1.15}/documentation/INSTALLATION.md +0 -0
- {streaming_sql_engine-0.1.14 → streaming_sql_engine-0.1.15}/documentation/JSONL_EXECUTOR_ANALYSIS.md +0 -0
- {streaming_sql_engine-0.1.14 → streaming_sql_engine-0.1.15}/documentation/JSONL_EXECUTOR_REMOVED.md +0 -0
- {streaming_sql_engine-0.1.14 → streaming_sql_engine-0.1.15}/documentation/LIBRARY_DOCUMENTATION.md +0 -0
- {streaming_sql_engine-0.1.14 → streaming_sql_engine-0.1.15}/documentation/MEDIUM_ARTICLE.md +0 -0
- {streaming_sql_engine-0.1.14 → streaming_sql_engine-0.1.15}/documentation/MIGRATION_GUIDE.md +0 -0
- {streaming_sql_engine-0.1.14 → streaming_sql_engine-0.1.15}/documentation/MULTI_SOURCE_EXAMPLE_README.md +0 -0
- {streaming_sql_engine-0.1.14 → streaming_sql_engine-0.1.15}/documentation/MYSQL_USAGE.md +0 -0
- {streaming_sql_engine-0.1.14 → streaming_sql_engine-0.1.15}/documentation/OPTIMIZATIONS_BREAKDOWN.md +0 -0
- {streaming_sql_engine-0.1.14 → streaming_sql_engine-0.1.15}/documentation/OPTIMIZATIONS_NOT_DATABASE_ONLY.md +0 -0
- {streaming_sql_engine-0.1.14 → streaming_sql_engine-0.1.15}/documentation/OPTIMIZATIONS_VS_POLARS.md +0 -0
- {streaming_sql_engine-0.1.14 → streaming_sql_engine-0.1.15}/documentation/OPTIMIZER_AUTOMATED.md +0 -0
- {streaming_sql_engine-0.1.14 → streaming_sql_engine-0.1.15}/documentation/PERFORMANCE.md +0 -0
- {streaming_sql_engine-0.1.14 → streaming_sql_engine-0.1.15}/documentation/PERFORMANCE_COMPARISON.md +0 -0
- {streaming_sql_engine-0.1.14 → streaming_sql_engine-0.1.15}/documentation/POLARS_AND_MMAP_GUIDE.md +0 -0
- {streaming_sql_engine-0.1.14 → streaming_sql_engine-0.1.15}/documentation/PROTOCOL_AND_OPTIMIZATIONS_EXPLAINED.md +0 -0
- {streaming_sql_engine-0.1.14 → streaming_sql_engine-0.1.15}/documentation/PROTOCOL_EXPLANATION.md +0 -0
- {streaming_sql_engine-0.1.14 → streaming_sql_engine-0.1.15}/documentation/PUBLISHING.md +0 -0
- {streaming_sql_engine-0.1.14 → streaming_sql_engine-0.1.15}/documentation/PYPI_CHECKLIST.md +0 -0
- {streaming_sql_engine-0.1.14 → streaming_sql_engine-0.1.15}/documentation/QUICK_PUBLISH.md +0 -0
- {streaming_sql_engine-0.1.14 → streaming_sql_engine-0.1.15}/documentation/QUICK_START.md +0 -0
- {streaming_sql_engine-0.1.14 → streaming_sql_engine-0.1.15}/documentation/SIMPLE_PROTOCOL_GUIDE.md +0 -0
- {streaming_sql_engine-0.1.14 → streaming_sql_engine-0.1.15}/documentation/SIMPLE_SOURCE_FUNCTIONS.md +0 -0
- {streaming_sql_engine-0.1.14 → streaming_sql_engine-0.1.15}/documentation/SOURCE_COMBINATIONS_GUIDE.md +0 -0
- {streaming_sql_engine-0.1.14 → streaming_sql_engine-0.1.15}/documentation/TECHNICAL_DOCUMENTATION.md +0 -0
- {streaming_sql_engine-0.1.14 → streaming_sql_engine-0.1.15}/documentation/USER_GUIDE.md +0 -0
- {streaming_sql_engine-0.1.14 → streaming_sql_engine-0.1.15}/documentation/WHAT_IS_WHERE_TO_PARAMS.md +0 -0
- {streaming_sql_engine-0.1.14 → streaming_sql_engine-0.1.15}/documentation/WHEN_POLARS_IS_USED.md +0 -0
- {streaming_sql_engine-0.1.14 → streaming_sql_engine-0.1.15}/documentation/WHY_API_CONVERTER_NEEDED.md +0 -0
- {streaming_sql_engine-0.1.14 → streaming_sql_engine-0.1.15}/documentation/WHY_MANUAL_PARSING.md +0 -0
- {streaming_sql_engine-0.1.14 → streaming_sql_engine-0.1.15}/documentation/WHY_ORIGINAL_IS_FASTER.md +0 -0
- {streaming_sql_engine-0.1.14 → streaming_sql_engine-0.1.15}/documentation/WHY_PROTOCOL_IN_SOURCES.md +0 -0
- {streaming_sql_engine-0.1.14 → streaming_sql_engine-0.1.15}/documentation/XML_MONGO_USE_CASE.md +0 -0
- {streaming_sql_engine-0.1.14 → streaming_sql_engine-0.1.15}/engine.py +0 -0
- {streaming_sql_engine-0.1.14 → streaming_sql_engine-0.1.15}/evaluator.py +0 -0
- {streaming_sql_engine-0.1.14 → streaming_sql_engine-0.1.15}/mmap_index.py +0 -0
- {streaming_sql_engine-0.1.14 → streaming_sql_engine-0.1.15}/operators.py +0 -0
- {streaming_sql_engine-0.1.14 → streaming_sql_engine-0.1.15}/operators_mmap.py +0 -0
- {streaming_sql_engine-0.1.14 → streaming_sql_engine-0.1.15}/operators_polars.py +0 -0
- {streaming_sql_engine-0.1.14 → streaming_sql_engine-0.1.15}/optimizer.py +0 -0
- {streaming_sql_engine-0.1.14 → streaming_sql_engine-0.1.15}/parser.py +0 -0
- {streaming_sql_engine-0.1.14 → streaming_sql_engine-0.1.15}/planner.py +0 -0
- {streaming_sql_engine-0.1.14 → streaming_sql_engine-0.1.15}/polars_expression_translator.py +0 -0
- {streaming_sql_engine-0.1.14 → streaming_sql_engine-0.1.15}/polars_operators.py +0 -0
- {streaming_sql_engine-0.1.14 → streaming_sql_engine-0.1.15}/protocol_helpers.py +0 -0
- {streaming_sql_engine-0.1.14 → streaming_sql_engine-0.1.15}/requirements.txt +0 -0
- {streaming_sql_engine-0.1.14 → streaming_sql_engine-0.1.15}/setup.cfg +0 -0
- {streaming_sql_engine-0.1.14 → streaming_sql_engine-0.1.15}/streaming_sql_engine.egg-info/SOURCES.txt +0 -0
- {streaming_sql_engine-0.1.14 → streaming_sql_engine-0.1.15}/streaming_sql_engine.egg-info/dependency_links.txt +0 -0
- {streaming_sql_engine-0.1.14 → streaming_sql_engine-0.1.15}/streaming_sql_engine.egg-info/requires.txt +0 -0
- {streaming_sql_engine-0.1.14 → streaming_sql_engine-0.1.15}/streaming_sql_engine.egg-info/top_level.txt +0 -0
{streaming_sql_engine-0.1.14/streaming_sql_engine.egg-info → streaming_sql_engine-0.1.15}/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: streaming-sql-engine
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.15
|
|
4
4
|
Summary: A lightweight SQL execution engine for streaming row-by-row queries with joins across multiple data sources
|
|
5
5
|
Home-page: https://github.com/Ierofantis/streaming-sql-engine/tree/master
|
|
6
6
|
Author: Theodore Pantazopoulo
|
|
@@ -306,8 +306,11 @@ def _build_join_iterator(
|
|
|
306
306
|
|
|
307
307
|
# For merge join, we need BOTH sides sorted on their respective join keys
|
|
308
308
|
# Merge join REQUIRES sorted data - if data isn't sorted, it produces incorrect results
|
|
309
|
-
# Only use merge join when
|
|
309
|
+
# Only use merge join when:
|
|
310
|
+
# 1. Explicitly told both sides are sorted (via ordered_by metadata)
|
|
311
|
+
# 2. NOT using Polars (Polars is faster for unsorted data, merge join only for sorted)
|
|
310
312
|
use_merge_join = (
|
|
313
|
+
not use_polars and # Don't use merge join if Polars is explicitly requested
|
|
311
314
|
left_ordered_by is not None and
|
|
312
315
|
left_ordered_by == left_join_column and
|
|
313
316
|
right_ordered_by is not None and
|
|
@@ -318,6 +321,8 @@ def _build_join_iterator(
|
|
|
318
321
|
if debug:
|
|
319
322
|
iterator_type = "MERGE JOIN"
|
|
320
323
|
print(f" Using {iterator_type} (sorted data)")
|
|
324
|
+
print(f" Left ordered_by: {left_ordered_by}, Right ordered_by: {right_ordered_by}")
|
|
325
|
+
print(f" Left join column: {left_join_column}, Right join column: {right_join_column}")
|
|
321
326
|
return MergeJoinIterator(
|
|
322
327
|
left_iterator,
|
|
323
328
|
right_source,
|
|
@@ -329,13 +334,23 @@ def _build_join_iterator(
|
|
|
329
334
|
debug=debug
|
|
330
335
|
)
|
|
331
336
|
else:
|
|
332
|
-
#
|
|
337
|
+
# When use_polars=True is explicitly set, prioritize Polars over mmap
|
|
338
|
+
# (unless user explicitly wants mmap by providing filename)
|
|
333
339
|
right_metadata = source_metadata.get(join_info.table, {})
|
|
334
340
|
right_table_filename = right_metadata.get("filename")
|
|
335
341
|
|
|
336
|
-
#
|
|
337
|
-
|
|
338
|
-
|
|
342
|
+
# Only use mmap if:
|
|
343
|
+
# 1. Filename is explicitly provided (user wants mmap)
|
|
344
|
+
# 2. Polars is NOT explicitly requested (use_polars=False)
|
|
345
|
+
# This ensures that when user sets use_polars=True, Polars is used instead of mmap
|
|
346
|
+
use_mmap = (
|
|
347
|
+
MMAP_AVAILABLE and
|
|
348
|
+
MmapLookupJoinIterator is not None and
|
|
349
|
+
right_table_filename and
|
|
350
|
+
not use_polars # Don't use mmap if Polars is explicitly requested
|
|
351
|
+
)
|
|
352
|
+
|
|
353
|
+
if use_mmap:
|
|
339
354
|
if debug:
|
|
340
355
|
iterator_type = "MMAP LOOKUP JOIN"
|
|
341
356
|
if required_columns:
|
|
@@ -365,7 +380,7 @@ def _build_join_iterator(
|
|
|
365
380
|
pass
|
|
366
381
|
|
|
367
382
|
# Decide between Polars and Python implementation
|
|
368
|
-
#
|
|
383
|
+
# When use_polars=True, Polars is prioritized (unless mmap explicitly requested via filename)
|
|
369
384
|
if (use_polars and POLARS_AVAILABLE and
|
|
370
385
|
should_use_polars(right_source, threshold=10000)):
|
|
371
386
|
if debug:
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "streaming-sql-engine"
|
|
7
|
-
version = "0.1.
|
|
7
|
+
version = "0.1.15"
|
|
8
8
|
description = "A lightweight SQL execution engine for streaming row-by-row queries with joins across multiple data sources"
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
requires-python = ">=3.8"
|
|
@@ -12,7 +12,7 @@ with open("requirements.txt", "r", encoding="utf-8") as fh:
|
|
|
12
12
|
|
|
13
13
|
setup(
|
|
14
14
|
name="streaming-sql-engine",
|
|
15
|
-
version="0.1.
|
|
15
|
+
version="0.1.15",
|
|
16
16
|
author="Theodore Pantazopoulo",
|
|
17
17
|
author_email="your.email@example.com",
|
|
18
18
|
description="A lightweight SQL execution engine for streaming row-by-row queries with joins across multiple data sources",
|
{streaming_sql_engine-0.1.14 → streaming_sql_engine-0.1.15/streaming_sql_engine.egg-info}/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: streaming-sql-engine
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.15
|
|
4
4
|
Summary: A lightweight SQL execution engine for streaming row-by-row queries with joins across multiple data sources
|
|
5
5
|
Home-page: https://github.com/Ierofantis/streaming-sql-engine/tree/master
|
|
6
6
|
Author: Theodore Pantazopoulo
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{streaming_sql_engine-0.1.14 → streaming_sql_engine-0.1.15}/documentation/APACHE_DRILL_COMPARISON.md
RENAMED
|
File without changes
|
{streaming_sql_engine-0.1.14 → streaming_sql_engine-0.1.15}/documentation/API_JOIN_OPERATIONS.md
RENAMED
|
File without changes
|
|
File without changes
|
{streaming_sql_engine-0.1.14 → streaming_sql_engine-0.1.15}/documentation/ARCHITECTURE_DECISION.md
RENAMED
|
File without changes
|
{streaming_sql_engine-0.1.14 → streaming_sql_engine-0.1.15}/documentation/ARCHITECTURE_SYNCED.md
RENAMED
|
File without changes
|
|
File without changes
|
{streaming_sql_engine-0.1.14 → streaming_sql_engine-0.1.15}/documentation/BETTER_FILTER_APPROACH.md
RENAMED
|
File without changes
|
{streaming_sql_engine-0.1.14 → streaming_sql_engine-0.1.15}/documentation/CHANGES_SUMMARY.md
RENAMED
|
File without changes
|
{streaming_sql_engine-0.1.14 → streaming_sql_engine-0.1.15}/documentation/COMPREHENSIVE_ARTICLE.md
RENAMED
|
File without changes
|
|
File without changes
|
{streaming_sql_engine-0.1.14 → streaming_sql_engine-0.1.15}/documentation/DEVELOPER_GUIDE.md
RENAMED
|
File without changes
|
{streaming_sql_engine-0.1.14 → streaming_sql_engine-0.1.15}/documentation/DUCKDB_COMPARISON.md
RENAMED
|
File without changes
|
|
File without changes
|
{streaming_sql_engine-0.1.14 → streaming_sql_engine-0.1.15}/documentation/FINAL_RECOMMENDATION.md
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{streaming_sql_engine-0.1.14 → streaming_sql_engine-0.1.15}/documentation/HOW_TO_ADD_TO_PROJECT.md
RENAMED
|
File without changes
|
|
File without changes
|
{streaming_sql_engine-0.1.14 → streaming_sql_engine-0.1.15}/documentation/JSONL_EXECUTOR_ANALYSIS.md
RENAMED
|
File without changes
|
{streaming_sql_engine-0.1.14 → streaming_sql_engine-0.1.15}/documentation/JSONL_EXECUTOR_REMOVED.md
RENAMED
|
File without changes
|
{streaming_sql_engine-0.1.14 → streaming_sql_engine-0.1.15}/documentation/LIBRARY_DOCUMENTATION.md
RENAMED
|
File without changes
|
|
File without changes
|
{streaming_sql_engine-0.1.14 → streaming_sql_engine-0.1.15}/documentation/MIGRATION_GUIDE.md
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{streaming_sql_engine-0.1.14 → streaming_sql_engine-0.1.15}/documentation/OPTIMIZATIONS_BREAKDOWN.md
RENAMED
|
File without changes
|
|
File without changes
|
{streaming_sql_engine-0.1.14 → streaming_sql_engine-0.1.15}/documentation/OPTIMIZATIONS_VS_POLARS.md
RENAMED
|
File without changes
|
{streaming_sql_engine-0.1.14 → streaming_sql_engine-0.1.15}/documentation/OPTIMIZER_AUTOMATED.md
RENAMED
|
File without changes
|
|
File without changes
|
{streaming_sql_engine-0.1.14 → streaming_sql_engine-0.1.15}/documentation/PERFORMANCE_COMPARISON.md
RENAMED
|
File without changes
|
{streaming_sql_engine-0.1.14 → streaming_sql_engine-0.1.15}/documentation/POLARS_AND_MMAP_GUIDE.md
RENAMED
|
File without changes
|
|
File without changes
|
{streaming_sql_engine-0.1.14 → streaming_sql_engine-0.1.15}/documentation/PROTOCOL_EXPLANATION.md
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{streaming_sql_engine-0.1.14 → streaming_sql_engine-0.1.15}/documentation/SIMPLE_PROTOCOL_GUIDE.md
RENAMED
|
File without changes
|
{streaming_sql_engine-0.1.14 → streaming_sql_engine-0.1.15}/documentation/SIMPLE_SOURCE_FUNCTIONS.md
RENAMED
|
File without changes
|
|
File without changes
|
{streaming_sql_engine-0.1.14 → streaming_sql_engine-0.1.15}/documentation/TECHNICAL_DOCUMENTATION.md
RENAMED
|
File without changes
|
|
File without changes
|
{streaming_sql_engine-0.1.14 → streaming_sql_engine-0.1.15}/documentation/WHAT_IS_WHERE_TO_PARAMS.md
RENAMED
|
File without changes
|
{streaming_sql_engine-0.1.14 → streaming_sql_engine-0.1.15}/documentation/WHEN_POLARS_IS_USED.md
RENAMED
|
File without changes
|
|
File without changes
|
{streaming_sql_engine-0.1.14 → streaming_sql_engine-0.1.15}/documentation/WHY_MANUAL_PARSING.md
RENAMED
|
File without changes
|
{streaming_sql_engine-0.1.14 → streaming_sql_engine-0.1.15}/documentation/WHY_ORIGINAL_IS_FASTER.md
RENAMED
|
File without changes
|
{streaming_sql_engine-0.1.14 → streaming_sql_engine-0.1.15}/documentation/WHY_PROTOCOL_IN_SOURCES.md
RENAMED
|
File without changes
|
{streaming_sql_engine-0.1.14 → streaming_sql_engine-0.1.15}/documentation/XML_MONGO_USE_CASE.md
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|