Uploaded image for project: 'Phoenix'
  1. Phoenix
  2. PHOENIX-4581

phoenix-spark is not pushing timestamp filter correctly

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
      None

      Description

      phoenix-spark is not pushing timestamp filter correctly

       

      val tblDF = spark.sqlContext.read.format("org.apache.phoenix.spark")

      .option("table", "tablename").option("zkUrl" , "host:2181:/hbase-secure").load()

      .filter(col("CREATE_TMS").gt(lit(current_timestamp()))).show()

       

      Query being sent to phoenix

      select .... FROM tablename WHERE ( "CREATE_TMS" > 2018-02-02 20:06:51.545)

       

      As timstamp string does not have quotes query fails to run.

       

       

       

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              rmullapudi Rama Mullapudi
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: