Other scalar types

The Data API supports the following scalar types in addition to the number, string, time, and uuid types.

boolean

Use the boolean type to store Boolean values.

inet

Use the inet type to store literal IPV4 and IPV6 values. Domain names are rejected for security reasons.

Client behavior:

  • Python: Accepts and returns ipaddress.IPV4Addres and ipaddress.IPV6Address.

  • TypeScript: Accepts properly formatted strings or DataAPIInet. Returns DataAPIInet unless you use custom serialization/deserialization logic.

  • Java: Accepts and returns java.net.InetAddress

Was this helpful?

Give Feedback

How can we improve the documentation?

© Copyright IBM Corporation 2025 | Privacy policy | Terms of use Manage Privacy Choices

Apache, Apache Cassandra, Cassandra, Apache Tomcat, Tomcat, Apache Lucene, Apache Solr, Apache Hadoop, Hadoop, Apache Pulsar, Pulsar, Apache Spark, Spark, Apache TinkerPop, TinkerPop, Apache Kafka and Kafka are either registered trademarks or trademarks of the Apache Software Foundation or its subsidiaries in Canada, the United States and/or other countries. Kubernetes is the registered trademark of the Linux Foundation.

General Inquiries: Contact IBM