Skip to content

Industrial IoT analytics on your own infrastructure.

A data platform for manufacturing: predictive maintenance from sensor telemetry, IoT pipelines checked every night, yield and scrap, and warranty claims joined with telemetry. Spark jobs and SQL over tables you own, on a Kubernetes cluster you operate.

54 faults, 92 claims.
One row.

DEV-00104 in Device Lifecycle 360, industrial_iot and warranty_service joined on device_id

industrial_iot

  • device_registry1 row
  • telemetry813 readings
  • fault_events54 faults

warranty_service

  • claims92 rows
  • service_dispatches119 rows

Device Lifecycle 360row 5 of 500

device_id
DEV-00104
total_faults
54
device_health_grade
Poor
warranty_claims
92
service_visits
119
total_post_sale_cost
$110,633.85

One device, two databases, one row

industrial_iot holds what a device reports, its faults and the scores a monthly job makes of them. warranty_service holds its claims and service visits. The saved query Device Lifecycle 360 joins the two on device_id and returns one row per device. Pick a device to follow it, and a column of the row to see the tables and lines it comes from.

device_id

industrial_iot

device_registrydevice_id = 'DEV-00104'device_id = 'DEV-00304'device_id = 'DEV-00392'device_id = 'DEV-00447'1 row1 row1 row1 row

install_date 2021-10-05is_active truelast_heartbeat_ts 2026-11-26 05:00

install_date 2023-06-26is_active falselast_heartbeat_ts 2026-11-26 13:00

install_date 2020-12-31is_active truelast_heartbeat_ts 2026-11-26 18:00

install_date 2020-04-21is_active truelast_heartbeat_ts 2026-11-26 11:00

telemetrydevice_id = 'DEV-00104'device_id = 'DEV-00304'device_id = 'DEV-00392'device_id = 'DEV-00447'813 readings866 readings815 readings842 readings

average power per day since 2026-10-28

avg power 2.72 kWlast 2026-11-27 23:5727 in fault0 lockout121 lockout since 2026-08-29

average power per day since 2026-10-28

avg power 2.72 kWlast 2026-11-27 23:3322 in fault4 lockout127 lockout since 2026-08-29

average power per day since 2026-10-28

avg power 2.68 kWlast 2026-11-27 23:5017 in fault1 lockout4 lockout since 2026-08-29

average power per day since 2026-10-28

avg power 2.64 kWlast 2026-11-27 23:5619 in fault1 lockout4 lockout since 2026-08-29

fault_eventsdevice_id = 'DEV-00104'device_id = 'DEV-00304'device_id = 'DEV-00392'device_id = 'DEV-00447'54 faults51 faults30 faults33 faults

INFO 10WARNING 26CRITICAL 13LOCKOUT 5

10 codes32 since 2026-08-29last 2026-11-26 00:05 FC-501 LOCKOUT

INFO 7WARNING 30CRITICAL 8LOCKOUT 6

10 codes24 since 2026-08-29last 2026-11-12 01:24 FC-102 WARNING

INFO 9WARNING 14CRITICAL 4LOCKOUT 3

8 codes8 since 2026-08-29last 2026-11-26 19:18 FC-102 WARNING

INFO 13WARNING 13CRITICAL 6LOCKOUT 1

10 codes5 since 2026-08-29last 2026-11-26 01:52 FC-302 WARNING

device_health_scoresdevice_id = 'DEV-00104'device_id = 'DEV-00304'device_id = 'DEV-00392'device_id = 'DEV-00447'6 rows0 rows6 rows6 rows

written by industrial_iot-monthly-health on the 1stNot in this join

score_dateJunJulAugSepOctNov
anomaly0.220.220.220.400.500.50
fault freq0.150.350.350.500.500.65

At-Risk Devices: ELEVATED, row 1 of 48

No rows: the job scores active devices only.

score_dateJunJulAugSepOctNov
anomaly0.220.220.220.220.220.22
fault freq0.150.150.150.150.150.15

At-Risk Devices: not among its 48 rows

score_dateJunJulAugSepOctNov
anomaly0.220.220.220.220.220.22
fault freq0.300.150.150.050.150.05

At-Risk Devices: not among its 48 rows

warranty_service

claimsdevice_id = 'DEV-00104'device_id = 'DEV-00304'device_id = 'DEV-00392'device_id = 'DEV-00447'92 rows100 rows10 rows18 rows

