[Feature Request]: Optional Adanos sentiment snapshot sample

Aperta
#9,532 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
45/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
java, json, markdown

Direzione di ricerca

Read the plugin-samples guide and inspect plugins/transforms/json/src/main/samples/transforms/json-input-adanos-snapshot.hpl and transforms/files/ to confirm the proposed placement. Start with the offline synthetic Singer JSON Lines fixture and verify the pipeline selects RECORD messages from asset_sentiment and extracts the requested fields. Done means the sample, input fixture, and explanatory notes are agreed on and the proposed formatting, documentation, license, and pipeline checks pass.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

P3 Samples
What would you like to happen?

Would an optional sample showing how to ingest Adanos sentiment snapshots be welcome in the Samples project? I work on Adanos and am asking for agreement on scope and placement before implementation, following the code contribution guide.

The smallest proposed contribution reuses the existing tap-adanos rather than adding a Java connector or an API client to Hop:

  • A pipeline reads saved Singer JSON Lines with Text file input, parses each message with JSON Input, filters for RECORD messages from asset_sentiment, then extracts selected record fields. SCHEMA/STATE messages are not data rows.
  • A small synthetic fixture runs offline without a key. Proposed placement is plugins/transforms/json/src/main/samples/transforms/json-input-adanos-snapshot.hpl, with input under transforms/files/, following the plugin-samples guide. An AsciiDoc note and a canvas note explain extraction and running the sample.
  • Optional extraction instructions use the customer's own key via TAP_ADANOS_API_KEY, never a committed key or command-line secret, and explicitly set base_url to https://api.adanos.com. Access to this commercial service is optional; source access, history/lookback and request quotas depend on the customer's plan.
  • Tap start_date/end_date map to inclusive UTC API from/to, not deprecated days. Stock source choices are reddit, x, news, and polymarket; crypto currently uses Reddit. The tap has four snapshot streams (asset_sentiment, trending_assets, asset_comparison, market_sentiment), not every API endpoint. This sample would consume only the first.
  • Preserve source, asset and requested-window fields. These are extraction-time snapshots, not historical known-at observations; the tap has no observed_at. No trading logic or price-provider changes.

After agreement, validation would run the actual Hop pipeline against mixed Singer messages, checking row counts, values, null handling and malformed-input failure, plus the applicable formatting, documentation and license checks. There would be no live-key requirement in automated tests.

Is this scope and placement appropriate, and is a committer willing to review it? No implementation PR has been opened.

Issue Priority

Priority: 3

Issue Component

Component: Samples

Lingua principale
Java
Stelle
1.6k
Fork
499
Merge medio
1g 5h
PR unite (30g)
316

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di apache/hop

Tutte le issue di apache/hop

Issue simili

Altre issue su Java

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.