> ## Documentation Index
> Fetch the complete documentation index at: https://docs.kinetica.com/llms.txt
> Use this file to discover all available pages before exploring further.

# InsertRecordsFromQueryRequest.Options

> InsertRecordsFromQueryRequest.Options — Kinetica Java API

Package [com.gpudb.protocol](https://docs.kinetica.com/content/api/java/com/gpudb/protocol/package-summary.md)

# Class InsertRecordsFromQueryRequest.Options

[java.lang.Object](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Object.html)
com.gpudb.protocol.InsertRecordsFromQueryRequest.Options

Enclosing class:`InsertRecordsFromQueryRequest`

***

public static final class InsertRecordsFromQueryRequest.Options extends [Object](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Object.html)

A set of string constants for the [`InsertRecordsFromQueryRequest`](https://docs.kinetica.com/content/api/java/com/gpudb/protocol/InsertRecordsFromQueryRequest) parameter [`options`](https://docs.kinetica.com/content/api/java/com/gpudb/protocol/InsertRecordsFromQueryRequest#getOptions\(\)).
&#x20;Optional parameters.

<ul>
  <li>
    ## Field Summary

    Fields

    Modifier and TypeFieldDescription`static final String``ABORT`

    Stops current insertion and aborts entire operation when an error is encountered.

    `static final String``BAD_RECORD_TABLE_LIMIT`

    A positive integer indicating the maximum number of records that can be written to the bad-record-table.

    `static final String``BAD_RECORD_TABLE_NAME`

    Name of a table to which records that were rejected are written.

    `static final String``BATCH_SIZE`

    Number of records per batch when inserting data.

    `static final String``DATASOURCE_NAME`

    Name of an existing external data source from which table will be loaded.

    `static final String``DRY_RUN`

    Does not load data, but walks through the source data and determines the number of valid records, taking into account the current mode of [`ERROR_HANDLING`](#ERROR_HANDLING).

    `static final String``ENABLE_INPLACE_UPDATES`

    Applies only when upserting (when update\_on\_existing\_pk is true).

    `static final String``ERROR_HANDLING`

    Specifies how errors should be handled upon insertion.

    `static final String``FALSE`

    Reject new records when primary keys match existing records.

    `static final String``FULL`

    Run a type inference on the source data (if needed) and ingest.

    `static final String``IGNORE_BAD_RECORDS`

    Deprecated.

    `static final String``IGNORE_EXISTING_PK`

    Specifies the record collision error-suppression policy for inserting into a table with a [primary key](https://docs.kinetica.com/content/concepts/tables.md#primary-keys), only used when not in upsert mode (upsert mode is disabled when [`UPDATE_ON_EXISTING_PK`](#UPDATE_ON_EXISTING_PK) is [`FALSE`](#FALSE)).

    `static final String``INGESTION_MODE`

    Whether to do a full load, dry run, or perform a type inference on the source data.

    `static final String``JDBC_FETCH_SIZE`

    The JDBC fetch size, which determines how many rows to fetch per round trip.

    `static final String``JDBC_SESSION_INIT_STATEMENT`

    Executes the statement per each JDBC session before doing actual load.

    `static final String``NUM_SPLITS_PER_RANK`

    Number of splits for reading data per rank.

    `static final String``NUM_TASKS_PER_RANK`

    Number of tasks for reading data per rank.

    `static final String``PERMISSIVE`

    Records with missing columns are populated with nulls if possible; otherwise, the malformed records are skipped.

    `static final String``PK_CONFLICT_PREDICATE_HIGHER`

    The record with higher value for the column resolves the primary-key insert conflict.

    `static final String``PK_CONFLICT_PREDICATE_LOWER`

    The record with lower value for the column resolves the primary-key insert conflict.

    `static final String``PRIMARY_KEYS`

    Comma separated list of column names, to set as primary keys, when not specified in the type.

    `static final String``REMOTE_QUERY`

    Remote SQL query from which data will be sourced.

    `static final String``REMOTE_QUERY_FILTER_COLUMN`

    Name of column to be used for splitting the query into multiple sub-queries using the data distribution of given column.

    `static final String``REMOTE_QUERY_INCREASING_COLUMN`

    Column on subscribed remote query result that will increase for new records (e.g., TIMESTAMP).

    `static final String``REMOTE_QUERY_ORDER_BY`

    Name of column to be used for splitting the query into multiple sub-queries using ordering of given column.

    `static final String``REMOTE_QUERY_PARTITION_COLUMN`

    Alias name for [`REMOTE_QUERY_FILTER_COLUMN`](#REMOTE_QUERY_FILTER_COLUMN).

    `static final String``SHARD_KEYS`

    Comma separated list of column names, to set as shard keys, when not specified in the type.

    `static final String``SKIP`

    Malformed records are skipped.

    `static final String``SUBSCRIBE`

    Continuously poll the data source to check for new data and load it into the table.

    `static final String``TRUE`

    Upsert new records when primary keys match existing records.

    `static final String``TRUNCATE_STRINGS`

    If set to [`TRUE`](#TRUE), truncate string values that are longer than the column's type size.

    `static final String``TRUNCATE_TABLE`

    If set to [`TRUE`](#TRUE), truncates the table specified by [`tableName`](https://docs.kinetica.com/content/api/java/com/gpudb/protocol/InsertRecordsFromQueryRequest#getTableName\(\)) prior to loading the data.

    `static final String``TYPE_INFERENCE_ONLY`

    Infer the type of the source data and return, without ingesting any data.

    `static final String``UPDATE_ON_EXISTING_PK`

    Specifies the record collision policy for inserting into a table with a [primary key](https://docs.kinetica.com/content/concepts/tables.md#primary-keys).
  </li>

  <li>
    ## Method Summary

    Methods inherited from class java.lang.[Object](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Object.html)
    `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`
  </li>
</ul>

<ul>
  <li>
    ## Field Details

    <ul>
      <li>
        ### BAD\_RECORD\_TABLE\_NAME

        public static final [String](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html) BAD\_RECORD\_TABLE\_NAMEName of a table to which records that were rejected are written. The bad-record-table has the following columns: line\_number (long), line\_rejected (string), error\_message (string). When error handling is Abort, bad records table is not populated.

        See Also:

        <ul>
          <li>[Constant Field Values](https://docs.kinetica.com/content/api/java/constant-values.md#com.gpudb.protocol.InsertRecordsFromQueryRequest.Options.BAD_RECORD_TABLE_NAME)</li>
        </ul>
      </li>

      <li>
        ### BAD\_RECORD\_TABLE\_LIMIT

        public static final [String](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html) BAD\_RECORD\_TABLE\_LIMITA positive integer indicating the maximum number of records that can be written to the bad-record-table. Default value is 10000.

        See Also:

        <ul>
          <li>[Constant Field Values](https://docs.kinetica.com/content/api/java/constant-values.md#com.gpudb.protocol.InsertRecordsFromQueryRequest.Options.BAD_RECORD_TABLE_LIMIT)</li>
        </ul>
      </li>

      <li>
        ### BATCH\_SIZE

        public static final [String](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html) BATCH\_SIZENumber of records per batch when inserting data.

        See Also:

        <ul>
          <li>[Constant Field Values](https://docs.kinetica.com/content/api/java/constant-values.md#com.gpudb.protocol.InsertRecordsFromQueryRequest.Options.BATCH_SIZE)</li>
        </ul>
      </li>

      <li>
        ### DATASOURCE\_NAME

        public static final [String](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html) DATASOURCE\_NAMEName of an existing external data source from which table will be loaded.

        See Also:

        <ul>
          <li>[Constant Field Values](https://docs.kinetica.com/content/api/java/constant-values.md#com.gpudb.protocol.InsertRecordsFromQueryRequest.Options.DATASOURCE_NAME)</li>
        </ul>
      </li>

      <li>
        ### ERROR\_HANDLING

        public static final [String](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html) ERROR\_HANDLING

        Specifies how errors should be handled upon insertion. Supported values:

        <ul>
          <li>[`PERMISSIVE`](#PERMISSIVE): Records with missing columns are populated with nulls if possible; otherwise, the malformed records are skipped. </li>
          <li>[`SKIP`](#SKIP): Malformed records are skipped. </li>
          <li>[`IGNORE_BAD_RECORDS`](#IGNORE_BAD_RECORDS): Deprecated. Alias for [`SKIP`](#SKIP). </li>
          <li>[`ABORT`](#ABORT): Stops current insertion and aborts entire operation when an error is encountered. Primary key collisions are considered abortable errors in this mode. </li>
        </ul>

        The default value is [`ABORT`](#ABORT).

        See Also:

        <ul>
          <li>[Constant Field Values](https://docs.kinetica.com/content/api/java/constant-values.md#com.gpudb.protocol.InsertRecordsFromQueryRequest.Options.ERROR_HANDLING)</li>
        </ul>
      </li>

      <li>
        ### PERMISSIVE

        public static final [String](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html) PERMISSIVERecords with missing columns are populated with nulls if possible; otherwise, the malformed records are skipped.

        See Also:

        <ul>
          <li>[Constant Field Values](https://docs.kinetica.com/content/api/java/constant-values.md#com.gpudb.protocol.InsertRecordsFromQueryRequest.Options.PERMISSIVE)</li>
        </ul>
      </li>

      <li>
        ### SKIP

        public static final [String](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html) SKIPMalformed records are skipped.

        See Also:

        <ul>
          <li>[Constant Field Values](https://docs.kinetica.com/content/api/java/constant-values.md#com.gpudb.protocol.InsertRecordsFromQueryRequest.Options.SKIP)</li>
        </ul>
      </li>

      <li>
        ### IGNORE\_BAD\_RECORDS

        public static final [String](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html) IGNORE\_BAD\_RECORDSDeprecated. Alias for [`SKIP`](#SKIP).

        See Also:

        <ul>
          <li>[Constant Field Values](https://docs.kinetica.com/content/api/java/constant-values.md#com.gpudb.protocol.InsertRecordsFromQueryRequest.Options.IGNORE_BAD_RECORDS)</li>
        </ul>
      </li>

      <li>
        ### ABORT

        public static final [String](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html) ABORTStops current insertion and aborts entire operation when an error is encountered. Primary key collisions are considered abortable errors in this mode.

        See Also:

        <ul>
          <li>[Constant Field Values](https://docs.kinetica.com/content/api/java/constant-values.md#com.gpudb.protocol.InsertRecordsFromQueryRequest.Options.ABORT)</li>
        </ul>
      </li>

      <li>
        ### PK\_CONFLICT\_PREDICATE\_HIGHER

        public static final [String](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html) PK\_CONFLICT\_PREDICATE\_HIGHERThe record with higher value for the column resolves the primary-key insert conflict. The default value is ''.

        See Also:

        <ul>
          <li>[Constant Field Values](https://docs.kinetica.com/content/api/java/constant-values.md#com.gpudb.protocol.InsertRecordsFromQueryRequest.Options.PK_CONFLICT_PREDICATE_HIGHER)</li>
        </ul>
      </li>

      <li>
        ### PK\_CONFLICT\_PREDICATE\_LOWER

        public static final [String](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html) PK\_CONFLICT\_PREDICATE\_LOWERThe record with lower value for the column resolves the primary-key insert conflict. The default value is ''.

        See Also:

        <ul>
          <li>[Constant Field Values](https://docs.kinetica.com/content/api/java/constant-values.md#com.gpudb.protocol.InsertRecordsFromQueryRequest.Options.PK_CONFLICT_PREDICATE_LOWER)</li>
        </ul>
      </li>

      <li>
        ### IGNORE\_EXISTING\_PK

        public static final [String](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html) IGNORE\_EXISTING\_PK

        Specifies the record collision error-suppression policy for inserting into a table with a [primary key](https://docs.kinetica.com/content/concepts/tables.md#primary-keys), only used when not in upsert mode (upsert mode is disabled when [`UPDATE_ON_EXISTING_PK`](#UPDATE_ON_EXISTING_PK) is [`FALSE`](#FALSE)). If set to [`TRUE`](#TRUE), any record being inserted that is rejected for having primary key values that match those of an existing table record will be ignored with no error generated. If [`FALSE`](#FALSE), the rejection of any record for having primary key values matching an existing record will result in an error being reported, as determined by [`ERROR_HANDLING`](#ERROR_HANDLING). If the specified table does not have a primary key or if upsert mode is in effect ([`UPDATE_ON_EXISTING_PK`](#UPDATE_ON_EXISTING_PK) is [`TRUE`](#TRUE)), then this option has no effect. Supported values:

        <ul>
          <li>[`TRUE`](#TRUE): Ignore new records whose primary key values collide with those of existing records. </li>
          <li>[`FALSE`](#FALSE): Treat as errors any new records whose primary key values collide with those of existing records. </li>
        </ul>

        The default value is [`FALSE`](#FALSE).

        See Also:

        <ul>
          <li>[Constant Field Values](https://docs.kinetica.com/content/api/java/constant-values.md#com.gpudb.protocol.InsertRecordsFromQueryRequest.Options.IGNORE_EXISTING_PK)</li>
        </ul>
      </li>

      <li>
        ### TRUE

        public static final [String](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html) TRUEUpsert new records when primary keys match existing records.

        See Also:

        <ul>
          <li>[Constant Field Values](https://docs.kinetica.com/content/api/java/constant-values.md#com.gpudb.protocol.InsertRecordsFromQueryRequest.Options.TRUE)</li>
        </ul>
      </li>

      <li>
        ### FALSE

        public static final [String](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html) FALSEReject new records when primary keys match existing records.

        See Also:

        <ul>
          <li>[Constant Field Values](https://docs.kinetica.com/content/api/java/constant-values.md#com.gpudb.protocol.InsertRecordsFromQueryRequest.Options.FALSE)</li>
        </ul>
      </li>

      <li>
        ### INGESTION\_MODE

        public static final [String](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html) INGESTION\_MODE

        Whether to do a full load, dry run, or perform a type inference on the source data. Supported values:

        <ul>
          <li>[`FULL`](#FULL): Run a type inference on the source data (if needed) and ingest. </li>
          <li>[`DRY_RUN`](#DRY_RUN): Does not load data, but walks through the source data and determines the number of valid records, taking into account the current mode of [`ERROR_HANDLING`](#ERROR_HANDLING). </li>
          <li>[`TYPE_INFERENCE_ONLY`](#TYPE_INFERENCE_ONLY): Infer the type of the source data and return, without ingesting any data. The inferred type is returned in the response. </li>
        </ul>

        The default value is [`FULL`](#FULL).

        See Also:

        <ul>
          <li>[Constant Field Values](https://docs.kinetica.com/content/api/java/constant-values.md#com.gpudb.protocol.InsertRecordsFromQueryRequest.Options.INGESTION_MODE)</li>
        </ul>
      </li>

      <li>
        ### FULL

        public static final [String](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html) FULLRun a type inference on the source data (if needed) and ingest.

        See Also:

        <ul>
          <li>[Constant Field Values](https://docs.kinetica.com/content/api/java/constant-values.md#com.gpudb.protocol.InsertRecordsFromQueryRequest.Options.FULL)</li>
        </ul>
      </li>

      <li>
        ### DRY\_RUN

        public static final [String](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html) DRY\_RUNDoes not load data, but walks through the source data and determines the number of valid records, taking into account the current mode of [`ERROR_HANDLING`](#ERROR_HANDLING).

        See Also:

        <ul>
          <li>[Constant Field Values](https://docs.kinetica.com/content/api/java/constant-values.md#com.gpudb.protocol.InsertRecordsFromQueryRequest.Options.DRY_RUN)</li>
        </ul>
      </li>

      <li>
        ### TYPE\_INFERENCE\_ONLY

        public static final [String](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html) TYPE\_INFERENCE\_ONLYInfer the type of the source data and return, without ingesting any data. The inferred type is returned in the response.

        See Also:

        <ul>
          <li>[Constant Field Values](https://docs.kinetica.com/content/api/java/constant-values.md#com.gpudb.protocol.InsertRecordsFromQueryRequest.Options.TYPE_INFERENCE_ONLY)</li>
        </ul>
      </li>

      <li>
        ### JDBC\_FETCH\_SIZE

        public static final [String](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html) JDBC\_FETCH\_SIZEThe JDBC fetch size, which determines how many rows to fetch per round trip.

        See Also:

        <ul>
          <li>[Constant Field Values](https://docs.kinetica.com/content/api/java/constant-values.md#com.gpudb.protocol.InsertRecordsFromQueryRequest.Options.JDBC_FETCH_SIZE)</li>
        </ul>
      </li>

      <li>
        ### JDBC\_SESSION\_INIT\_STATEMENT

        public static final [String](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html) JDBC\_SESSION\_INIT\_STATEMENTExecutes the statement per each JDBC session before doing actual load. The default value is ''.

        See Also:

        <ul>
          <li>[Constant Field Values](https://docs.kinetica.com/content/api/java/constant-values.md#com.gpudb.protocol.InsertRecordsFromQueryRequest.Options.JDBC_SESSION_INIT_STATEMENT)</li>
        </ul>
      </li>

      <li>
        ### NUM\_SPLITS\_PER\_RANK

        public static final [String](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html) NUM\_SPLITS\_PER\_RANKNumber of splits for reading data per rank. Default will be [external\_file\_reader\_num\_tasks](https://docs.kinetica.com/content/config.md#config-main-external-files). The default value is ''.

        See Also:

        <ul>
          <li>[Constant Field Values](https://docs.kinetica.com/content/api/java/constant-values.md#com.gpudb.protocol.InsertRecordsFromQueryRequest.Options.NUM_SPLITS_PER_RANK)</li>
        </ul>
      </li>

      <li>
        ### NUM\_TASKS\_PER\_RANK

        public static final [String](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html) NUM\_TASKS\_PER\_RANKNumber of tasks for reading data per rank. Default will be [external\_file\_reader\_num\_tasks](https://docs.kinetica.com/content/config.md#config-main-external-files).

        See Also:

        <ul>
          <li>[Constant Field Values](https://docs.kinetica.com/content/api/java/constant-values.md#com.gpudb.protocol.InsertRecordsFromQueryRequest.Options.NUM_TASKS_PER_RANK)</li>
        </ul>
      </li>

      <li>
        ### PRIMARY\_KEYS

        public static final [String](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html) PRIMARY\_KEYSComma separated list of column names, to set as primary keys, when not specified in the type. The default value is ''.

        See Also:

        <ul>
          <li>[Constant Field Values](https://docs.kinetica.com/content/api/java/constant-values.md#com.gpudb.protocol.InsertRecordsFromQueryRequest.Options.PRIMARY_KEYS)</li>
        </ul>
      </li>

      <li>
        ### SHARD\_KEYS

        public static final [String](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html) SHARD\_KEYSComma separated list of column names, to set as shard keys, when not specified in the type. The default value is ''.

        See Also:

        <ul>
          <li>[Constant Field Values](https://docs.kinetica.com/content/api/java/constant-values.md#com.gpudb.protocol.InsertRecordsFromQueryRequest.Options.SHARD_KEYS)</li>
        </ul>
      </li>

      <li>
        ### SUBSCRIBE

        public static final [String](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html) SUBSCRIBE

        Continuously poll the data source to check for new data and load it into the table. Supported values:

        <ul>
          <li>[`TRUE`](#TRUE) </li>
          <li>[`FALSE`](#FALSE) </li>
        </ul>

        The default value is [`FALSE`](#FALSE).

        See Also:

        <ul>
          <li>[Constant Field Values](https://docs.kinetica.com/content/api/java/constant-values.md#com.gpudb.protocol.InsertRecordsFromQueryRequest.Options.SUBSCRIBE)</li>
        </ul>
      </li>

      <li>
        ### TRUNCATE\_TABLE

        public static final [String](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html) TRUNCATE\_TABLE

        If set to [`TRUE`](#TRUE), truncates the table specified by [`tableName`](https://docs.kinetica.com/content/api/java/com/gpudb/protocol/InsertRecordsFromQueryRequest#getTableName\(\)) prior to loading the data. Supported values:

        <ul>
          <li>[`TRUE`](#TRUE) </li>
          <li>[`FALSE`](#FALSE) </li>
        </ul>

        The default value is [`FALSE`](#FALSE).

        See Also:

        <ul>
          <li>[Constant Field Values](https://docs.kinetica.com/content/api/java/constant-values.md#com.gpudb.protocol.InsertRecordsFromQueryRequest.Options.TRUNCATE_TABLE)</li>
        </ul>
      </li>

      <li>
        ### REMOTE\_QUERY

        public static final [String](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html) REMOTE\_QUERYRemote SQL query from which data will be sourced.

        See Also:

        <ul>
          <li>[Constant Field Values](https://docs.kinetica.com/content/api/java/constant-values.md#com.gpudb.protocol.InsertRecordsFromQueryRequest.Options.REMOTE_QUERY)</li>
        </ul>
      </li>

      <li>
        ### REMOTE\_QUERY\_ORDER\_BY

        public static final [String](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html) REMOTE\_QUERY\_ORDER\_BYName of column to be used for splitting the query into multiple sub-queries using ordering of given column. The default value is ''.

        See Also:

        <ul>
          <li>[Constant Field Values](https://docs.kinetica.com/content/api/java/constant-values.md#com.gpudb.protocol.InsertRecordsFromQueryRequest.Options.REMOTE_QUERY_ORDER_BY)</li>
        </ul>
      </li>

      <li>
        ### REMOTE\_QUERY\_FILTER\_COLUMN

        public static final [String](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html) REMOTE\_QUERY\_FILTER\_COLUMNName of column to be used for splitting the query into multiple sub-queries using the data distribution of given column. The default value is ''.

        See Also:

        <ul>
          <li>[Constant Field Values](https://docs.kinetica.com/content/api/java/constant-values.md#com.gpudb.protocol.InsertRecordsFromQueryRequest.Options.REMOTE_QUERY_FILTER_COLUMN)</li>
        </ul>
      </li>

      <li>
        ### REMOTE\_QUERY\_INCREASING\_COLUMN

        public static final [String](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html) REMOTE\_QUERY\_INCREASING\_COLUMNColumn on subscribed remote query result that will increase for new records (e.g., TIMESTAMP). The default value is ''.

        See Also:

        <ul>
          <li>[Constant Field Values](https://docs.kinetica.com/content/api/java/constant-values.md#com.gpudb.protocol.InsertRecordsFromQueryRequest.Options.REMOTE_QUERY_INCREASING_COLUMN)</li>
        </ul>
      </li>

      <li>
        ### REMOTE\_QUERY\_PARTITION\_COLUMN

        public static final [String](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html) REMOTE\_QUERY\_PARTITION\_COLUMNAlias name for [`REMOTE_QUERY_FILTER_COLUMN`](#REMOTE_QUERY_FILTER_COLUMN). The default value is ''.

        See Also:

        <ul>
          <li>[Constant Field Values](https://docs.kinetica.com/content/api/java/constant-values.md#com.gpudb.protocol.InsertRecordsFromQueryRequest.Options.REMOTE_QUERY_PARTITION_COLUMN)</li>
        </ul>
      </li>

      <li>
        ### TRUNCATE\_STRINGS

        public static final [String](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html) TRUNCATE\_STRINGS

        If set to [`TRUE`](#TRUE), truncate string values that are longer than the column's type size. Supported values:

        <ul>
          <li>[`TRUE`](#TRUE) </li>
          <li>[`FALSE`](#FALSE) </li>
        </ul>

        The default value is [`FALSE`](#FALSE).

        See Also:

        <ul>
          <li>[Constant Field Values](https://docs.kinetica.com/content/api/java/constant-values.md#com.gpudb.protocol.InsertRecordsFromQueryRequest.Options.TRUNCATE_STRINGS)</li>
        </ul>
      </li>

      <li>
        ### ENABLE\_INPLACE\_UPDATES

        public static final [String](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html) ENABLE\_INPLACE\_UPDATES

        Applies only when upserting (when update\_on\_existing\_pk is true). If set to true (the default), an existing record matched by primary key is modified in place. If set to false, the matched record is updated by deleting it and inserting a replacement (delete and insert), which prevents the change from being reflected in dependent materialized views until they are refreshed. Supported values:

        <ul>
          <li>[`TRUE`](#TRUE) </li>
          <li>[`FALSE`](#FALSE) </li>
        </ul>

        The default value is [`TRUE`](#TRUE).

        See Also:

        <ul>
          <li>[Constant Field Values](https://docs.kinetica.com/content/api/java/constant-values.md#com.gpudb.protocol.InsertRecordsFromQueryRequest.Options.ENABLE_INPLACE_UPDATES)</li>
        </ul>
      </li>

      <li>
        ### UPDATE\_ON\_EXISTING\_PK

        public static final [String](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html) UPDATE\_ON\_EXISTING\_PK

        Specifies the record collision policy for inserting into a table with a [primary key](https://docs.kinetica.com/content/concepts/tables.md#primary-keys). If set to [`TRUE`](#TRUE), any existing table record with primary key values that match those of a record being inserted will be replaced by that new record (the new data will be "upserted"). If set to [`FALSE`](#FALSE), any existing table record with primary key values that match those of a record being inserted will remain unchanged, while the new record will be rejected and the error handled as determined by [`IGNORE_EXISTING_PK`](#IGNORE_EXISTING_PK) and [`ERROR_HANDLING`](#ERROR_HANDLING). If the specified table does not have a primary key, then this option has no effect. Supported values:

        <ul>
          <li>[`TRUE`](#TRUE): Upsert new records when primary keys match existing records. </li>
          <li>[`FALSE`](#FALSE): Reject new records when primary keys match existing records. </li>
        </ul>

        The default value is [`FALSE`](#FALSE).

        See Also:

        <ul>
          <li>[Constant Field Values](https://docs.kinetica.com/content/api/java/constant-values.md#com.gpudb.protocol.InsertRecordsFromQueryRequest.Options.UPDATE_ON_EXISTING_PK)</li>
        </ul>
      </li>
    </ul>
  </li>
</ul>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.