latest

  1. CLM-0043632026-11-21NORMAL_WEARAPPROVED$321.94
  2. CLM-0034932026-11-18NORMAL_WEARAPPROVED$268.41
  3. CLM-0084162026-11-17MISUSEDENIED$1,842.71
  4. CLM-0068062026-11-16ENVIRONMENTALAPPROVED$1,327.02

latest

  1. CLM-0032712026-11-26ENVIRONMENTALAPPROVED$495.79
  2. CLM-0052182026-11-20NORMAL_WEARDENIED$1,980.58
  3. CLM-0115092026-11-18INSTALL_ERRORDENIED$1,521.35
  4. CLM-0047622026-11-13NORMAL_WEARAPPROVED$540.78

latest

  1. CLM-0018462026-11-05ENVIRONMENTALAPPROVED$673.22
  2. CLM-0116302026-09-27MANUFACTURING_DEFECTAPPROVED$537.00
  3. CLM-0110622026-08-20INSTALL_ERRORAPPROVED$77.78
  4. CLM-0028552026-03-12NORMAL_WEARAPPROVED$359.19

latest

  1. CLM-0060112026-09-22ENVIRONMENTALAPPROVED$99.94
  2. CLM-0095322026-09-07NORMAL_WEARAPPROVED$1,100.63
  3. CLM-0026842026-08-01MISUSEAPPROVED$1,177.50
  4. CLM-0048372026-07-08MISUSEAPPROVED$472.57

service_dispatchesdevice_id = 'DEV-00104'device_id = 'DEV-00304'device_id = 'DEV-00392'device_id = 'DEV-00447'119 rows137 rows33 rows48 rows

479.6 labor hours, 7,153.2 miles, latest

  1. DSP-0031202026-11-25WARRANTYREPLACED0.3 h
  2. DSP-0159912026-10-30WARRANTYREPAIRED3.9 h
  3. DSP-0076462026-10-26INSTALL_CALLBACKPART_ORDERED7.3 h

548.8 labor hours, 8,699.7 miles, latest

  1. DSP-0097602026-11-25MAINTENANCEREPAIRED7.0 h
  2. DSP-0119902026-11-19INSTALL_CALLBACKNO_FAULT_FOUND2.8 h
  3. DSP-0047142026-11-19EMERGENCYPART_ORDERED5.5 h

117.6 labor hours, 2,116.7 miles, latest

  1. DSP-0104522026-08-27WARRANTYREFERRED0.1 h
  2. DSP-0110162026-07-18MAINTENANCEREPAIRED0.7 h
  3. DSP-0193032026-04-30WARRANTYREFERRED5.8 h

179.4 labor hours, 2,736.5 miles, latest

  1. DSP-0136482026-09-06WARRANTYNO_FAULT_FOUND0.3 h
  2. DSP-0077482026-08-25WARRANTYNO_FAULT_FOUND6.8 h
  3. DSP-0085762026-08-18MAINTENANCEPART_ORDERED1.5 h

Device Lifecycle 360Spark SQLrow 5 of 500row 1 of 500row 491 of 500row 246 of 500

Column of the row

from device_registrytelemetryfault_eventsclaimsservice_dispatches

FROM device_base db
LEFT JOIN recent_telemetry rt ON db.device_id = rt.device_id
LEFT JOIN recent_lockouts rl ON db.device_id = rl.device_id
LEFT JOIN fault_summary fs ON db.device_id = fs.device_id
LEFT JOIN warranty_history wh ON db.device_id = wh.device_id
LEFT JOIN service_history sh ON db.device_id = sh.device_id

from telemetry

AVG(total_power_w / 1000.0) AS avg_power_kw
FROM industrial_iot.telemetry
WHERE event_ts >= date_sub(current_date(), 30)
ROUND(rt.avg_power_kw, 2) AS avg_power_kw_30d,

from fault_events

COUNT(*) AS total_faults,
FROM industrial_iot.fault_events
GROUP BY device_id
COALESCE(fs.total_faults, 0) AS total_faults,

from fault_eventsdevice_registry

DATEDIFF(current_date(), d.install_date) AS days_in_field
ROUND(COALESCE(fs.total_faults, 0) * 365.0
    / NULLIF(db.days_in_field, 0), 2) AS annualized_fault_rate,

from claims

COUNT(*) AS warranty_claims,
FROM warranty_service.claims w
GROUP BY w.device_id
COALESCE(wh.warranty_claims, 0) AS warranty_claims,

from claims

ROUND(SUM(w.claim_amount_usd), 2) AS total_warranty_cost,
FROM warranty_service.claims w
COALESCE(wh.total_warranty_cost, 0) AS warranty_cost_usd,

from service_dispatches

COUNT(DISTINCT sd.dispatch_id) AS service_visits,
FROM warranty_service.service_dispatches sd
COALESCE(sh.service_visits, 0) AS service_visits,

from service_dispatches

ROUND(SUM(sd.labor_hours * 85 + sd.travel_distance_miles * 0.67), 2) AS total_service_cost
FROM warranty_service.service_dispatches sd
COALESCE(sh.total_service_cost, 0) AS service_cost_usd,

from claimsservice_dispatches

ROUND(COALESCE(wh.total_warranty_cost, 0)
    + COALESCE(sh.total_service_cost, 0), 2) AS total_post_sale_cost,

from telemetryfault_events

SUM(CASE WHEN lockout THEN 1 ELSE 0 END) AS lockout_readings_90d
WHERE event_ts >= date_sub(current_date(), 90)
SUM(CASE WHEN triggered_ts >= date_sub(current_date(), 90) THEN 1 ELSE 0 END) AS faults_90d,
CASE
    WHEN COALESCE(rl.lockout_readings_90d, 0) > 20 THEN 'Poor'
    WHEN COALESCE(fs.faults_90d, 0) > 10 THEN 'Fair'
    WHEN COALESCE(fs.faults_90d, 0) > 4 THEN 'Good'
    ELSE 'Excellent'
END AS device_health_grade

ORDER BY total_post_sale_cost DESC

Predictive maintenance pipeline from sensor telemetry

At 06:00 on the 1st of each month a Spark job scores every active device from its last 90 days of readings and faults, and At-Risk Devices names the ELEVATED ones. Here are the devices whose lockouts climbed: step through the six runs and see the flag come before the repair, or after it.

  • 12 of 15 flagged before the repair

    A run named them ELEVATED while their lockouts climbed and before the repair on site or the part swap, up to 36 days ahead.

  • A monthly score sees wear late

    The other three were flagged on the day of their repair or after it: a run on the 1st sees wear once enough of it sits in its 90 days. And every device stays ELEVATED for the runs whose 90 days still hold its wear.

  • The rest of the list

    Each run also names 19 to 26 devices ELEVATED whose lockouts never climbed, on their count of faults alone.

  • A month can be scored again

    The job deletes its month before it appends it, and Ilum starts a failed run up to three more times.

Run of

1 Jun: 28 devices ELEVATED4 of them wearing, ahead of the repair0 wearing, already repaired24 whose readings never wore

1 Jul: 28 devices ELEVATED3 of them wearing, ahead of the repair5 wearing, already repaired20 whose readings never wore

1 Aug: 27 devices ELEVATED1 of them wearing, ahead of the repair7 wearing, already repaired19 whose readings never wore

1 Sep: 39 devices ELEVATED4 of them wearing, ahead of the repair9 wearing, already repaired26 whose readings never wore

1 Oct: 35 devices ELEVATED4 of them wearing, ahead of the repair6 wearing, already repaired25 whose readings never wore

1 Nov: 28 devices ELEVATED0 of them wearing, ahead of the repair8 wearing, already repaired20 whose readings never wore

  • ELEVATED
  • MODERATE
  • below the filter
  • a week of five or more lockout readings
  • repaired on site or by a part swap

12 of 15 flagged before the repair, up to 36 days ahead

The query
At-Risk Devices, the latest score and its tier
WITH latest_scores AS (
    SELECT
        h.device_id,
        h.anomaly_score,
        h.fault_frequency_score,
        ROW_NUMBER() OVER (PARTITION BY h.device_id ORDER BY h.score_date DESC) AS rn
    FROM industrial_iot.device_health_scores h
)
SELECT
    ls.device_id,
    ROUND((ls.anomaly_score + ls.fault_frequency_score) / 2, 4) AS combined_risk_score,
    CASE
        WHEN ls.anomaly_score > 0.7 AND ls.fault_frequency_score > 0.5 THEN 'CRITICAL'
        WHEN ls.anomaly_score > 0.5 OR ls.fault_frequency_score > 0.4 THEN 'ELEVATED'
        ELSE 'MODERATE'
    END AS risk_tier
FROM latest_scores ls
INNER JOIN industrial_iot.device_registry d ON ls.device_id = d.device_id
WHERE ls.rn = 1
  AND d.is_active = true
  AND (ls.anomaly_score > 0.4 OR ls.fault_frequency_score > 0.3)
ORDER BY (ls.anomaly_score + ls.fault_frequency_score) DESC
LIMIT 50

Industrial IoT data pipeline: telemetry, faults and daily metrics

At 02:00 a Spark job rolls the readings of the day before into daily_fleet_metrics, one row per region, product family and operating mode, each with its fault_rate. Pick a night: the fleet runs near 3% of readings in fault, yet the highest rates always sit on the rows with the fewest readings.

  • The worst rate is the smallest row

    On 26 November, the highest fault_rate, 12.5%, belongs to a row of 24 readings. The 5 rows of 500 readings or more all fall between 2.0% and 3.3%.

  • Weigh before you sort

    Sorted by fault_rate alone, a report leads with rows of under 50 readings. reading_count sits in every row to weigh them.

  • Checks before the reports read it

    At 03:00 the quality job counts the night again and ends with exit code 1 if the roll-up does not add up to the raw readings, here 13,691 against 13,691.

  • Retries set per schedule

    Ilum starts a failed roll-up up to twice more and the checks once more. How a schedule fires.

Night of

whole night 3.1%

Highest fault_rate that night

  1. 28.6%2 of 7
  2. 17.7%3 of 17
  3. 15.4%2 of 13
  4. 10.0%2 of 20
  5. 9.1%1 of 11

96 rows written, 13,468 readings

whole night 3.2%

Highest fault_rate that night

  1. 16.7%5 of 30
  2. 11.5%3 of 26
  3. 11.1%2 of 18
  4. 11.1%2 of 18
  5. 9.1%2 of 22

96 rows written, 13,643 readings

whole night 3.0%

Highest fault_rate that night

  1. 12.5%3 of 24
  2. 11.8%2 of 17
  3. 11.1%1 of 9
  4. 10.0%2 of 20
  5. 9.5%2 of 21

96 rows written, 13,691 readings

The code
data_quality_check.py, checks of one day of readings
check("null_device_id",
      f"SELECT COUNT(*) as cnt FROM {T} WHERE device_id IS NULL AND event_date = '{target_date}'")
check("negative_power",
      f"SELECT COUNT(*) as cnt FROM {T} WHERE total_power_w < 0 AND event_date = '{target_date}'")
check("daily_count_nonzero",
      f"SELECT COUNT(*) as cnt FROM {T} WHERE event_date = '{target_date}'",
      expect_zero=False)
check("orphan_devices",
      f"""SELECT COUNT(*) as cnt FROM {T} t
    LEFT JOIN {D} d ON t.device_id = d.device_id
    WHERE d.device_id IS NULL AND t.event_date = '{target_date}'""",
      severity="warning")

Quality analytics on the production line: yield, scrap and rework

Every night at 02:00 a Spark job adds up the orders completed the day before into daily_production_metrics, by plant and line, with units ordered, completed, scrapped and reworked. Pick a line: completed units still count the reworked ones, and first-pass yield takes them out.

  • Completion hides rework

    Over 28 nights every line counts between 3.3% and 4.4% of the units ordered as completed though they needed rework, so first-pass yield sits that far below completion.

  • Scrap is counted apart

    Scrapped units are a column of their own, between 2.0% and 2.8% of the units ordered on every line.

  • Late orders by how late

    Late Orders Report: CRITICAL when over 24 hours late, MAJOR over 8, MINOR over 2.

  • Rules on the order data

    At 03:00 a quality job checks quantities and duplicate order ids, and that the night’s metrics count every order completed that day.

PLANT_A LINE_1 over 28 nights of daily_production_metrics

  • first pass 89.4%
  • reworked 4.1%
  • scrapped 2.4%
  • not completed 4.1%

12,639 ordered, 11,816 completed (93.5%), 515 of them reworked

