apache钻取中的CONVERT_FROM函数

时间:2015-11-19 05:25:22

标签: apache-drill

我可以使用Drill& amp;查询HBase。将数据从字节转换为文本。

HBase表中的示例数据" table1":

Private Sub txtinput_TextChanged(sender As Object, e As EventArgs) Handles txtinput.TextChanged

        If txtinput.Text = Nothing Then
            txtinput.Text = 0
        End If

        paper = Val(Me.txtinput.Text)
        Check_Ink()

    End Sub
    Private Sub RadioButton_Status(sender As Object, e As EventArgs) Handles noink.CheckedChanged, withink.CheckedChanged
        Check_Ink()
    End Sub
    Public Sub Check_Ink()

        If noink.Checked = True Then

            If paper <= 499 Then
                price = paper * 0.3
                Me.lblprice.Text = price
            ElseIf paper <= 749 Then
                price = paper * 0.28
                Me.lblprice.Text = price
            ElseIf paper <= 999 Then
                price = paper * 0.27
                Me.lblprice.Text = price
            ElseIf price <= 1000 Then
                price = paper * 0.25
                Me.lblprice.Text = price
            End If

        Else

            If paper <= 499 Then
                price = paper * 0.3
            ElseIf paper <= 749 Then
                price = paper * 0.28
            ElseIf paper <= 999 Then
                price = paper * 0.27
            ElseIf price <= 1000 Then
                price = paper * 0.25
            End If

            remainder = paper Mod 10
            cardstock = paper - remainder
            extra = cardstock / 100
            finalprice = extra + price
            Me.lblprice.Text = finalprice

        End If

    End Sub

我试过查询:

row1       column=cf:a, timestamp=1447829041294, value=value1 

对每个字段使用CONVERT_FROM都不是那么好。

还有其他方法可以让我不需要为每个字段使用此功能吗?

0 个答案:

没有答案