Core: Prevent potential NPEs when retrieving JSON fields (#5438)

9 files changed
tree: 64fdeed323cbb82a1d185bb8ec6e80b2b58f3897
  1. .baseline/
  2. .github/
  3. .palantir/
  4. aliyun/
  5. api/
  6. arrow/
  7. aws/
  8. bundled-guava/
  9. common/
  10. core/
  11. data/
  12. dell/
  13. dev/
  14. docs/
  15. examples/
  16. flink/
  17. format/
  18. gcp/
  19. gradle/
  20. hive-metastore/
  21. hive-runtime/
  22. hive3/
  23. hive3-orc-bundle/
  24. mr/
  25. nessie/
  26. open-api/
  27. orc/
  28. parquet/
  29. pig/
  30. project/
  31. python/
  32. python_legacy/
  33. spark/
  34. .asf.yaml
  35. .gitattributes
  36. .gitignore
  37. .java-version
  38. baseline.gradle
  39. build.gradle
  40. CONTRIBUTING.md
  41. deploy.gradle
  42. gradle.properties
  43. gradlew
  44. jitpack.yml
  45. jmh.gradle
  46. LICENSE
  47. NOTICE
  48. README.md
  49. settings.gradle
  50. tasks.gradle
  51. versions.props
README.md

Iceberg

Slack

Iceberg is a high-performance format for huge analytic tables. Iceberg brings the reliability and simplicity of SQL tables to big data, while making it possible for engines like Spark, Trino, Flink, Presto, Hive and Impala to safely work with the same tables, at the same time.

Background and documentation is available at https://iceberg.apache.org

Status

Iceberg is under active development at the Apache Software Foundation.

The core Java library that tracks table snapshots and metadata is complete, but still evolving. Current work is focused on adding row-level deletes and upserts, and integration work with new engines like Flink and Hive.

The Iceberg format specification is being actively updated and is open for comment. Until the specification is complete and released, it carries no compatibility guarantees. The spec is currently evolving as the Java reference implementation changes.

Java API javadocs are available for the master.

Collaboration

Iceberg tracks issues in GitHub and prefers to receive contributions as pull requests.

Community discussions happen primarily on the dev mailing list or on specific issues.

Building

Iceberg is built using Gradle with Java 1.8 or Java 11.

  • To invoke a build and run tests: ./gradlew build
  • To skip tests: ./gradlew build -x test -x integrationTest
  • To fix code style: ./gradlew spotlessApply

Iceberg table support is organized in library modules:

  • iceberg-common contains utility classes used in other modules
  • iceberg-api contains the public Iceberg API
  • iceberg-core contains implementations of the Iceberg API and support for Avro data files, this is what processing engines should depend on
  • iceberg-parquet is an optional module for working with tables backed by Parquet files
  • iceberg-arrow is an optional module for reading Parquet into Arrow memory
  • iceberg-orc is an optional module for working with tables backed by ORC files
  • iceberg-hive-metastore is an implementation of Iceberg tables backed by the Hive metastore Thrift client
  • iceberg-data is an optional module for working with tables directly from JVM applications

Iceberg also has modules for adding Iceberg support to processing engines:

  • iceberg-spark2 is an implementation of Spark's Datasource V2 API in 2.4 for Iceberg (use iceberg-spark-runtime for a shaded version)
  • iceberg-spark3 is an implementation of Spark's Datasource V2 API in 3.0 for Iceberg (use iceberg-spark3-runtime for a shaded version)
  • iceberg-flink contains classes for integrating with Apache Flink (use iceberg-flink-runtime for a shaded version)
  • iceberg-mr contains an InputFormat and other classes for integrating with Apache Hive
  • iceberg-pig is an implementation of Pig's LoadFunc API for Iceberg

Engine Compatibility

See the Multi-Engine Support page to know about Iceberg compatibility with different Spark, Flink and Hive versions. For other engines such as Presto or Trino, please visit their websites for Iceberg integration details.