PLANT_A LINE_2 over 28 nights of daily_production_metrics

  • first pass 90.6%
  • reworked 4.4%
  • scrapped 2.0%
  • not completed 2.9%

6,409 ordered, 6,092 completed (95.1%), 283 of them reworked

PLANT_A LINE_3 over 28 nights of daily_production_metrics

  • first pass 91.0%
  • reworked 3.5%
  • scrapped 2.8%
  • not completed 2.6%

10,668 ordered, 10,087 completed (94.6%), 378 of them reworked

PLANT_B LINE_1 over 28 nights of daily_production_metrics

  • first pass 90.2%
  • reworked 3.5%
  • scrapped 2.2%
  • not completed 4.0%

9,817 ordered, 9,207 completed (93.8%), 348 of them reworked

PLANT_B LINE_2 over 28 nights of daily_production_metrics

  • first pass 91.5%
  • reworked 3.3%
  • scrapped 2.8%
  • not completed 2.5%

10,328 ordered, 9,784 completed (94.7%), 338 of them reworked

PLANT_B LINE_3 over 28 nights of daily_production_metrics

  • first pass 91.5%
  • reworked 3.7%
  • scrapped 2.3%
  • not completed 2.6%

9,520 ordered, 9,059 completed (95.2%), 349 of them reworked

Line
The query
Production Yield & Throughput, by plant, line and week
SELECT
    plant,
    production_line,
    week_start,
    orders_completed,
    units_completed,
    units_scrapped,
    units_reworked,
    ROUND((units_completed - units_reworked) * 100.0 / GREATEST(units_ordered, 1), 2) AS first_pass_yield_pct,
    ROUND(units_scrapped * 100.0 / GREATEST(units_ordered, 1), 2) AS scrap_rate_pct,
    ROUND(avg_cycle_time_hours, 2) AS avg_cycle_time_hours,
    ROUND(units_completed / GREATEST(orders_completed, 1), 1) AS avg_units_per_order
FROM weekly_orders
ORDER BY plant, production_line, week_start DESC

Warranty claim analytics: failure curves, costs and open claims

Each claim records how many months after installation the device failed, what it cost and its root cause, and Failure Mode Bathtub Curve counts the claims month by month. Move along the months of service life to see how much of all claims and cost the first months carry.

  • The first four months carry 42%

    Months 0 to 3 hold 4,586 of the 10,835 claims not denied, and $3.03M of $7.10M in cost.

  • Installation, not wear

    45% of the claims of those months trace back to the installation, against 5% after month 24.

  • Parts against labor, every day

    At 02:00 a Spark job adds up each day’s claims into claim_summary, with parts and labor apart.

  • What fails most, on DuckDB

    Top Failing Components runs on DuckDB inside ilum-core, with no Spark session to start.

Months 0 to 0infant mortality1,244 claims, 11.5% of all$0.82M, 11.5% of the cost44.5% of them traced to the installation

Months 0 to 1infant mortality2,466 claims, 22.8% of all$1.62M, 22.9% of the cost44.5% of them traced to the installation

Months 0 to 2infant mortality3,596 claims, 33.2% of all$2.37M, 33.5% of the cost45.1% of them traced to the installation

Months 0 to 3infant mortality4,586 claims, 42.3% of all$3.03M, 42.8% of the cost45.0% of them traced to the installation

Months 0 to 4useful life4,974 claims, 45.9% of all$3.29M, 46.3% of the cost42.7% of them traced to the installation

Months 0 to 5useful life5,317 claims, 49.1% of all$3.53M, 49.8% of the cost41.2% of them traced to the installation

Months 0 to 6useful life5,652 claims, 52.2% of all$3.75M, 52.9% of the cost39.8% of them traced to the installation

Months 0 to 7useful life5,941 claims, 54.8% of all$3.94M, 55.5% of the cost38.7% of them traced to the installation

Months 0 to 8useful life6,211 claims, 57.3% of all$4.12M, 58.0% of the cost37.6% of them traced to the installation

Months 0 to 9useful life6,450 claims, 59.5% of all$4.26M, 60.1% of the cost36.8% of them traced to the installation

Months 0 to 10useful life6,693 claims, 61.8% of all$4.42M, 62.3% of the cost36.1% of them traced to the installation

