GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — feldera/python/felderize/felderize/__init__.py at main · feldera/feldera Expand file tree/ Copy path__init__.pyMore file actions 36 lines (29 loc) · 1.36 KB / Copy path__init__.pyFile metadata and controls36 lines (29 loc) · 1.36 KB 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 """felderize — translate Spark SQL into Feldera SQL. Minimal programmatic API (alternative to the CLI / shelling out): from felderize import translate_spark_to_feldera, Config, Status cfg = Config.from_env() # reads ANTHROPIC_API_KEY, FELDERA_COMPILER, FELDERIZE_MODEL result = translate_spark_to_feldera( schema_sql, # str: Spark CREATE TABLE ... DDL query_sql, # str: Spark CREATE VIEW / SELECT ... cfg, validate=True, # compile against the Feldera compiler and repair ) if result.status is Status.SUCCESS: deploy(result.feldera_schema, result.feldera_query) else: # Status.UNSUPPORTED -> NULL-placeholder views in result.unsupported; # Status.ERROR -> best-effort SQL that did not compile. review(result.unsupported, result.warnings) `translate_spark_to_feldera` returns a `TranslationResult` with: `feldera_schema`, `feldera_query`, `status`, `unsupported`, `warnings`, `explanations`, and `to_dict()`. `validate=False` skips the compiler (faster, output unverified). """ from felderize.config import Config from felderize.models import Status, TranslationResult from felderize.translator import translate_spark_to_feldera __all__ = [ "translate_spark_to_feldera", "Config", "TranslationResult", "Status", ] |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |