Package flyteidl.core

Interface Tasks.SqlOrBuilder

  • All Superinterfaces:
    com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
    All Known Implementing Classes:
    Tasks.Sql, Tasks.Sql.Builder
    Enclosing class:
    Tasks

    public static interface Tasks.SqlOrBuilder
    extends com.google.protobuf.MessageOrBuilder
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      Tasks.Sql.Dialect getDialect()
      .flyteidl.core.Sql.Dialect dialect = 2;
      int getDialectValue()
      .flyteidl.core.Sql.Dialect dialect = 2;
      String getStatement()
      The actual query to run, the query can have templated parameters.
      com.google.protobuf.ByteString getStatementBytes()
      The actual query to run, the query can have templated parameters.
      • Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

        isInitialized
      • Methods inherited from interface com.google.protobuf.MessageOrBuilder

        findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
    • Method Detail

      • getStatement

        String getStatement()
         The actual query to run, the query can have templated parameters.
         We use Flyte's Golang templating format for Query templating.
         Refer to the templating documentation.
         https://docs.flyte.org/projects/cookbook/en/latest/auto/integrations/external_services/hive/hive.html#sphx-glr-auto-integrations-external-services-hive-hive-py
         For example,
         insert overwrite directory '{{ .rawOutputDataPrefix }}' stored as parquet
         select *
         from my_table
         where ds = '{{ .Inputs.ds }}'
         
        string statement = 1;
        Returns:
        The statement.
      • getStatementBytes

        com.google.protobuf.ByteString getStatementBytes()
         The actual query to run, the query can have templated parameters.
         We use Flyte's Golang templating format for Query templating.
         Refer to the templating documentation.
         https://docs.flyte.org/projects/cookbook/en/latest/auto/integrations/external_services/hive/hive.html#sphx-glr-auto-integrations-external-services-hive-hive-py
         For example,
         insert overwrite directory '{{ .rawOutputDataPrefix }}' stored as parquet
         select *
         from my_table
         where ds = '{{ .Inputs.ds }}'
         
        string statement = 1;
        Returns:
        The bytes for statement.
      • getDialectValue

        int getDialectValue()
        .flyteidl.core.Sql.Dialect dialect = 2;
        Returns:
        The enum numeric value on the wire for dialect.
      • getDialect

        Tasks.Sql.Dialect getDialect()
        .flyteidl.core.Sql.Dialect dialect = 2;
        Returns:
        The dialect.