Months 0 to 11useful life6,905 claims, 63.7% of all$4.55M, 64.2% of the cost35.6% of them traced to the installation

Months 0 to 12useful life7,114 claims, 65.7% of all$4.69M, 66.1% of the cost35.2% of them traced to the installation

Months 0 to 13useful life7,310 claims, 67.5% of all$4.82M, 68.0% of the cost34.8% of them traced to the installation

Months 0 to 14useful life7,510 claims, 69.3% of all$4.96M, 69.9% of the cost34.2% of them traced to the installation

Months 0 to 15useful life7,680 claims, 70.9% of all$5.07M, 71.4% of the cost33.8% of them traced to the installation

Months 0 to 16useful life7,857 claims, 72.5% of all$5.19M, 73.1% of the cost33.4% of them traced to the installation

Months 0 to 17useful life7,994 claims, 73.8% of all$5.28M, 74.4% of the cost33.1% of them traced to the installation

Months 0 to 18useful life8,104 claims, 74.8% of all$5.34M, 75.3% of the cost32.9% of them traced to the installation

Months 0 to 19useful life8,235 claims, 76.0% of all$5.43M, 76.5% of the cost32.6% of them traced to the installation

Months 0 to 20useful life8,345 claims, 77.0% of all$5.50M, 77.5% of the cost32.3% of them traced to the installation

Months 0 to 21useful life8,457 claims, 78.1% of all$5.59M, 78.7% of the cost32.2% of them traced to the installation

Months 0 to 22useful life8,540 claims, 78.8% of all$5.64M, 79.5% of the cost32.1% of them traced to the installation

Months 0 to 23useful life8,637 claims, 79.7% of all$5.70M, 80.3% of the cost31.9% of them traced to the installation

Months 0 to 24useful life8,913 claims, 82.3% of all$5.87M, 82.7% of the cost31.1% of them traced to the installation

Months 0 to 25wear-out9,143 claims, 84.4% of all$6.02M, 84.8% of the cost30.4% of them traced to the installation

Months 0 to 26wear-out9,344 claims, 86.2% of all$6.14M, 86.6% of the cost29.8% of them traced to the installation

Months 0 to 27wear-out9,534 claims, 88.0% of all$6.26M, 88.2% of the cost29.4% of them traced to the installation

Months 0 to 28wear-out9,703 claims, 89.6% of all$6.37M, 89.8% of the cost28.9% of them traced to the installation

Months 0 to 29wear-out9,859 claims, 91.0% of all$6.47M, 91.2% of the cost28.6% of them traced to the installation

Months 0 to 30wear-out9,986 claims, 92.2% of all$6.55M, 92.3% of the cost28.3% of them traced to the installation

Months 0 to 31wear-out10,142 claims, 93.6% of all$6.66M, 93.8% of the cost28.0% of them traced to the installation

Months 0 to 32wear-out10,264 claims, 94.7% of all$6.73M, 94.8% of the cost27.7% of them traced to the installation

Months 0 to 33wear-out10,382 claims, 95.8% of all$6.81M, 96.0% of the cost27.4% of them traced to the installation

Months 0 to 34wear-out10,475 claims, 96.7% of all$6.88M, 96.9% of the cost27.2% of them traced to the installation

Months 0 to 35wear-out10,567 claims, 97.5% of all$6.94M, 97.8% of the cost27.0% of them traced to the installation

Months 0 to 36wear-out10,660 claims, 98.4% of all$7.00M, 98.6% of the cost26.8% of them traced to the installation

Months 0 to 37wear-out10,696 claims, 98.7% of all$7.02M, 98.9% of the cost26.7% of them traced to the installation

Months 0 to 38wear-out10,720 claims, 98.9% of all$7.03M, 99.0% of the cost26.6% of them traced to the installation

Months 0 to 39wear-out10,739 claims, 99.1% of all$7.04M, 99.2% of the cost26.6% of them traced to the installation

Months 0 to 40wear-out10,760 claims, 99.3% of all$7.05M, 99.4% of the cost26.5% of them traced to the installation

Months 0 to 41wear-out10,775 claims, 99.4% of all$7.06M, 99.5% of the cost26.5% of them traced to the installation

Months 0 to 42wear-out10,788 claims, 99.6% of all$7.07M, 99.7% of the cost26.5% of them traced to the installation

Months 0 to 43wear-out10,805 claims, 99.7% of all$7.08M, 99.8% of the cost26.5% of them traced to the installation

Months 0 to 44wear-out10,817 claims, 99.8% of all$7.09M, 99.9% of the cost26.4% of them traced to the installation

Months 0 to 45wear-out10,824 claims, 99.9% of all$7.09M, 99.9% of the cost26.4% of them traced to the installation

Months 0 to 46wear-out10,832 claims, 100.0% of all$7.10M, 100.0% of the cost26.4% of them traced to the installation

Months 0 to 47wear-out10,835 claims, 100.0% of all$7.10M, 100.0% of the cost26.4% of them traced to the installation

Months since install

Claims not denied, by months_since_install, 10,835

The query
Failure Mode Bathtub Curve
SELECT
    months_since_install,
    claim_category,
    COUNT(*) AS claim_count,
    ROUND(SUM(claim_amount_usd), 2) AS total_cost_usd,
    ROUND(AVG(claim_amount_usd), 2) AS avg_cost_usd,
    SUM(CASE WHEN install_related = true THEN 1 ELSE 0 END) AS install_related_count,
    CASE
        WHEN months_since_install <= 3 THEN 'INFANT_MORTALITY'
        WHEN months_since_install <= 24 THEN 'USEFUL_LIFE'
        ELSE 'WEAR_OUT'
    END AS lifecycle_phase
FROM warranty_service.claims
WHERE status IN ('APPROVED', 'SUBMITTED', 'UNDER_REVIEW')
GROUP BY months_since_install, claim_category
ORDER BY months_since_install, claim_count DESC

Joining IoT telemetry with warranty and field service data

The device tables and the warranty tables are two databases in one Hive Metastore, and Device Lifecycle 360 joins them on device_id into what each device costs after the sale. Rank every device by that cost, by claims, by visits or by faults, and see where the devices whose lockouts climbed land.

  • The costliest twenty all wore

    The twenty devices that cost the most after the sale are the twenty whose lockouts climbed in the telemetry: 4% of the fleet, 13.5% of its cost after the sale.

  • Fault counts alone miss some

    Ranked by faults, seven of the top ten are among them. The lockouts in the readings point at the cost more surely than the count of fault events.

  • Every device stays in

    LEFT JOINs from the registry and COALESCE: a device without claims comes back with 0, not as a missing row.

  • The same join in a running session

    A Scala session that pauses itself when idle answers such joins one question at a time. How a session stays warm.

Rank all devices by

10 of the top ten wore

10 of the top ten wore

10 of the top ten wore

7 of the top ten wore

The query
Device Lifecycle 360, the warranty side and the joins
warranty_history AS (
    SELECT
        w.device_id,
        COUNT(*) AS warranty_claims,
        ROUND(SUM(w.claim_amount_usd), 2) AS total_warranty_cost,
        MAX(w.claim_date) AS last_claim_date,
        MAX(w.claim_type) AS last_claim_type
    FROM warranty_service.claims w
    GROUP BY w.device_id
),
service_history AS (
    SELECT
        sd.device_id,
        COUNT(DISTINCT sd.dispatch_id) AS service_visits,
        ROUND(SUM(sd.labor_hours * 85 + sd.travel_distance_miles * 0.67), 2) AS total_service_cost
    FROM warranty_service.service_dispatches sd
    GROUP BY sd.device_id
)
FROM device_base db
LEFT JOIN recent_telemetry rt ON db.device_id = rt.device_id
LEFT JOIN recent_lockouts rl ON db.device_id = rl.device_id
LEFT JOIN fault_summary fs ON db.device_id = fs.device_id
LEFT JOIN warranty_history wh ON db.device_id = wh.device_id
LEFT JOIN service_history sh ON db.device_id = sh.device_id
ORDER BY total_post_sale_cost DESC

Governance of operational data: tags, roles and lineage

The pipelines tag datasets and columns in all three databases, and Ilum shows each tag in the Lineage view on the dataset or field it was set on. Pick a tag to see which tables and columns carry it across the databases.

  • One technician, two databases

    Technician ids are tagged PII in fault_events and in service_dispatches, so a rule written for one database misses the other.

  • Lineage without code

    Ilum adds the OpenLineage listener to every Spark job, so device_health_scores shows up made from the tables it reads. Follow one column.

  • Roles that read but do not run

    QUALITY_MANAGER, FLEET_ANALYST and WARRANTY_ANALYST run SQL and read lineage, and none holds JOB_CREATE or SCHEDULE_CREATE.

  • Row filters and masks are Enterprise

    Hiding technician ids or claim amounts from a role comes with Apache Ranger, an Enterprise module.

Tag

2 columns in 2 databases carry it

2 tables and 4 columns in 2 databases carry it

3 tables and 2 columns in 3 databases carry it

6 tables in 3 databases carry it

1 table and 1 column in one database carry it

1 table and 1 column in one database carry it

industrial_iot

telemetry

  • device_idDEVICE_DATA
  • total_power_wTELEMETRY

fault_events

  • fault_codeOPERATIONAL
  • technician_idPII

device_health_scores

  • anomaly_scoreSENSITIVE, DERIVED
warranty_service

claims

  • device_idOPERATIONAL
  • claim_amount_usdSENSITIVE, WARRANTY_DATA
  • root_causeWARRANTY_DATA

service_dispatches

  • technician_idPII, SERVICE_DATA
  • labor_hoursSENSITIVE

claim_summary

  • total_cost_usdSENSITIVE, DERIVED
manufacturing

production_orders

    bill_of_materials

    • unit_cost_usdCOST_DATA

    daily_production_metrics

      The code
      lineage-tags.json, tagged columns
      {"namespace": "s3a://ilum-data/", "dataset": "industrial_iot.telemetry", "field": "total_power_w", "tags": ["TELEMETRY"]},
      {"namespace": "s3a://ilum-data/", "dataset": "industrial_iot.telemetry", "field": "device_id", "tags": ["DEVICE_DATA"]},
      {"namespace": "s3a://ilum-data/", "dataset": "industrial_iot.fault_events", "field": "technician_id", "tags": ["PII"]},
      {"namespace": "s3a://ilum-data/", "dataset": "industrial_iot.device_health_scores", "field": "anomaly_score", "tags": ["SENSITIVE", "DERIVED"]}
      {"namespace": "s3a://ilum-data/", "dataset": "warranty_service.claims", "field": "claim_amount_usd", "tags": ["SENSITIVE", "WARRANTY_DATA"]},
      {"namespace": "s3a://ilum-data/", "dataset": "warranty_service.service_dispatches", "field": "technician_id", "tags": ["PII", "SERVICE_DATA"]},
      {"namespace": "s3a://ilum-data/", "dataset": "manufacturing.bill_of_materials", "field": "unit_cost_usd", "tags": ["COST_DATA"]},

      Questions and answers

      How do I build a predictive maintenance pipeline with Spark?

      Land the readings and fault events in tables, run a scheduled Spark job that turns each device’s last 90 days into features and scores, and keep the scores in a table of their own. A saved query then takes the latest score of each device and names its risk tier. How a schedule fires.

      Can we run industrial IoT analytics on premises instead of in a public cloud?

      Yes. Ilum installs with Helm on any CNCF-compliant Kubernetes, managed in a cloud or self-hosted on bare metal, OpenShift or Rancher, and keeps its tables in the object storage you choose, MinIO in the cluster by default.

      How do I join sensor data with warranty claims?

      Give both the same device id and keep both databases in one metastore. One Spark SQL query then reduces each table to a row per device and LEFT JOINs them, as Device Lifecycle 360 does with readings, faults, claims and service visits.

      How do I calculate first-pass yield and scrap rate in SQL?

      Over completed orders, first-pass yield is units completed minus units reworked, times 100, over units ordered. Scrap rate is units scrapped times 100 over units ordered. GREATEST(units_ordered, 1) keeps an empty order from dividing by zero.

      How do I keep warranty costs and technician ids away from some analysts?

      Tag the columns, so everyone sees what they hold, and give the people who must not query the tables a role without SQL_EXECUTE. Rules per table, row filters and column masks come with Apache Ranger, an Enterprise module.

      Is Ilum open source?

      No. Ilum Community is free to run under a license from Ilum. It is built on open-source engines such as Apache Spark, Trino and DuckDB.

      Contact

      Tell us about your cluster.

      Name one workload you want to move.

      Tell us where it runs today.

      We answer with a plan, not a deck.

      [email protected]

      We reply within two working days.